Specifies a reflection plane for a View of the scene. More...
Header: | #include <ReflectionPlane> |
Since: | Kuesa 1.3 |
Instantiated By: | ReflectionPlane |
This class was introduced in Kuesa 1.3.
QVector4D | equation() const |
const std::vector<Qt3DRender::QLayer *> & | layers() const |
void | setEquation(const QVector4D &equation) |
void | equationChanged(const QVector4D &equation) |
The ReflectionPlane class allows to provide the information required to perform planar reflections. It expects a plane equation to be provided. Additionally, a set of visible layers can also be provided to restrict what the reflections will display.
Kuesa::ForwardRenderer *frameGraph = new Kuesa::ForwardRenderer(); Kuesa::ReflectionPlane *reflectionPlane = new Kuesa::ReflectionPlane(); reflectionPlane->setEquation(QVector4D(0.0f, 1.0f, 0.0f, 0.0f); frameGraph->addReflectionPlane(reflectionPlane);
Read more about Kuesa Reflection Planes.
Holds the plane equation as a QVector4D in the form Ax + By + Cz = D where the plane normal is (A, B, C).
Access functions:
QVector4D | equation() const |
void | setEquation(const QVector4D &equation) |
Notifier signal:
void | equationChanged(const QVector4D &equation) |