Class: QgsLayoutItem3DMap

class qgis.3d.QgsLayoutItem3DMap(layout: QgsLayout)

Bases: QgsLayoutItem, QgsTemporalRangeObject

Constructor for QgsLayoutItem3DMap, with the specified parent layout.

Ownership is transferred to the layout.

Implements support of 3D map views in print layouts

New in version 3.4.

Parameters

layout

adjustPointForReferencePosition()
applyDataDefinedSize()
applyItemSizeConstraint()
assignFreeId(self)

Sets the map id() to a number not yet used in the layout. The existing id() is kept if it is not in use.

cameraPose(self)QgsCameraPose

Returns camera view

Return type

QgsCameraPose

childEvent()
connectNotify()
contextMenuEvent()
create(layout: QgsLayout)QgsLayoutItem3DMap

Returns a new 3D map item for the specified layout.

The caller takes responsibility for deleting the returned object.

Parameters

layout (QgsLayout) –

Return type

QgsLayoutItem3DMap

customEvent()
disconnectNotify()
displayName(self) → str

overridden to show “3D Map 1” type names

Return type

str

dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
draw(self, context: QgsLayoutItemRenderContext)
Parameters

context (QgsLayoutItemRenderContext) –

drawBackground()
drawDebugRect()
drawFrame()
dropEvent()
finalizeRestoreFromXml(self)
focusInEvent()
focusOutEvent()
hoverEnterEvent()
hoverLeaveEvent()
hoverMoveEvent()
icon(self) → QIcon
Return type

QIcon

inputMethodEvent()
inputMethodQuery()
isSignalConnected()
itemChange()
keyPressEvent()
keyReleaseEvent()
mapSettings(self)Qgs3DMapSettings

Returns map scene. May be None if not yet configured.

Return type

Qgs3DMapSettings

mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
positionAtReferencePoint()
prepareGeometryChange()
readObjectPropertiesFromElement()
readPropertiesFromElement(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) → bool
Parameters
Return type

bool

receivers()
refresh(self)
refreshBackgroundColor()
refreshBlendMode()
refreshFrame()
refreshItemPosition()
refreshItemRotation()
refreshItemSize()
refreshOpacity()
sceneEvent()
sceneEventFilter()
sender()
senderSignalIndex()
setCameraPose(self, pose: QgsCameraPose)

Configures camera view

Parameters

pose (QgsCameraPose) –

setFixedSize()
setMapSettings(self, settings: Qgs3DMapSettings)

Configures map scene

Ownership is transferred to the item.

Parameters

settings (Qgs3DMapSettings) –

setMinimumSize()
timerEvent()
topLeftToReferencePoint()
type(self) → int
Return type

int

updateMicroFocus()
wheelEvent()
writeObjectPropertiesToElement()
writePropertiesToElement(self, element: QDomElement, document: QDomDocument, context: QgsReadWriteContext) → bool
Parameters
Return type

bool