15#ifndef QGSPOINT3DBILLBOARDMATERIAL_H
16#define QGSPOINT3DBILLBOARDMATERIAL_H
22#include <Qt3DRender/QParameter>
23#include <Qt3DRender/QTexture>
54 AtlasTextureWithPixelOffsets,
91 void setTexture2DFromTextureImage( Qt3DRender::QAbstractTextureImage *textureImage );
93 Qt3DRender::QParameter *mSize =
nullptr;
94 Qt3DRender::QParameter *mViewportSize =
nullptr;
95 Qt3DRender::QParameter *mTexture2D =
nullptr;
Rendering context for preparation of 3D entities.
A marker symbol type, for rendering Point and MultiPoint geometries.
QgsMaterial(Qt3DCore::QNode *parent=nullptr)
Constructor for QgsMaterial, with the specified parent node.
Material of the billboard rendering for points in 3D map view.
void useDefaultSymbol(const Qgs3DRenderContext &context, bool selected=false)
Set default symbol for the texture with context and selected parameter for rendering.
static QImage renderSymbolToImage(const QgsMarkerSymbol *markerSymbol, const Qgs3DRenderContext &context, bool selected=false)
Renders a marker symbol to an image.
QSizeF windowSize() const
Returns the size of the view port.
void setTexture2DFromImage(const QImage &image)
Set the texture2D of the billboard from an image.
~QgsPoint3DBillboardMaterial() override
QSizeF size() const
Returns the billboard size.
void setTexture2DFromSymbol(const QgsMarkerSymbol *markerSymbol, const Qgs3DRenderContext &context, bool selected=false)
Set markerSymbol for the texture with context and selected parameter for rendering.
void setViewportSize(const QSizeF size)
Set the size of the view port.
void setSize(const QSizeF size)
Set the billboard size.
QgsPoint3DBillboardMaterial(Mode mode=Mode::SingleTexture)
Constructor for QgsPoint3DBillboardMaterial, using the specified mode.