QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSLAYOUTITEM3DMAP_H
17 #define QGSLAYOUTITEM3DMAP_H
52 switch ( sipCpp->type() )
55 case QGraphicsItem::UserType + 115:
56 sipType = sipType_QgsLayoutItem3DMap;
83 virtual int type()
const override;
84 QIcon
icon()
const override;
119 void onImageCaptured(
const QImage &img );
120 void onSceneStateChanged();
121 void onSizePositionChanged();
125 void updateToolTip();
128 std::unique_ptr<Qgs3DMapSettings> mSettings;
129 std::unique_ptr<QgsOffscreen3DEngine> mEngine;
131 QImage mCapturedImage;
133 bool mDrawing =
false;
139 #endif // QGSLAYOUTITEM3DMAP_H
virtual bool writePropertiesToElement(QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const
Stores item state within an XML DOM element.
virtual QIcon icon() const
Returns the item's icon.
virtual void finalizeRestoreFromXml()
Called after all pending items have been restored from XML.
QgsCameraPose cameraPose() const
Returns camera view.
virtual bool readPropertiesFromElement(const QDomElement &element, const QDomDocument &document, const QgsReadWriteContext &context)
Sets item state from a DOM element.
virtual void draw(QgsLayoutItemRenderContext &context)=0
Draws the item's contents using the specified item render context.
int type() const override
Returns a unique graphics item type identifier.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Base class for graphical items within a QgsLayout.
void refresh() override
Refreshes the item, causing a recalculation of any property overrides and recalculation of its positi...
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
virtual QString displayName() const
Gets item display name.
Qgs3DMapSettings * mapSettings() const
Returns map scene. May be nullptr if not yet configured.