Skip to content

Kuesa::Qt3D::ReflectionPlane

Module: Kuesa Qt 3D API

Specifies a reflection plane for a View of the scene. More...

#include <reflectionplane.h>

Inherits from Qt3DCore::QNode

Public Signals

Name
void equationChanged(const QVector4D & equation)
void layersChanged()

Public Functions

Name
ReflectionPlane(Qt3DCore::QNode * parent =nullptr)
void setEquation(const QVector4D & equation)
QVector4D equation() const
void addLayer(Qt3DRender::QLayer * layer)
void removeLayer(Qt3DRender::QLayer * layer)
const std::vector< Qt3DRender::QLayer * > & layers() const

Public Properties

Name
QVector4D equation

Detailed Description

1
class Kuesa::Qt3D::ReflectionPlane;

Specifies a reflection plane for a View of the scene.

Since: Kuesa 2.0

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.

1
2
3
4
5
6
Kuesa::Qt3D::ForwardRenderer *frameGraph = new Kuesa::Qt3D::ForwardRenderer();
Kuesa::Qt3D::ReflectionPlane *reflectionPlane = new Kuesa::Qt3D::ReflectionPlane();

reflectionPlane->setEquation(QVector4D(0.0f, 1.0f, 0.0f, 0.0f);

frameGraph->addReflectionPlane(reflectionPlane);

Read more about

Public Signals Documentation

signal equationChanged

1
2
3
void equationChanged(
    const QVector4D & equation
)

signal layersChanged

1
void layersChanged()

Public Functions Documentation

function ReflectionPlane

1
2
3
explicit ReflectionPlane(
    Qt3DCore::QNode * parent =nullptr
)

function setEquation

1
2
3
void setEquation(
    const QVector4D & equation
)

function equation

1
QVector4D equation() const

function addLayer

1
2
3
void addLayer(
    Qt3DRender::QLayer * layer
)

function removeLayer

1
2
3
void removeLayer(
    Qt3DRender::QLayer * layer
)

function layers

1
const std::vector< Qt3DRender::QLayer * > & 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.

Public Property Documentation

property equation

1
QVector4D equation;

Holds the plane equation as a QVector4D in the form Ax + By + Cz = D where the plane normal is (A, B, C).


Updated on 2023-07-03 at 11:02:11 +0000