QGeometryRenderer¶
Encapsulates geometry rendering. More…
Inherited by: QConeMesh, QCuboidMesh, QCylinderMesh, QExtrudedTextMesh, QPlaneMesh, QSphereMesh, QTorusMesh, QMesh
Synopsis¶
Functions¶
def
firstInstance
()def
firstVertex
()def
geometry
()def
geometryFactory
()def
indexBufferByteOffset
()def
indexOffset
()def
instanceCount
()def
primitiveRestartEnabled
()def
primitiveType
()def
restartIndexValue
()def
setGeometryFactory
(factory)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
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
vertexCountChanged
(vertexCount)def
verticesPerPatchChanged
(verticesPerPatch)
Detailed Description¶
A
QGeometryRenderer
holds all the information necessary to draw aQGeometry
. AQGeometry
holds the coordinates of the geometry data -QGeometryRenderer
specifies how to interpret that data.
- class PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer([parent=None])¶
- param parent:
Constructs a new
QGeometryRenderer
withparent
.
- PySide2.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
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstance()¶
- Return type:
int
Holds the base instance.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstanceChanged(firstInstance)¶
- Parameters:
firstInstance – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertex()¶
- Return type:
int
Holds the base vertex.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertexChanged(firstVertex)¶
- Parameters:
firstVertex – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometry()¶
- Return type:
Holds the geometry.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometryChanged(geometry)¶
- Parameters:
geometry –
PySide2.Qt3DRender.Qt3DRender.QGeometry
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometryFactory()¶
- Return type:
QSharedPointer
Note
This function is deprecated.
Returns the geometry functor.
See also
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffset()¶
- Return type:
int
Holds the byte offset into the index buffer.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffsetChanged(offset)¶
- Parameters:
offset – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffset()¶
- Return type:
int
Holds the base vertex.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffsetChanged(indexOffset)¶
- Parameters:
indexOffset – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCount()¶
- Return type:
int
Holds the instance count.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCountChanged(instanceCount)¶
- Parameters:
instanceCount – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabled()¶
- Return type:
bool
Holds the primitive restart flag.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabledChanged(primitiveRestartEnabled)¶
- Parameters:
primitiveRestartEnabled – bool
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveType()¶
- Return type:
Holds the primitive type.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveTypeChanged(primitiveType)¶
- Parameters:
primitiveType –
PrimitiveType
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValue()¶
- Return type:
int
Holds the restart index.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValueChanged(restartIndexValue)¶
- Parameters:
restartIndexValue – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstInstance(firstInstance)¶
- Parameters:
firstInstance – int
Holds the base instance.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstVertex(firstVertex)¶
- Parameters:
firstVertex – int
Holds the base vertex.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setGeometry(geometry)¶
- Parameters:
geometry –
PySide2.Qt3DRender.Qt3DRender.QGeometry
Holds the geometry.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setGeometryFactory(factory)¶
- Parameters:
factory –
QSharedPointer
Note
This function is deprecated.
Sets the geometry
factory
.See also
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexBufferByteOffset(offset)¶
- Parameters:
offset – int
Holds the byte offset into the index buffer.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexOffset(indexOffset)¶
- Parameters:
indexOffset – int
Holds the base vertex.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setInstanceCount(instanceCount)¶
- Parameters:
instanceCount – int
Holds the instance count.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveRestartEnabled(enabled)¶
- Parameters:
enabled – bool
Holds the primitive restart flag.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveType(primitiveType)¶
- Parameters:
primitiveType –
PrimitiveType
Holds the primitive type.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setRestartIndexValue(index)¶
- Parameters:
index – int
Holds the restart index.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setVertexCount(vertexCount)¶
- Parameters:
vertexCount – int
Holds the primitive count.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setVerticesPerPatch(verticesPerPatch)¶
- Parameters:
verticesPerPatch – int
Holds vertices per patch.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCount()¶
- Return type:
int
Holds the primitive count.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCountChanged(vertexCount)¶
- Parameters:
vertexCount – int
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatch()¶
- Return type:
int
Holds vertices per patch.
- PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatchChanged(verticesPerPatch)¶
- Parameters:
verticesPerPatch – int
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.