16#ifndef QGSLAYOUTITEM3DMAP_H
17#define QGSLAYOUTITEM3DMAP_H
51 switch ( sipCpp->type() )
54 case QGraphicsItem::UserType + 115:
55 sipType = sipType_QgsLayoutItem3DMap;
81 int type()
const override;
82 QIcon
icon()
const override;
117 void onImageCaptured(
const QImage &img );
118 void onSceneStateChanged();
119 void onSizePositionChanged();
123 void updateToolTip();
126 std::unique_ptr<Qgs3DMapSettings> mSettings;
127 std::unique_ptr<QgsOffscreen3DEngine> mEngine;
129 QImage mCapturedImage;
131 bool mDrawing =
false;
Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children.
Encapsulates camera pose in a 3D scene.
void setCameraPose(const QgsCameraPose &pose)
Configures camera view.
~QgsLayoutItem3DMap() override
Qgs3DMapSettings * mapSettings() const
Returns map scene. May be nullptr if not yet configured.
QgsLayoutItem3DMap(QgsLayout *layout)
Constructor for QgsLayoutItem3DMap, with the specified parent layout.
static QgsLayoutItem3DMap * create(QgsLayout *layout)
Returns a new 3D map item for the specified layout.
QgsCameraPose cameraPose() const
Returns camera view.
Contains settings and helpers relating to a render of a QgsLayoutItem.
QgsLayoutItem(QgsLayout *layout, bool manageZValue=true)
Constructor for QgsLayoutItem, with the specified parent layout.
virtual QIcon icon() const
Returns the item's icon.
virtual bool writePropertiesToElement(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Stores item state within an XML DOM element.
virtual void finalizeRestoreFromXml()
Called after all pending items have been restored from XML.
int type() const override
Returns a unique graphics item type identifier.
virtual QString displayName() const
Gets item display name.
virtual bool readPropertiesFromElement(const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)
Sets item state from a DOM element.
void refresh() override
Refreshes the item, causing a recalculation of any property overrides and recalculation of its positi...
virtual void draw(QgsLayoutItemRenderContext &context)=0
Draws the item's contents using the specified item render context.
const QgsLayout * layout() const
Returns the layout the object is attached to.
Off-screen 3D engine implementation.
A container for the context for various read/write operations on objects.
QgsTemporalRangeObject(bool enabled=false)
Constructor QgsTemporalRangeObject.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)