QGeometryView#

Encapsulates geometry details. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QGeometryView

Inherited by: QTorusGeometryView, QSphereGeometryView, QPlaneGeometryView, QCylinderGeometryView, QCuboidGeometryView, QConeGeometryView

Synopsis#

Properties#

Functions#

Slots#

Signals#

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 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:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QGeometryView with parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.firstInstance: int#

Holds the base instance.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.firstVertex: int#

Holds the base vertex.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.geometry: PySide6.Qt3DCore.Qt3DCore.QGeometry#

Holds the geometry.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.indexBufferByteOffset: int#

Holds the byte offset into the index buffer.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.indexOffset: int#

Holds the base vertex.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.instanceCount: int#

Holds the instance count.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveRestartEnabled: bool#

Holds the primitive restart flag.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveType: PrimitiveType#

Holds the primitive type.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.restartIndexValue: int#

Holds the restart index.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.vertexCount: int#

Holds the primitive count.

Access functions:
property PᅟySide6.Qt3DCore.Qt3DCore.QGeometryView.verticesPerPatch: int#

Holds vertices per patch.

Access functions:
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

Getter of property firstInstance .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstInstanceChanged(firstInstance)#
Parameters:

firstInstance – int

Notification signal of property firstInstance .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstVertex()#
Return type:

int

See also

setFirstVertex()

Getter of property firstVertex .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.firstVertexChanged(firstVertex)#
Parameters:

firstVertex – int

Notification signal of property firstVertex .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.geometry()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QGeometry

See also

setGeometry()

Getter of property geometry .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.geometryChanged(geometry)#
Parameters:

geometryPySide6.Qt3DCore.Qt3DCore.QGeometry

Notification signal of property geometry .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexBufferByteOffset()#
Return type:

int

Getter of property indexBufferByteOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexBufferByteOffsetChanged(offset)#
Parameters:

offset – int

Notification signal of property indexBufferByteOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexOffset()#
Return type:

int

See also

setIndexOffset()

Getter of property indexOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.indexOffsetChanged(indexOffset)#
Parameters:

indexOffset – int

Notification signal of property indexOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.instanceCount()#
Return type:

int

Getter of property instanceCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.instanceCountChanged(instanceCount)#
Parameters:

instanceCount – int

Notification signal of property instanceCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveRestartEnabled()#
Return type:

bool

Getter of property primitiveRestartEnabled .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveRestartEnabledChanged(primitiveRestartEnabled)#
Parameters:

primitiveRestartEnabled – bool

Notification signal of property primitiveRestartEnabled .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveType()#
Return type:

PrimitiveType

Getter of property primitiveType .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.primitiveTypeChanged(primitiveType)#
Parameters:

primitiveTypePrimitiveType

Notification signal of property primitiveType .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.restartIndexValue()#
Return type:

int

Getter of property restartIndexValue .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.restartIndexValueChanged(restartIndexValue)#
Parameters:

restartIndexValue – int

Notification signal of property restartIndexValue .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setFirstInstance(firstInstance)#
Parameters:

firstInstance – int

See also

firstInstance()

Setter of property firstInstance .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setFirstVertex(firstVertex)#
Parameters:

firstVertex – int

See also

firstVertex()

Setter of property firstVertex .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setGeometry(geometry)#
Parameters:

geometryPySide6.Qt3DCore.Qt3DCore.QGeometry

See also

geometry()

Setter of property geometry .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setIndexBufferByteOffset(offset)#
Parameters:

offset – int

Setter of property indexBufferByteOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setIndexOffset(indexOffset)#
Parameters:

indexOffset – int

See also

indexOffset()

Setter of property indexOffset .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setInstanceCount(instanceCount)#
Parameters:

instanceCount – int

See also

instanceCount()

Setter of property instanceCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setPrimitiveRestartEnabled(enabled)#
Parameters:

enabled – bool

Setter of property primitiveRestartEnabled .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setPrimitiveType(primitiveType)#
Parameters:

primitiveTypePrimitiveType

See also

primitiveType()

Setter of property primitiveType .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setRestartIndexValue(index)#
Parameters:

index – int

Setter of property restartIndexValue .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setVertexCount(vertexCount)#
Parameters:

vertexCount – int

See also

vertexCount()

Setter of property vertexCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.setVerticesPerPatch(verticesPerPatch)#
Parameters:

verticesPerPatch – int

Setter of property verticesPerPatch .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.vertexCount()#
Return type:

int

See also

setVertexCount()

Getter of property vertexCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.vertexCountChanged(vertexCount)#
Parameters:

vertexCount – int

Notification signal of property vertexCount .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.verticesPerPatch()#
Return type:

int

Getter of property verticesPerPatch .

PySide6.Qt3DCore.Qt3DCore.QGeometryView.verticesPerPatchChanged(verticesPerPatch)#
Parameters:

verticesPerPatch – int

Notification signal of property verticesPerPatch .