QGeometryRenderer#
Encapsulates geometry rendering. More…
Inherited by: QMesh, QTorusMesh, QSphereMesh, QPlaneMesh, QExtrudedTextMesh, QCylinderMesh, QCuboidMesh, QConeMesh
Synopsis#
Properties#
Functions#
def
firstInstance
()def
firstVertex
()def
geometry
()def
indexBufferByteOffset
()def
indexOffset
()def
instanceCount
()def
primitiveRestartEnabled
()def
primitiveType
()def
restartIndexValue
()def
sortIndex
()def
vertexCount
()def
verticesPerPatch
()
Slots#
def
setFirstInstance
(firstInstance)def
setFirstVertex
(firstVertex)def
setGeometry
(geometry)def
setIndexBufferByteOffset
(offset)def
setIndexOffset
(indexOffset)def
setInstanceCount
(instanceCount)def
setPrimitiveRestartEnabled
(enabled)def
setPrimitiveType
(primitiveType)def
setRestartIndexValue
(index)def
setSortIndex
(sortIndex)def
setVertexCount
(vertexCount)def
setVerticesPerPatch
(verticesPerPatch)
Signals#
def
firstInstanceChanged
(firstInstance)def
firstVertexChanged
(firstVertex)def
geometryChanged
(geometry)def
indexBufferByteOffsetChanged
(offset)def
indexOffsetChanged
(indexOffset)def
instanceCountChanged
(instanceCount)def
primitiveRestartEnabledChanged
(primitiveRestartEnabled)def
primitiveTypeChanged
(primitiveType)def
restartIndexValueChanged
(restartIndexValue)def
sortIndexChanged
(sortIndex)def
vertexCountChanged
(vertexCount)def
verticesPerPatchChanged
(verticesPerPatch)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
A QGeometryRenderer
holds all the information necessary to draw a QGeometry
. A QGeometry holds the coordinates of the geometry data - QGeometryRenderer
specifies how to interpret that data.
- class PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QGeometryRenderer
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstance: int#
Holds the base instance.
- Access functions:
setFirstInstance
(firstInstance)Signal
firstInstanceChanged
(firstInstance)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertex: int#
Holds the base vertex.
- Access functions:
firstVertex
()setFirstVertex
(firstVertex)Signal
firstVertexChanged
(firstVertex)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.geometry: PySide6.Qt3DCore.Qt3DCore.QGeometry#
Holds the geometry.
- Access functions:
geometry
()setGeometry
(geometry)Signal
geometryChanged
(geometry)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffset: int#
Holds the byte offset into the index buffer.
- Access functions:
setIndexBufferByteOffset
(offset)Signal
indexBufferByteOffsetChanged
(offset)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffset: int#
Holds the base vertex.
- Access functions:
indexOffset
()setIndexOffset
(indexOffset)Signal
indexOffsetChanged
(indexOffset)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCount: int#
Holds the instance count.
- Access functions:
setInstanceCount
(instanceCount)Signal
instanceCountChanged
(instanceCount)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabled: bool#
Holds the primitive restart flag.
- Access functions:
setPrimitiveRestartEnabled
(enabled)Signal
primitiveRestartEnabledChanged
(primitiveRestartEnabled)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveType: PrimitiveType#
Holds the primitive type.
- Access functions:
setPrimitiveType
(primitiveType)Signal
primitiveTypeChanged
(primitiveType)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValue: int#
Holds the restart index.
- Access functions:
setRestartIndexValue
(index)Signal
restartIndexValueChanged
(restartIndexValue)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.sortIndex: float#
Overrides the sorting index when depth sorting is enabled.
If depth sorting is enabled on the frame graph, the renderer will sort objects based on how far the center of the bounding volume is from the camera and render objects from the furthest to the closest.
This property can be used to override the depth index and precisely control the order in which objects are rendered. This is useful when all objects are at the same physical distance from the camera.
The actual values are not significant, only that they define an order to sort the objects. These are sorted such as the object with the smallest value is drawn first, then the second smallest, and so on.
Note
Setting this to -1.f will disable the explicit sorting for this entity and revert to using the distance from the center of the bounding volume.
See also
QSortPolicy
- Access functions:
sortIndex
()setSortIndex
(sortIndex)Signal
sortIndexChanged
(sortIndex)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCount: int#
Holds the primitive count.
- Access functions:
vertexCount
()setVertexCount
(vertexCount)Signal
vertexCountChanged
(vertexCount)
- property PᅟySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatch: int#
Holds vertices per patch.
- Access functions:
setVerticesPerPatch
(verticesPerPatch)Signal
verticesPerPatchChanged
(verticesPerPatch)
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.PrimitiveType#
The type of the primitive.
Constant
Description
Qt3DRender.QGeometryRenderer.Points
List of points
Qt3DRender.QGeometryRenderer.Lines
List of lines
Qt3DRender.QGeometryRenderer.LineLoop
Connected group of lines connected at ends forming a loop
Qt3DRender.QGeometryRenderer.LineStrip
Connected group of lines
Qt3DRender.QGeometryRenderer.Triangles
List of triangles
Qt3DRender.QGeometryRenderer.TriangleStrip
List of connected triangles
Qt3DRender.QGeometryRenderer.TriangleFan
List of connected triagles where all triangles share the first vertex
Qt3DRender.QGeometryRenderer.LinesAdjacency
Allows geometry shader to access adjacent lines in a line list
Qt3DRender.QGeometryRenderer.TrianglesAdjacency
Allows geometry shader to access adjacent triangles in a triangle list
Qt3DRender.QGeometryRenderer.LineStripAdjacency
Allows geometry shader to access adjacent lines in a line strip
Qt3DRender.QGeometryRenderer.TriangleStripAdjacency
Allows geometry shader to access adjacent triangles in a triangle strip
Qt3DRender.QGeometryRenderer.Patches
Only primitive type accepted by tesselation shader where a patch consists of arbitrary number of vertices
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstance()#
- Return type:
int
See also
Getter of property firstInstance
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstanceChanged(firstInstance)#
- Parameters:
firstInstance – int
Notification signal of property firstInstance
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertex()#
- Return type:
int
See also
Getter of property firstVertex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertexChanged(firstVertex)#
- Parameters:
firstVertex – int
Notification signal of property firstVertex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.geometry()#
- Return type:
See also
Getter of property geometry
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.geometryChanged(geometry)#
- Parameters:
geometry –
PySide6.Qt3DCore.Qt3DCore.QGeometry
Notification signal of property geometry
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffset()#
- Return type:
int
See also
Getter of property indexBufferByteOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffsetChanged(offset)#
- Parameters:
offset – int
Notification signal of property indexBufferByteOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffset()#
- Return type:
int
See also
Getter of property indexOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffsetChanged(indexOffset)#
- Parameters:
indexOffset – int
Notification signal of property indexOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCount()#
- Return type:
int
See also
Getter of property instanceCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCountChanged(instanceCount)#
- Parameters:
instanceCount – int
Notification signal of property instanceCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabled()#
- Return type:
bool
See also
Getter of property primitiveRestartEnabled
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabledChanged(primitiveRestartEnabled)#
- Parameters:
primitiveRestartEnabled – bool
Notification signal of property primitiveRestartEnabled
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveType()#
- Return type:
See also
Getter of property primitiveType
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveTypeChanged(primitiveType)#
- Parameters:
primitiveType –
PrimitiveType
Notification signal of property primitiveType
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValue()#
- Return type:
int
See also
Getter of property restartIndexValue
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValueChanged(restartIndexValue)#
- Parameters:
restartIndexValue – int
Notification signal of property restartIndexValue
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstInstance(firstInstance)#
- Parameters:
firstInstance – int
See also
Setter of property firstInstance
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstVertex(firstVertex)#
- Parameters:
firstVertex – int
See also
Setter of property firstVertex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setGeometry(geometry)#
- Parameters:
geometry –
PySide6.Qt3DCore.Qt3DCore.QGeometry
See also
Setter of property geometry
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexBufferByteOffset(offset)#
- Parameters:
offset – int
See also
Setter of property indexBufferByteOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexOffset(indexOffset)#
- Parameters:
indexOffset – int
See also
Setter of property indexOffset
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setInstanceCount(instanceCount)#
- Parameters:
instanceCount – int
See also
Setter of property instanceCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveRestartEnabled(enabled)#
- Parameters:
enabled – bool
See also
Setter of property primitiveRestartEnabled
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveType(primitiveType)#
- Parameters:
primitiveType –
PrimitiveType
See also
Setter of property primitiveType
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setRestartIndexValue(index)#
- Parameters:
index – int
See also
Setter of property restartIndexValue
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setSortIndex(sortIndex)#
- Parameters:
sortIndex – float
See also
Setter of property sortIndex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setVertexCount(vertexCount)#
- Parameters:
vertexCount – int
See also
Setter of property vertexCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.setVerticesPerPatch(verticesPerPatch)#
- Parameters:
verticesPerPatch – int
See also
Setter of property verticesPerPatch
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.sortIndex()#
- Return type:
float
See also
Getter of property sortIndex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.sortIndexChanged(sortIndex)#
- Parameters:
sortIndex – float
Notification signal of property sortIndex
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCount()#
- Return type:
int
See also
Getter of property vertexCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCountChanged(vertexCount)#
- Parameters:
vertexCount – int
Notification signal of property vertexCount
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatch()#
- Return type:
int
See also
Getter of property verticesPerPatch
.
- PySide6.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatchChanged(verticesPerPatch)#
- Parameters:
verticesPerPatch – int
Notification signal of property verticesPerPatch
.