QRasterMode#

The QRasterMode render state allows to control the type of rasterization to be performed. More

Synopsis#

Functions#

Slots#

Signals#

Detailed Description#

The QRasterMode class is used to control the rasterization step of the primitives at render time. This can be used to choose whether we only want to show points, edges or fill a primitive.

Note

This is not supported when rendering on OpenGL ES 2.0 platforms.

See also

QAlphaTest QStencilTest

class PySide6.Qt3DRender.Qt3DRender.QRasterMode([parent=None])#
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DRender.Qt3DRender.QRasterMode.RasterMode#

Enumeration for raster mode values

Constant

Description

Qt3DRender.QRasterMode.Points

Vertices at the start of an edge are drawn as points.

Qt3DRender.QRasterMode.Lines

Edges of a polygon are draw as line segments.

Qt3DRender.QRasterMode.Fill

Fills the interior of the primitive.

PySide6.Qt3DRender.Qt3DRender.QRasterMode.FaceMode#

Enumeration for face mode values

Constant

Description

Qt3DRender.QRasterMode.Front

Applies to front faces only

Qt3DRender.QRasterMode.Back

Applies to back faces only

Qt3DRender.QRasterMode.FrontAndBack

Applies to front and back faces

PySide6.Qt3DRender.Qt3DRender.QRasterMode.faceMode()#
Return type

FaceMode

Holds the face mode to be used. Controls on which face the raster mode is to be applied.

PySide6.Qt3DRender.Qt3DRender.QRasterMode.faceModeChanged(faceMode)#
Parameters

faceModeFaceMode

PySide6.Qt3DRender.Qt3DRender.QRasterMode.rasterMode()#
Return type

RasterMode

Holds the raster mode to be used.

PySide6.Qt3DRender.Qt3DRender.QRasterMode.rasterModeChanged(rasterMode)#
Parameters

rasterModeRasterMode

PySide6.Qt3DRender.Qt3DRender.QRasterMode.setFaceMode(faceMode)#
Parameters

faceModeFaceMode

Holds the face mode to be used. Controls on which face the raster mode is to be applied.

PySide6.Qt3DRender.Qt3DRender.QRasterMode.setRasterMode(rasterMode)#
Parameters

rasterModeRasterMode

Holds the raster mode to be used.