A singleton class containing various registries and other global members related to 3D classes.
More...
|
| static void | addMaterialParametersToEffect (Qt3DRender::QEffect *effect, const QgsAbstractMaterialSettings *settings, const QgsMaterialContext &materialContext) |
| | Adds parameters from the material settings to a destination effect.
|
| static void | applyMaterialDataDefinedToGeometry (const QgsAbstractMaterialSettings *settings, Qt3DCore::QGeometry *geometry, int vertexCount, const QByteArray &dataDefinedBytes) |
| | Applies the data defined bytes, dataDefinedBytes, on the geometry by filling a specific vertex buffer that will be used by the shader.
|
| static const QgsAbstractMaterial3DHandler * | handlerForMaterialSettings (const QgsAbstractMaterialSettings *settings) |
| | Returns the handler to use for a material settings.
|
| static void | initialize () |
| | Initializes the 3D framework.
|
| static Qgs3D * | instance () |
| | Returns a pointer to the singleton instance.
|
| static int | materialDataDefinedByteStride (const QgsAbstractMaterialSettings *settings) |
| | Returns byte stride of the data defined colors,used to fill the vertex colors data defined buffer for rendering.
|
| static QByteArray | materialDataDefinedVertexColorsAsByte (const QgsAbstractMaterialSettings *settings, const QgsExpressionContext &expressionContext) |
| | Returns byte array corresponding to the data defined colors depending of the expressionContext, used to fill the specific vertex buffer used for rendering the geometry.
|
| static QgsMaterialRegistry * | materialRegistry () |
| | Returns the material registry, used for managing 3D materials.
|
| static Qgs3DTerrainRegistry * | terrainRegistry () |
| | Returns the terrain registry, used for managing 3D terrains.
|
| static QgsMaterial * | toMaterial (const QgsAbstractMaterialSettings *settings, Qgis::MaterialRenderingTechnique technique, const QgsMaterialContext &context) |
| | Creates a new QgsMaterial object representing the material settings.
|
| static QMap< QString, QString > | toMaterialExportParameters (const QgsAbstractMaterialSettings *settings) |
| | Returns the parameters to be exported to .mtl file.
|
A singleton class containing various registries and other global members related to 3D classes.
- Since
- QGIS 3.16
Definition at line 52 of file qgs3d.h.