QClipPlane Class
(Qt3DRender::QClipPlane)Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. More...
Header: | #include <QClipPlane> |
qmake: | QT += 3drender |
Since: | Qt 5.5 |
Instantiated By: | ClipPlane |
Inherits: | Qt3DRender::QRenderState |
This class was introduced in Qt 5.5.
Properties
- distance : float
- normal : QVector3D
- planeIndex : int
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
float | distance() const |
QVector3D | normal() const |
int | planeIndex() const |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setDistance(float) |
void | setNormal(QVector3D) |
void | setPlaneIndex(int) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | distanceChanged(float distance) |
void | normalChanged(QVector3D normal) |
void | planeIndexChanged(int planeIndex) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
By default, OpenGL supports up to 8 additional clipping planes. Qt3DCore::QClipPlane allows to enable one of these additional planes. These planes can then be manipulated in the shaders using gl_ClipDistance[i] where i varies between 0 and 7. The underlying implementation may support more than 8 clip planes, but it is not guaranteed.
Property Documentation
distance : float
Holds the distance of the plane from the world origin.
Access functions:
float | distance() const |
void | setDistance(float) |
Notifier signal:
void | distanceChanged(float distance) |
normal : QVector3D
Holds the normal of the plane.
Access functions:
QVector3D | normal() const |
void | setNormal(QVector3D) |
Notifier signal:
void | normalChanged(QVector3D normal) |
planeIndex : int
Holds the index of the plane.
Note: Usually between 0-7.
Access functions:
int | planeIndex() const |
void | setPlaneIndex(int) |
Notifier signal:
void | planeIndexChanged(int planeIndex) |