QColorMask Class
(Qt3D::QColorMask)Allows specifying which color components should be written to the currently bound frame buffer. More...
Header: | #include <QColorMask> |
qmake: | QT += 3drenderer |
Inherits: | QRenderState |
Properties
Public Functions
QColorMask(QNode * parent = Q_NULLPTR) | |
~QColorMask() | |
bool | isAlpha() const |
bool | isBlue() const |
bool | isGreen() const |
bool | isRed() const |
void | setAlpha(bool alpha) |
void | setBlue(bool blue) |
void | setGreen(bool green) |
void | setRed(bool red) |
- 1 public function inherited from Qt3D::QRenderState
Signals
void | alphaChanged() |
void | blueChanged() |
void | greenChanged() |
void | redChanged() |
Protected Functions
void | copy(const QNode * ref) |
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() |
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() |
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() |
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() |
Member Function Documentation
QColorMask::QColorMask(QNode * parent = Q_NULLPTR)
Constructs a new Qt3D::QColorMask instance with parent as parent.
QColorMask::~QColorMask()
[protected]
void QColorMask::copy(const QNode * ref)
© 2016 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.