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;
75class _3D_EXPORT QgsRubberBand3D
82 void setWidth(
float width );
85 void setColor( QColor color );
91 void removeLastPoint();
93 void moveLastPoint(
const QgsPoint &pt );
96 void setShowLastMarker(
bool show ) { mShowLastMarker = show; }
99 void updateGeometry();
100 void updateMarkerMaterial();
104 bool mShowLastMarker =
false;
109 Qt3DCore::QEntity *mLineEntity =
nullptr;
110 Qt3DCore::QEntity *mMarkerEntity =
nullptr;
113 Qt3DRender::QGeometryRenderer *mGeomRenderer =
nullptr;
114#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
115 Qt3DRender::QGeometry *mGeometry =
nullptr;
116 Qt3DRender::QAttribute *mPositionAttribute =
nullptr;
117 Qt3DRender::QAttribute *mIndexAttribute =
nullptr;
119 Qt3DCore::QGeometry *mGeometry =
nullptr;
120 Qt3DCore::QAttribute *mPositionAttribute =
nullptr;
121 Qt3DCore::QAttribute *mIndexAttribute =
nullptr;
123 QgsLineMaterial *mLineMaterial =
nullptr;
126 Qt3DRender::QGeometryRenderer *mMarkerGeometryRenderer =
nullptr;
132 QgsRubberBand3D(
const QgsRubberBand3D & ) =
delete;
133 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.