Class: QgsMaterialContext¶
- class qgis.3d.QgsMaterialContext¶
Bases:
sip.wrapper
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.
New in version 3.16:
Methods
Returns
True
if the material should represent a selected state.Returns the color for representing materials in a selected state.
Sets whether the material should represent a selected state.
Sets the color for representing materials in a selected state.
- isSelected(self) bool ¶
Returns
True
if the material should represent a selected state.See also
- Return type
bool
- selectionColor(self) QColor ¶
Returns the color for representing materials in a selected state.
See also
- Return type
QColor
- setIsSelected(self, isSelected: bool)¶
Sets whether the material should represent a selected state.
See also
- Parameters
isSelected (bool) –
- setSelectionColor(self, color: Union[QColor, Qt.GlobalColor])¶
Sets the color for representing materials in a selected state.
See also
- Parameters
color (Union[QColor) –