QColorMask Class

(Qt3DRender::QColorMask)

Allows specifying which color components should be written to the currently bound frame buffer. More...

Header: #include <QColorMask>
qmake: QT += 3drender
Inherits: Qt3DRender::QRenderState

Properties

Public Functions

QColorMask(Qt3DCore::QNode *parent = Q_NULLPTR)
~QColorMask()
bool isAlpha() const
bool isBlue() const
bool isGreen() const
bool isRed() const

Public Slots

void setAlpha(bool alpha)
void setBlue(bool blue)
void setGreen(bool green)
void setRed(bool red)

Signals

void alphaChanged(bool alpha)
void blueChanged(bool blue)
void greenChanged(bool green)
void redChanged(bool red)

Protected Functions

void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Allows specifying which color components should be written to the currently bound frame buffer.

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.

Property Documentation

alpha : bool

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

Access functions:

bool isAlpha() const
void setAlpha(bool alpha)

Notifier signal:

void alphaChanged(bool alpha)

blue : bool

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

Access functions:

bool isBlue() const
void setBlue(bool blue)

Notifier signal:

void blueChanged(bool blue)

green : bool

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

Access functions:

bool isGreen() const
void setGreen(bool green)

Notifier signal:

void greenChanged(bool green)

red : bool

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

Access functions:

bool isRed() const
void setRed(bool red)

Notifier signal:

void redChanged(bool red)

Member Function Documentation

QColorMask::QColorMask(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QColorMask.

QColorMask::~QColorMask()

Destroys the instance of QColorMask.

[protected] void QColorMask::copy(const Qt3DCore::QNode *ref)

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.