- class QRasterMode¶
The
QRasterMode
render state allows to control the type of rasterization to be performed. More…Synopsis¶
Properties¶
Methods¶
def
__init__()
def
faceMode()
def
rasterMode()
Slots¶
def
setFaceMode()
def
setRasterMode()
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¶
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 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.
- class 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
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property faceModeᅟ: Qt3DRender.QRasterMode.FaceMode¶
Holds the face mode to be used. Controls on which face the raster mode is to be applied.
- Access functions:
- property rasterModeᅟ: Qt3DRender.QRasterMode.RasterMode¶
Holds the raster mode to be used.
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
- faceMode()¶
- Return type:
FaceMode
See also
setFaceMode()
Getter of property
faceModeᅟ
.- faceModeChanged(faceMode)¶
- Parameters:
faceMode –
FaceMode
Notification signal of property
faceModeᅟ
.- rasterMode()¶
- Return type:
RasterMode
See also
setRasterMode()
Getter of property
rasterModeᅟ
.- rasterModeChanged(rasterMode)¶
- Parameters:
rasterMode –
RasterMode
Notification signal of property
rasterModeᅟ
.- setFaceMode(faceMode)¶
- Parameters:
faceMode –
FaceMode
See also
faceMode()
Setter of property
faceModeᅟ
.- setRasterMode(rasterMode)¶
- Parameters:
rasterMode –
RasterMode
See also
rasterMode()
Setter of property
rasterModeᅟ
.