QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsBillboardGeometry Class Reference

Geometry of the billboard rendering for points in 3D map view. More...

#include <qgsbillboardgeometry.h>

Inheritance diagram for QgsBillboardGeometry:

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

Detailed Description

Geometry of the billboard rendering for points in 3D map view.

This class is designed for use with the QgsPoint3DBillboardMaterial material class.

Note
Not available in Python bindings
Since
QGIS 3.10

Definition at line 51 of file qgsbillboardgeometry.h.

Constructor & Destructor Documentation

◆ QgsBillboardGeometry()

QgsBillboardGeometry::QgsBillboardGeometry ( Qt3DCore::QNode * parent = nullptr)

Constructor of QgsBillboardGeometry.

Definition at line 35 of file qgsbillboardgeometry.cpp.

Member Function Documentation

◆ count()

int QgsBillboardGeometry::count ( ) const

Returns the number of points.

Definition at line 264 of file qgsbillboardgeometry.cpp.

◆ countChanged

void QgsBillboardGeometry::countChanged ( int count)
signal

Signal when the number of points changed.

◆ setBillboardData()

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

See also
setPositions()

Definition at line 240 of file qgsbillboardgeometry.cpp.

◆ setPositions()

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.

See also
setBillboardData()

Definition at line 172 of file qgsbillboardgeometry.cpp.

Property Documentation

◆ count

int QgsBillboardGeometry::count
read

Definition at line 56 of file qgsbillboardgeometry.h.


The documentation for this class was generated from the following files: