16#ifndef QGSBILLBOARDGEOMETRY_H
17#define QGSBILLBOARDGEOMETRY_H
24#include <Qt3DCore/QAttribute>
25#include <Qt3DCore/QBuffer>
26#include <Qt3DCore/QGeometry>
89 void setBillboardData(
const QVector<QgsBillboardGeometry::BillboardAtlasData> &billboards,
bool includePixelOffsets =
false );
102 PositionAndTextureData,
103 PositionAndTextureDataWithPixelOffsets,
105 void setMode( Mode mode );
107 Qt3DCore::QAttribute *mPositionAttribute =
nullptr;
108 Qt3DCore::QAttribute *mAtlasOffsetAttribute =
nullptr;
109 Qt3DCore::QAttribute *mAtlasSizeAttribute =
nullptr;
110 Qt3DCore::QAttribute *mAtlasPixelOffsetAttribute =
nullptr;
111 Qt3DCore::QBuffer *mVertexBuffer =
nullptr;
112 int mVertexCount = 0;
void countChanged(int count)
Signal when the number of points changed.
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.
QgsBillboardGeometry(Qt3DCore::QNode *parent=nullptr)
Constructor of QgsBillboardGeometry.
Contains the billboard positions and texture information.
QPoint pixelOffset
Optional pixel offset for billboard.
QVector3D position
Vertex position for billboard placement.
QVector2D textureAtlasOffset
Texture atlas offset for associated billboard texture.
QVector2D textureAtlasSize
Texture atlas size for associated billboard texture.