|
QGIS API Documentation 4.1.0-Master (9af12b5a203)
|
Miscellaneous utility functions used in 3D code for symbols. More...
#include <qgs3dsymbolutils.h>
Static Public Member Functions | |
| static bool | copyVectorSymbolMaterial (const QgsAbstract3DSymbol *fromSymbol, QgsAbstract3DSymbol *toSymbol) |
| Copies the material properties of a vector 3D symbol from one symbol to another. | |
| static bool | setVectorSymbolBaseColor (QgsAbstract3DSymbol *symbol, const QColor &baseColor) |
| Sets the base color of the material settings associated with a 3D vector symbol. | |
| static QColor | vectorSymbolAverageColor (const QgsAbstract3DSymbol *symbol) |
| Computes an approximate color from a 3D vector symbol. | |
| static QIcon | vectorSymbolPreviewIcon (const QgsAbstract3DSymbol *symbol, const QSize &size, const QgsScreenProperties &screen, int padding) |
| Returns an icon preview for a 3D vector symbol. | |
Miscellaneous utility functions used in 3D code for symbols.
Definition at line 35 of file qgs3dsymbolutils.h.
|
static |
Copies the material properties of a vector 3D symbol from one symbol to another.
| fromSymbol | Source 3D symbol from which the material properties are copied. |
| toSymbol | Destination 3D symbol to which the material properties are applied. |
true if the material properties were successfully copied, false otherwise. Definition at line 248 of file qgs3dsymbolutils.cpp.
|
static |
Sets the base color of the material settings associated with a 3D vector symbol.
| symbol | 3D symbol whose material settings will be modified. |
| baseColor | Base color to apply to the symbol's material settings. |
true if the material's base color was successfully set, false otherwise. Definition at line 226 of file qgs3dsymbolutils.cpp.
|
static |
Computes an approximate color from a 3D vector symbol.
Extracts a representative color from the symbol's material settings, accounting for its specific shading model (Phong, Gooch, etc.).
| symbol | The 3D symbol to extract the color from. |
Definition at line 32 of file qgs3dsymbolutils.cpp.
|
static |
Returns an icon preview for a 3D vector symbol.
| symbol | 3D symbol to generate the preview for. |
| size | Target pixmap size. |
| screen | Destination screen properties used to determine DPI and device pixel ratio. |
| padding | Space between icon edge and symbol. |
Definition at line 54 of file qgs3dsymbolutils.cpp.