16#ifndef QGSRUBBERBAND3D_H
17#define QGSRUBBERBAND3D_H
46#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
55#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
60 class QGeometryRenderer;
74class _3D_EXPORT QgsRubberBand3D
81 void setWidth(
float width );
84 void setColor( QColor color );
90 void removeLastPoint();
92 void moveLastPoint(
const QgsPoint &pt );
95 void setShowLastMarker(
bool show ) { mShowLastMarker = show; }
98 void updateGeometry();
99 void updateMarkerMaterial();
103 bool mShowLastMarker =
false;
108 Qt3DCore::QEntity *mLineEntity =
nullptr;
109 Qt3DCore::QEntity *mMarkerEntity =
nullptr;
112 Qt3DRender::QGeometryRenderer *mGeomRenderer =
nullptr;
113#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
114 Qt3DRender::QGeometry *mGeometry =
nullptr;
115 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
116 Qt3DRender::QAttribute *mIndexAttribute =
nullptr;
118 Qt3DCore::QGeometry *mGeometry =
nullptr;
119 Qt3DCore::QAttribute *mPositionAttribute =
nullptr;
120 Qt3DCore::QAttribute *mIndexAttribute =
nullptr;
122 QgsLineMaterial *mLineMaterial =
nullptr;
125 Qt3DRender::QGeometryRenderer *mMarkerGeometryRenderer =
nullptr;
131 QgsRubberBand3D(
const QgsRubberBand3D & ) =
delete;
132 QgsRubberBand3D &operator= (
const QgsRubberBand3D & ) =
delete;
Line string geometry type, with support for z-dimension and m-values.
A marker symbol type, for rendering Point and MultiPoint geometries.
Point geometry type, with support for z-dimension and m-values.