Class: QgsLayoutItem3DMap¶
Implements support of 3D map views in print layouts
Added in version 3.4.
Class Hierarchy¶
Base classes¶
Base class for graphical items within a   | 
|
A base class for objects which belong to a layout.  | 
|
Abstract interface for generating an expression context.  | 
|
Interface for layout objects which support undo/redo commands.  | 
|
Base class for objects with an associated (optional) temporal range.  | 
Methods
Sets the map   | 
|
Returns camera view  | 
|
overridden to show "3D Map 1" type names  | 
|
Returns map scene.  | 
|
Configures camera view  | 
|
Configures map scene  | 
Static Methods
Returns a new 3D map item for the specified layout.  | 
- class qgis._3d.QgsLayoutItem3DMap[source]¶
 Bases:
QgsLayoutItem,QgsTemporalRangeObject- __init__(layout: QgsLayout | None)
 Constructor for QgsLayoutItem3DMap, with the specified parent
layout.Ownership is transferred to the layout.
- Parameters:
 layout (Optional[QgsLayout])
- assignFreeId(self)[source]¶
 Sets the map
id()to a number not yet used in the layout. The existingid()is kept if it is not in use.
- cameraPose(self) QgsCameraPose[source]¶
 Returns camera view
- Return type:
 
- static create(layout: QgsLayout | None) QgsLayoutItem3DMap | None[source]¶
 Returns a new 3D map item for the specified
layout.The caller takes responsibility for deleting the returned object.
- Parameters:
 layout (Optional[QgsLayout])
- Return type:
 Optional[QgsLayoutItem3DMap]
- mapSettings(self) Qgs3DMapSettings | None[source]¶
 Returns map scene. May be
Noneif not yet configured.- Return type:
 Optional[Qgs3DMapSettings]
- setCameraPose(self, pose: QgsCameraPose)[source]¶
 Configures camera view
- Parameters:
 pose (QgsCameraPose)
- setMapSettings(self, settings: Qgs3DMapSettings | None)[source]¶
 Configures map scene
Ownership is transferred to the item.
- Parameters:
 settings (Optional[Qgs3DMapSettings])