Class: QgsPointCloudRgbRenderer¶
- class qgis.core.QgsPointCloudRgbRenderer¶
Bases:
QgsPointCloudRenderer
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
New in version 3.18.
QgsPointCloudRgbRenderer() Constructor for QgsPointCloudRgbRenderer.
Methods
Returns the attribute to use for the blue channel.
Returns the contrast enhancement to use for the blue channel.
- rtype
QgsPointCloudRenderer
Copies common point cloud properties (such as point size and screen error) to the
destination
renderer.Creates an RGB renderer from an XML
element
.Draws a point using a
color
at the specifiedx
andy
(in map coordinates).Returns the attribute to use for the green channel.
Returns the contrast enhancement to use for the green channel.
Retrieves the x and y coordinate for the point at index
i
.Retrieves the z value for the point at index
i
.Returns the attribute to use for the red channel.
Returns the contrast enhancement to use for the red channel.
- param block
Restores common renderer properties (such as point size and screen error) from the specified DOM
element
.- param doc
Saves common renderer properties (such as point size and screen error) to the specified DOM
element
.Sets the
attribute
to use for the blue channel.Sets the contrast
enhancement
to use for the blue channel.Sets the
attribute
to use for the green channel.Sets the contrast
enhancement
to use for the green channel.Sets the
attribute
to use for the red channel.Sets the contrast
enhancement
to use for the red channel.- rtype
str
- param context
- blueAttribute(self) str ¶
Returns the attribute to use for the blue channel.
See also
See also
See also
- Return type
str
- blueContrastEnhancement(self) QgsContrastEnhancement ¶
Returns the contrast enhancement to use for the blue channel.
See also
See also
See also
- Return type
- clone(self) QgsPointCloudRenderer ¶
- Return type
- copyCommonProperties(self, destination: QgsPointCloudRenderer)¶
Copies common point cloud properties (such as point size and screen error) to the
destination
renderer.
- create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer ¶
Creates an RGB renderer from an XML
element
.- Parameters
element (QDomElement) –
context (QgsReadWriteContext) –
- Return type
- drawPoint(self, x: float, y: float, color: Union[QColor, Qt.GlobalColor, QGradient], context: QgsPointCloudRenderContext)¶
Draws a point using a
color
at the specifiedx
andy
(in map coordinates).
- greenAttribute(self) str ¶
Returns the attribute to use for the green channel.
See also
See also
See also
- Return type
str
- greenContrastEnhancement(self) QgsContrastEnhancement ¶
Returns the contrast enhancement to use for the green channel.
See also
See also
See also
- Return type
- pointXY(context: QgsPointCloudRenderContext, ptr: str, i: int) Tuple[float, float] ¶
Retrieves the x and y coordinate for the point at index
i
.
- pointZ(context: QgsPointCloudRenderContext, ptr: str, i: int) float ¶
Retrieves the z value for the point at index
i
.
- redAttribute(self) str ¶
Returns the attribute to use for the red channel.
See also
See also
See also
- Return type
str
- redContrastEnhancement(self) QgsContrastEnhancement ¶
Returns the contrast enhancement to use for the red channel.
See also
See also
See also
- Return type
- renderBlock(self, block: QgsPointCloudBlock, context: QgsPointCloudRenderContext)¶
- Parameters
block (QgsPointCloudBlock) –
context (QgsPointCloudRenderContext) –
- restoreCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)¶
Restores common renderer properties (such as point size and screen error) from the specified DOM
element
.See also
- save(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
- Parameters
doc (QDomDocument) –
context (QgsReadWriteContext) –
- Return type
QDomElement
- saveCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)¶
Saves common renderer properties (such as point size and screen error) to the specified DOM
element
.See also
- setBlueAttribute(self, attribute: str)¶
Sets the
attribute
to use for the blue channel.See also
See also
See also
- Parameters
attribute (str) –
- setBlueContrastEnhancement(self, enhancement: QgsContrastEnhancement)¶
Sets the contrast
enhancement
to use for the blue channel.Ownership of
enhancement
is transferred.See also
See also
See also
- Parameters
enhancement (QgsContrastEnhancement) –
- setGreenAttribute(self, attribute: str)¶
Sets the
attribute
to use for the green channel.See also
See also
See also
- Parameters
attribute (str) –
- setGreenContrastEnhancement(self, enhancement: QgsContrastEnhancement)¶
Sets the contrast
enhancement
to use for the green channel.Ownership of
enhancement
is transferred.See also
See also
See also
- Parameters
enhancement (QgsContrastEnhancement) –
- setRedAttribute(self, attribute: str)¶
Sets the
attribute
to use for the red channel.See also
See also
See also
- Parameters
attribute (str) –
- setRedContrastEnhancement(self, enhancement: QgsContrastEnhancement)¶
Sets the contrast
enhancement
to use for the red channel.Ownership of
enhancement
is transferred.See also
See also
See also
- Parameters
enhancement (QgsContrastEnhancement) –
- type(self) str ¶
- Return type
str
- usedAttributes(self, context: QgsPointCloudRenderContext) Set[str] ¶
- Parameters
context (QgsPointCloudRenderContext) –
- Return type
Set[str]