|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Geometry of the billboard rendering for points in 3D map view. More...
#include <qgsbillboardgeometry.h>

Classes | |
| struct | BillboardAtlasData |
| Contains the billboard positions and texture information. More... | |
Signals | |
| void | countChanged (int count) |
| Signal when the number of points changed. | |
Public Member Functions | |
| QgsBillboardGeometry (Qt3DCore::QNode *parent=nullptr) | |
| Constructor of QgsBillboardGeometry. | |
| int | count () const |
| Returns the number of points. | |
| void | setBillboardData (const QVector< QgsBillboardGeometry::BillboardAtlasData > &billboards, bool includePixelOffsets=false) |
| Set the position and texture data for the billboard. | |
| void | setPositions (const QVector< QVector3D > &vertices) |
| Sets the vertex positions for the billboards. | |
Properties | |
| int | count |
Geometry of the billboard rendering for points in 3D map view.
This class is designed for use with the QgsPoint3DBillboardMaterial material class.
Definition at line 51 of file qgsbillboardgeometry.h.
| QgsBillboardGeometry::QgsBillboardGeometry | ( | Qt3DCore::QNode * | parent = nullptr | ) |
Constructor of QgsBillboardGeometry.
Definition at line 35 of file qgsbillboardgeometry.cpp.
| int QgsBillboardGeometry::count | ( | ) | const |
Returns the number of points.
Definition at line 264 of file qgsbillboardgeometry.cpp.
|
signal |
Signal when the number of points changed.
| void QgsBillboardGeometry::setBillboardData | ( | const QVector< QgsBillboardGeometry::BillboardAtlasData > & | billboards, |
| bool | includePixelOffsets = false ) |
Set the position and texture data for the billboard.
Use this method when rendering billboards with the different textures, and texture atlas handling is required.
Set includePixelOffsets to true if the billboard data includes the optional pixel offsets for each billboard
Definition at line 240 of file qgsbillboardgeometry.cpp.
| void QgsBillboardGeometry::setPositions | ( | const QVector< QVector3D > & | vertices | ) |
Sets the vertex positions for the billboards.
Use this method when rendering multiple billboards with the same texture, and texture atlas handling is not required.
Definition at line 172 of file qgsbillboardgeometry.cpp.
|
read |
Definition at line 56 of file qgsbillboardgeometry.h.