class QGeometryView

Encapsulates geometry details. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QGeometryView

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

Synopsis

Properties

Methods

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

Note

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

property firstInstanceᅟ: int

Holds the base instance.

Access functions:
property firstVertexᅟ: int

Holds the base vertex.

Access functions:
property geometryᅟ: QGeometry

Holds the geometry.

Access functions:
property indexBufferByteOffsetᅟ: int

Holds the byte offset into the index buffer.

Access functions:
property indexOffsetᅟ: int

Holds the base vertex.

Access functions:
property instanceCountᅟ: int

Holds the instance count.

Access functions:
property primitiveRestartEnabledᅟ: bool

Holds the primitive restart flag.

Access functions:
property primitiveTypeᅟ: Qt3DCore.QGeometryView.PrimitiveType

Holds the primitive type.

Access functions:
property restartIndexValueᅟ: int

Holds the restart index.

Access functions:
property vertexCountᅟ: int

Holds the primitive count.

Access functions:
property verticesPerPatchᅟ: int

Holds vertices per patch.

Access functions:
__init__([parent=None])
Parameters:

parentQNode

Constructs a new QGeometryView with parent.

firstInstance()
Return type:

int

See also

setFirstInstance()

Getter of property firstInstanceᅟ .

firstInstanceChanged(firstInstance)
Parameters:

firstInstance – int

Notification signal of property firstInstanceᅟ .

firstVertex()
Return type:

int

See also

setFirstVertex()

Getter of property firstVertexᅟ .

firstVertexChanged(firstVertex)
Parameters:

firstVertex – int

Notification signal of property firstVertexᅟ .

geometry()
Return type:

QGeometry

See also

setGeometry()

Getter of property geometryᅟ .

geometryChanged(geometry)
Parameters:

geometryQGeometry

Notification signal of property geometryᅟ .

indexBufferByteOffset()
Return type:

int

See also

setIndexBufferByteOffset()

Getter of property indexBufferByteOffsetᅟ .

indexBufferByteOffsetChanged(offset)
Parameters:

offset – int

Notification signal of property indexBufferByteOffsetᅟ .

indexOffset()
Return type:

int

See also

setIndexOffset()

Getter of property indexOffsetᅟ .

indexOffsetChanged(indexOffset)
Parameters:

indexOffset – int

Notification signal of property indexOffsetᅟ .

instanceCount()
Return type:

int

See also

setInstanceCount()

Getter of property instanceCountᅟ .

instanceCountChanged(instanceCount)
Parameters:

instanceCount – int

Notification signal of property instanceCountᅟ .

primitiveRestartEnabled()
Return type:

bool

See also

setPrimitiveRestartEnabled()

Getter of property primitiveRestartEnabledᅟ .

primitiveRestartEnabledChanged(primitiveRestartEnabled)
Parameters:

primitiveRestartEnabled – bool

Notification signal of property primitiveRestartEnabledᅟ .

primitiveType()
Return type:

PrimitiveType

See also

setPrimitiveType()

Getter of property primitiveTypeᅟ .

primitiveTypeChanged(primitiveType)
Parameters:

primitiveTypePrimitiveType

Notification signal of property primitiveTypeᅟ .

restartIndexValue()
Return type:

int

See also

setRestartIndexValue()

Getter of property restartIndexValueᅟ .

restartIndexValueChanged(restartIndexValue)
Parameters:

restartIndexValue – int

Notification signal of property restartIndexValueᅟ .

setFirstInstance(firstInstance)
Parameters:

firstInstance – int

See also

firstInstance()

Setter of property firstInstanceᅟ .

setFirstVertex(firstVertex)
Parameters:

firstVertex – int

See also

firstVertex()

Setter of property firstVertexᅟ .

setGeometry(geometry)
Parameters:

geometryQGeometry

See also

geometry()

Setter of property geometryᅟ .

setIndexBufferByteOffset(offset)
Parameters:

offset – int

See also

indexBufferByteOffset()

Setter of property indexBufferByteOffsetᅟ .

setIndexOffset(indexOffset)
Parameters:

indexOffset – int

See also

indexOffset()

Setter of property indexOffsetᅟ .

setInstanceCount(instanceCount)
Parameters:

instanceCount – int

See also

instanceCount()

Setter of property instanceCountᅟ .

setPrimitiveRestartEnabled(enabled)
Parameters:

enabled – bool

See also

primitiveRestartEnabled()

Setter of property primitiveRestartEnabledᅟ .

setPrimitiveType(primitiveType)
Parameters:

primitiveTypePrimitiveType

See also

primitiveType()

Setter of property primitiveTypeᅟ .

setRestartIndexValue(index)
Parameters:

index – int

See also

restartIndexValue()

Setter of property restartIndexValueᅟ .

setVertexCount(vertexCount)
Parameters:

vertexCount – int

See also

vertexCount()

Setter of property vertexCountᅟ .

setVerticesPerPatch(verticesPerPatch)
Parameters:

verticesPerPatch – int

See also

verticesPerPatch()

Setter of property verticesPerPatchᅟ .

vertexCount()
Return type:

int

See also

setVertexCount()

Getter of property vertexCountᅟ .

vertexCountChanged(vertexCount)
Parameters:

vertexCount – int

Notification signal of property vertexCountᅟ .

verticesPerPatch()
Return type:

int

See also

setVerticesPerPatch()

Getter of property verticesPerPatchᅟ .

verticesPerPatchChanged(verticesPerPatch)
Parameters:

verticesPerPatch – int

Notification signal of property verticesPerPatchᅟ .