Kuesa Runtime

ReflectionPlane Class

class Kuesa::ReflectionPlane

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.

Properties

Public Functions

QVector4D equation() const
const std::vector<Qt3DRender::QLayer *> &layers() const
void setEquation(const QVector4D &equation)

Signals

void equationChanged(const QVector4D &equation)

Detailed Description

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.

Property Documentation

equation : QVector4D

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)

Member Function Documentation

const std::vector<Qt3DRender::QLayer *> &ReflectionPlane::layers() const

Returns the list of visible layers that are used to select what is reflected. If no layers are specified, uses the same set of layers as the view.