|
QGIS API Documentation 4.1.0-Master (659fe69c07c)
|
Context settings for a material. More...
#include <qgsmaterial3dhandler.h>
Public Member Functions | |
| bool | isHighlighted () const |
Returns true if the material should represent a highlighted state. | |
| bool | isPreview () const |
Returns true if the material is being shown in a preview widget. | |
| bool | isSelected () const |
Returns true if the material should represent a selected state. | |
| QColor | selectionColor () const |
| Returns the color for representing materials in a selected state. | |
| void | setIsHighlighted (bool isHighlighted) |
| Sets whether the material should represent a highlighted state. | |
| void | setIsPreview (bool isPreview) |
| Sets whether the material is being shown in a preview widget. | |
| void | setIsSelected (bool isSelected) |
| Sets whether the material should represent a selected state. | |
| void | setSelectionColor (const QColor &color) |
| Sets the color for representing materials in a selected state. | |
| void | setTextureFilterQuality (Qgis::TextureFilterQuality quality) |
| Sets the texture filtering quality. | |
| Qgis::TextureFilterQuality | textureFilterQuality () const |
| Returns the texture filtering quality. | |
Static Public Member Functions | |
| static QgsMaterialContext | fromRenderContext (const Qgs3DRenderContext &context) |
| Constructs a material context from the settings in a 3D render context. | |
Context settings for a material.
Definition at line 55 of file qgsmaterial3dhandler.h.
|
static |
Constructs a material context from the settings in a 3D render context.
Definition at line 35 of file qgsmaterial3dhandler.cpp.
|
inline |
Returns true if the material should represent a highlighted state.
Definition at line 99 of file qgsmaterial3dhandler.h.
| bool QgsMaterialContext::isPreview | ( | ) | const |
Returns true if the material is being shown in a preview widget.
Definition at line 43 of file qgsmaterial3dhandler.cpp.
|
inline |
Returns true if the material should represent a selected state.
Definition at line 70 of file qgsmaterial3dhandler.h.
|
inline |
Returns the color for representing materials in a selected state.
Definition at line 84 of file qgsmaterial3dhandler.h.
|
inline |
Sets whether the material should represent a highlighted state.
Definition at line 107 of file qgsmaterial3dhandler.h.
| void QgsMaterialContext::setIsPreview | ( | bool | isPreview | ) |
Sets whether the material is being shown in a preview widget.
Definition at line 48 of file qgsmaterial3dhandler.cpp.
|
inline |
Sets whether the material should represent a selected state.
Definition at line 77 of file qgsmaterial3dhandler.h.
|
inline |
Sets the color for representing materials in a selected state.
Definition at line 91 of file qgsmaterial3dhandler.h.
|
inline |
Sets the texture filtering quality.
Definition at line 123 of file qgsmaterial3dhandler.h.
|
inline |
Returns the texture filtering quality.
Definition at line 115 of file qgsmaterial3dhandler.h.