Qt3DRender.QGeometryRenderer

Encapsulates geometry rendering. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer

Inherited by: Qt3DExtras.QConeMesh, Qt3DExtras.QCuboidMesh, Qt3DExtras.QCylinderMesh, Qt3DExtras.QExtrudedTextMesh, Qt3DExtras.QPlaneMesh, Qt3DExtras.QSphereMesh, Qt3DExtras.QTorusMesh, Qt3DRender.QMesh

Synopsis

Slots

Signals

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 PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer([parent=None])
param parent

QNode

Constructs a new QGeometryRenderer with parent .

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

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstInstanceChanged(firstInstance)
Parameters

firstInstanceint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertex()
Return type

int

See also

setFirstVertex()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.firstVertexChanged(firstVertex)
Parameters

firstVertexint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometry()
Return type

QGeometry

See also

setGeometry()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometryChanged(geometry)
Parameters

geometryQGeometry

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.geometryFactory()
Return type

QSharedPointer

Returns the geometry functor.

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffset()
Return type

int

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexBufferByteOffsetChanged(offset)
Parameters

offsetint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffset()
Return type

int

See also

setIndexOffset()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.indexOffsetChanged(indexOffset)
Parameters

indexOffsetint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCount()
Return type

int

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.instanceCountChanged(instanceCount)
Parameters

instanceCountint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabled()
Return type

bool

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveRestartEnabledChanged(primitiveRestartEnabled)
Parameters

primitiveRestartEnabledbool

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveType()
Return type

PrimitiveType

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.primitiveTypeChanged(primitiveType)
Parameters

primitiveTypePrimitiveType

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValue()
Return type

int

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.restartIndexValueChanged(restartIndexValue)
Parameters

restartIndexValueint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstInstance(firstInstance)
Parameters

firstInstanceint

See also

firstInstance()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setFirstVertex(firstVertex)
Parameters

firstVertexint

See also

firstVertex()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setGeometry(geometry)
Parameters

geometryQGeometry

See also

geometry()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setGeometryFactory(factory)
Parameters

factoryQSharedPointer

Sets the geometry factory .

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexBufferByteOffset(offset)
Parameters

offsetint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setIndexOffset(indexOffset)
Parameters

indexOffsetint

See also

indexOffset()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setInstanceCount(instanceCount)
Parameters

instanceCountint

See also

instanceCount()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveRestartEnabled(enabled)
Parameters

enabledbool

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setPrimitiveType(primitiveType)
Parameters

primitiveTypePrimitiveType

See also

primitiveType()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setRestartIndexValue(index)
Parameters

indexint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setVertexCount(vertexCount)
Parameters

vertexCountint

See also

vertexCount()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.setVerticesPerPatch(verticesPerPatch)
Parameters

verticesPerPatchint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCount()
Return type

int

See also

setVertexCount()

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.vertexCountChanged(vertexCount)
Parameters

vertexCountint

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatch()
Return type

int

PySide2.Qt3DRender.Qt3DRender.QGeometryRenderer.verticesPerPatchChanged(verticesPerPatch)
Parameters

verticesPerPatchint