|
QGIS API Documentation 4.3.0-Master (90cb4ecf9ef)
|
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. | |
| void | setPositionsAndSizes (const QVector< QVector3D > &positions, const QVector< QSizeF > &sizes) |
| Sets per-instance positions and sizes for billboards sharing a single texture. | |
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 40 of file qgsbillboardgeometry.h.
| QgsBillboardGeometry::QgsBillboardGeometry | ( | Qt3DCore::QNode * | parent = nullptr | ) |
Constructor of QgsBillboardGeometry.
Definition at line 27 of file qgsbillboardgeometry.cpp.
| int QgsBillboardGeometry::count | ( | ) | const |
Returns the number of points.
Definition at line 301 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 277 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 180 of file qgsbillboardgeometry.cpp.
| void QgsBillboardGeometry::setPositionsAndSizes | ( | const QVector< QVector3D > & | positions, |
| const QVector< QSizeF > & | sizes ) |
Sets per-instance positions and sizes for billboards sharing a single texture.
Use this method when rendering multiple billboards with the same texture but different sizes, and texture atlas handling is not required.
Definition at line 202 of file qgsbillboardgeometry.cpp.
|
read |
Definition at line 44 of file qgsbillboardgeometry.h.