Class: Qgs3DRendererCategory¶
Represents an individual category (class) from a
QgsCategorized3DRenderer.
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 4.2.
Constructor
Methods
Returns |
|
Sets whether the category is currently enabled and should be rendered. |
|
Sets the symbol which will be used to render this category. |
|
Sets the value corresponding to this category. |
|
Returns the symbol which will be used to render this category. |
|
Returns the value corresponding to this category. |
- class qgis._3d.Qgs3DRendererCategory[source]¶
Bases:
object- __init__()¶
- __init__(value: Any, symbol: QgsAbstract3DSymbol | None, render: bool = True)
Constructor for a new
QgsRendererCategory, with the specifiedvalueandsymbol.If
valueis a list, then the category will match any of the values from this list.The ownership of
symbolis transferred to the category.The
renderargument indicates whether the category should initially be rendered and appear checked in the layer tree.- Parameters:
value (Any)
symbol (Optional[QgsAbstract3DSymbol])
render (bool = True)
- __init__(other: Qgs3DRendererCategory)
- Parameters:
other (Qgs3DRendererCategory)
- renderState(self) bool[source]¶
Returns
Trueif the category is currently enabled and should be rendered.See also
- Return type:
bool
- setRenderState(self, render: bool)[source]¶
Sets whether the category is currently enabled and should be rendered.
See also
- Parameters:
render (bool)
- setSymbol(self, symbol: QgsAbstract3DSymbol | None)[source]¶
Sets the symbol which will be used to render this category.
Ownership of the symbol is transferred to the category.
See also
- Parameters:
symbol (Optional[QgsAbstract3DSymbol])
- setValue(self, value: Any)[source]¶
Sets the
valuecorresponding to this category.If
valueis a list, then the category will match any of the values from this list.See also
- Parameters:
value (Any)
- symbol(self) QgsAbstract3DSymbol | None[source]¶
Returns the symbol which will be used to render this category.
See also
- Return type: