QColorMask 类

class Qt3DRender ::QColorMask

允许应该把哪些指定颜色分量写入目前绑定的帧缓冲。 更多...

头: #include <QColorMask>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
实例化: ColorMask
继承: Qt3DRender::QRenderState

特性

公共函数

QColorMask (Qt3DCore::QNode * parent = nullptr)
bool isAlphaMasked () const
bool isBlueMasked () const
bool isGreenMasked () const
bool isRedMasked () const

公共槽

void setAlphaMasked (bool alphaMasked )
void setBlueMasked (bool blueMasked )
void setGreenMasked (bool greenMasked )
void setRedMasked (bool redMasked )

信号

void alphaMaskedChanged (bool alphaMasked )
void blueMaskedChanged (bool blueMasked )
void greenMaskedChanged (bool greenMasked )
void redMaskedChanged (bool redMasked )

详细描述

By default, the property for each color component (red, green, blue, alpha) is set to true which means they will be written to the frame buffer. Setting any of the color component to false will prevent it from being written into the frame buffer.

特性文档编制

alphaMasked : bool

Holds whether the alphaMasked component should be written to the frame buffer.

访问函数:

bool isAlphaMasked () const
void setAlphaMasked (bool alphaMasked )

通知程序信号:

void alphaMaskedChanged (bool alphaMasked )

blueMasked : bool

Holds whether the blue color component should be written to the frame buffer.

访问函数:

bool isBlueMasked () const
void setBlueMasked (bool blueMasked )

通知程序信号:

void blueMaskedChanged (bool blueMasked )

greenMasked : bool

Holds whether the green color component should be written to the frame buffer.

访问函数:

bool isGreenMasked () const
void setGreenMasked (bool greenMasked )

通知程序信号:

void greenMaskedChanged (bool greenMasked )

redMasked : bool

Holds whether the red color component should be written to the frame buffer.

访问函数:

bool isRedMasked () const
void setRedMasked (bool redMasked )

通知程序信号:

void redMaskedChanged (bool redMasked )

成员函数文档编制

[explicit] QColorMask:: QColorMask ( Qt3DCore::QNode * parent = nullptr)

构造新的 Qt3DCore::QColorMask 实例采用 parent 作为父级。