16 #ifndef QGSLAYOUTITEM3DMAP_H 17 #define QGSLAYOUTITEM3DMAP_H 45 switch ( sipCpp->type() )
48 case QGraphicsItem::UserType + 115:
49 sipType = sipType_QgsLayoutItem3DMap;
76 virtual int type()
const override;
77 QIcon
icon()
const override;
112 void onImageCaptured(
const QImage &img );
113 void onSceneStateChanged();
114 void onSizePositionChanged();
118 void updateToolTip();
121 std::unique_ptr<Qgs3DMapSettings> mSettings;
122 std::unique_ptr<QgsOffscreen3DEngine> mEngine;
124 QImage mCapturedImage;
126 bool mDrawing =
false;
132 #endif // QGSLAYOUTITEM3DMAP_H The class is used as a container of context for various read/write operations on other objects...
virtual QIcon icon() const
Returns the item's icon.
Base class for graphical items within a QgsLayout.
int type() const override
Returns a unique graphics item type identifier.
3 Definition of the world
3 Class that encapsulates camera pose in a 3D scene.
virtual bool readPropertiesFromElement(const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)
Sets item state from a DOM element.
3 Off-screen 3D engine implementation.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Contains settings and helpers relating to a render of a QgsLayoutItem.
virtual void finalizeRestoreFromXml()
Called after all pending items have been restored from XML.
virtual QString displayName() const
Gets item display name.
3 Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children...
Qgs3DMapSettings * mapSettings() const
Returns map scene. May be nullptr if not yet configured.
3Implements support of 3D map views in print layouts
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QgsCameraPose cameraPose() const
Returns camera view.
virtual bool writePropertiesToElement(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Stores item state within an XML DOM element.
virtual void draw(QgsLayoutItemRenderContext &context)=0
Draws the item's contents using the specified item render context.
void refresh() override
Refreshes the item, causing a recalculation of any property overrides and recalculation of its positi...