Class: QgsMaterialContext¶
Context settings for a material.
Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Added in version 3.16.
Methods
Returns |
|
Returns |
|
Returns the color for representing materials in a selected state. |
|
Sets whether the material should represent a highlighted state. |
|
Sets whether the material should represent a selected state. |
|
Sets the color for representing materials in a selected state. |
- class qgis._3d.QgsMaterialContext[source]¶
Bases:
object- isHighlighted(self) bool[source]¶
Returns
Trueif the material should represent a highlighted state.See also
Added in version 4.0.
- Return type:
bool
- isSelected(self) bool[source]¶
Returns
Trueif the material should represent a selected state.See also
- Return type:
bool
- selectionColor(self) QColor[source]¶
Returns the color for representing materials in a selected state.
See also
- Return type:
QColor
- setIsHighlighted(self, isHighlighted: bool)[source]¶
Sets whether the material should represent a highlighted state.
See also
Added in version 4.0.
- Parameters:
isHighlighted (bool)
- setIsSelected(self, isSelected: bool)[source]¶
Sets whether the material should represent a selected state.
See also
- Parameters:
isSelected (bool)