QGeometryView¶
Encapsulates geometry details. More…
Inherited by: QTorusGeometryView, QSphereGeometryView, QPlaneGeometryView, QCylinderGeometryView, QCuboidGeometryView, QConeGeometryView
New in version 6.0.
Synopsis¶
Functions¶
def
firstInstance
()def
firstVertex
()def
geometry
()def
indexBufferByteOffset
()def
indexOffset
()def
instanceCount
()def
primitiveRestartEnabled
()def
primitiveType
()def
restartIndexValue
()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 GeometryView holds all the information necessary to handle a Geometry. A Geometry holds the coordinates of the geometry data - GeometryView specifies how to interpret that data.
- class PySide6.Qt3DCore.Qt3DCore.QGeometryView([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QGeometryView
with parent
.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.PrimitiveType¶
The type of the primitive.
Constant
Description
Qt3DCore.QGeometryView.Points
List of points
Qt3DCore.QGeometryView.Lines
List of lines
Qt3DCore.QGeometryView.LineLoop
Connected group of lines connected at ends forming a loop
Qt3DCore.QGeometryView.LineStrip
Connected group of lines
Qt3DCore.QGeometryView.Triangles
List of triangles
Qt3DCore.QGeometryView.TriangleStrip
List of connected triangles
Qt3DCore.QGeometryView.TriangleFan
List of connected triagles where all triangles share the first vertex
Qt3DCore.QGeometryView.LinesAdjacency
Allows geometry shader to access adjacent lines in a line list
Qt3DCore.QGeometryView.TrianglesAdjacency
Allows geometry shader to access adjacent triangles in a triangle list
Qt3DCore.QGeometryView.LineStripAdjacency
Allows geometry shader to access adjacent lines in a line strip
Qt3DCore.QGeometryView.TriangleStripAdjacency
Allows geometry shader to access adjacent triangles in a triangle strip
Qt3DCore.QGeometryView.Patches
Only primitive type accepted by tesselation shader where a patch consists of arbitrary number of vertices
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstInstance()¶
- Return type
int
Holds the base instance.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstInstanceChanged(firstInstance)¶
- Parameters
firstInstance – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstVertex()¶
- Return type
int
Holds the base vertex.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstVertexChanged(firstVertex)¶
- Parameters
firstVertex – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.geometry()¶
- Return type
Holds the geometry.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.geometryChanged(geometry)¶
- Parameters
geometry –
PySide6.Qt3DCore.Qt3DCore.QGeometry
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexBufferByteOffset()¶
- Return type
int
Holds the byte offset into the index buffer.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexBufferByteOffsetChanged(offset)¶
- Parameters
offset – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexOffset()¶
- Return type
int
Holds the base vertex.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexOffsetChanged(indexOffset)¶
- Parameters
indexOffset – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.instanceCount()¶
- Return type
int
Holds the instance count.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.instanceCountChanged(instanceCount)¶
- Parameters
instanceCount – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveRestartEnabled()¶
- Return type
bool
Holds the primitive restart flag.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveRestartEnabledChanged(primitiveRestartEnabled)¶
- Parameters
primitiveRestartEnabled – bool
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveType()¶
- Return type
Holds the primitive type.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveTypeChanged(primitiveType)¶
- Parameters
primitiveType –
PrimitiveType
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.restartIndexValue()¶
- Return type
int
Holds the restart index.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.restartIndexValueChanged(restartIndexValue)¶
- Parameters
restartIndexValue – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setFirstInstance(firstInstance)¶
- Parameters
firstInstance – int
Holds the base instance.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setFirstVertex(firstVertex)¶
- Parameters
firstVertex – int
Holds the base vertex.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setGeometry(geometry)¶
- Parameters
geometry –
PySide6.Qt3DCore.Qt3DCore.QGeometry
Holds the geometry.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setIndexBufferByteOffset(offset)¶
- Parameters
offset – int
Holds the byte offset into the index buffer.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setIndexOffset(indexOffset)¶
- Parameters
indexOffset – int
Holds the base vertex.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setInstanceCount(instanceCount)¶
- Parameters
instanceCount – int
Holds the instance count.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setPrimitiveRestartEnabled(enabled)¶
- Parameters
enabled – bool
Holds the primitive restart flag.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setPrimitiveType(primitiveType)¶
- Parameters
primitiveType –
PrimitiveType
Holds the primitive type.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setRestartIndexValue(index)¶
- Parameters
index – int
Holds the restart index.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setVertexCount(vertexCount)¶
- Parameters
vertexCount – int
Holds the primitive count.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.setVerticesPerPatch(verticesPerPatch)¶
- Parameters
verticesPerPatch – int
Holds vertices per patch.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.vertexCount()¶
- Return type
int
Holds the primitive count.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.vertexCountChanged(vertexCount)¶
- Parameters
vertexCount – int
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.verticesPerPatch()¶
- Return type
int
Holds vertices per patch.
- PySide6.Qt3DCore.Qt3DCore.QGeometryView.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.