Class Qf3DRubberbandGeometry
ClassList > Qf3DRubberbandGeometry
#include <qf3drubberbandgeometry.h>
Inherits the following classes: QQuick3DGeometry
Public Properties
| Type | Name |
|---|---|
| property QColor | color Per-vertex color applied to both tubes and joint spheres. |
| property float | heightOffset Extra vertical offset above the terrain surface. |
| property float | radius Tube thickness in scene units. |
| property QfRubberbandModel * | rubberbandModel The rubberband model providing the vertex coordinates. |
| property int | segments Number of sides in the tube cross-section. |
| property Qf3DTerrainProvider * | terrainProvider The terrain provider used for geo-to-3D coordinate conversion. |
Public Signals
| Type | Name |
|---|---|
| signal void | colorChanged |
| signal void | heightOffsetChanged |
| signal void | radiusChanged |
| signal void | rubberbandModelChanged |
| signal void | segmentsChanged |
| signal void | terrainProviderChanged |
Public Functions
| Type | Name |
|---|---|
| Qf3DRubberbandGeometry (QQuick3DObject * parent=nullptr) |
|
| QColor | color () const Returns the color used for both tubes and sphere joints. |
| float | heightOffset () const Returns the height offset above the terrain surface. |
| float | radius () const Returns the tube radius in 3D scene units. |
| QfRubberbandModel * | rubberbandModel () const Returns the rubberband model providing vertex coordinates. |
| int | segments () const Returns the number of segments around the tube circumference. |
| void | setColor (const QColor & color) Sets the rubberband color. |
| void | setHeightOffset (float offset) Sets the height offset. |
| void | setRadius (float radius) Sets the tube radius. |
| void | setRubberbandModel (QfRubberbandModel * model) Sets the rubberband model. |
| void | setSegments (int segments) Sets the segment count. |
| void | setTerrainProvider (Qf3DTerrainProvider * provider) Sets the terrain provider. |
| Qf3DTerrainProvider * | terrainProvider () const Returns the terrain provider used for geo-to-3D conversion. |
Detailed Description
Generates 3D tube + sphere geometry to visualize a rubberband path on terrain.
Geo coordinates from a QfRubberbandModel are projected onto the terrain surface and connected by extruded tube segments. A sphere joint is placed at each vertex. Everything is packed into a single indexed triangle mesh with per-vertex colors.
Note:
QML Type: Qf3DRubberbandGeometry
Public Properties Documentation
property color [1/2]
Per-vertex color applied to both tubes and joint spheres.
QColor Qf3DRubberbandGeometry::color;
property heightOffset [1/2]
Extra vertical offset above the terrain surface.
float Qf3DRubberbandGeometry::heightOffset;
property radius [1/2]
Tube thickness in scene units.
float Qf3DRubberbandGeometry::radius;
property rubberbandModel [1/2]
The rubberband model providing the vertex coordinates.
QfRubberbandModel * Qf3DRubberbandGeometry::rubberbandModel;
property segments [1/2]
Number of sides in the tube cross-section.
int Qf3DRubberbandGeometry::segments;
property terrainProvider [1/2]
The terrain provider used for geo-to-3D coordinate conversion.
Qf3DTerrainProvider * Qf3DRubberbandGeometry::terrainProvider;
Public Signals Documentation
signal colorChanged
void Qf3DRubberbandGeometry::colorChanged;
signal heightOffsetChanged
void Qf3DRubberbandGeometry::heightOffsetChanged;
signal radiusChanged
void Qf3DRubberbandGeometry::radiusChanged;
signal rubberbandModelChanged
void Qf3DRubberbandGeometry::rubberbandModelChanged;
signal segmentsChanged
void Qf3DRubberbandGeometry::segmentsChanged;
signal terrainProviderChanged
void Qf3DRubberbandGeometry::terrainProviderChanged;
Public Functions Documentation
function Qf3DRubberbandGeometry
explicit Qf3DRubberbandGeometry::Qf3DRubberbandGeometry (
QQuick3DObject * parent=nullptr
)
function color [2/2]
Returns the color used for both tubes and sphere joints.
inline QColor Qf3DRubberbandGeometry::color () const
function heightOffset [2/2]
Returns the height offset above the terrain surface.
inline float Qf3DRubberbandGeometry::heightOffset () const
function radius [2/2]
Returns the tube radius in 3D scene units.
inline float Qf3DRubberbandGeometry::radius () const
function rubberbandModel [2/2]
Returns the rubberband model providing vertex coordinates.
inline QfRubberbandModel * Qf3DRubberbandGeometry::rubberbandModel () const
function segments [2/2]
Returns the number of segments around the tube circumference.
inline int Qf3DRubberbandGeometry::segments () const
function setColor
Sets the rubberband color.
void Qf3DRubberbandGeometry::setColor (
const QColor & color
)
function setHeightOffset
Sets the height offset.
void Qf3DRubberbandGeometry::setHeightOffset (
float offset
)
function setRadius
Sets the tube radius.
void Qf3DRubberbandGeometry::setRadius (
float radius
)
function setRubberbandModel
Sets the rubberband model.
void Qf3DRubberbandGeometry::setRubberbandModel (
QfRubberbandModel * model
)
function setSegments
Sets the segment count.
void Qf3DRubberbandGeometry::setSegments (
int segments
)
function setTerrainProvider
Sets the terrain provider.
void Qf3DRubberbandGeometry::setTerrainProvider (
Qf3DTerrainProvider * provider
)
function terrainProvider [2/2]
Returns the terrain provider used for geo-to-3D conversion.
inline Qf3DTerrainProvider * Qf3DRubberbandGeometry::terrainProvider () const
The documentation for this class was generated from the following file src/3d/qf3drubberbandgeometry.h