QClipPlane Class
(Qt3DRender::QClipPlane)Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance 更多...
头文件: | #include <QClipPlane> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.5 |
Instantiated By: | ClipPlane |
基类: | Qt3DRender::QRenderState |
属性
- distance : float
- normal : QVector3D
- planeIndex : int
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QClipPlane(Qt3DCore::QNode *parent = nullptr) | |
float | distance() const |
QVector3D | normal() const |
int | planeIndex() const |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setDistance(float) |
void | setNormal(QVector3D) |
void | setPlaneIndex(int) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | distanceChanged(float distance) |
void | normalChanged(QVector3D normal) |
void | planeIndexChanged(int planeIndex) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance
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.
属性
distance : float
Holds the distance of the plane from the world origin.
访问函数:
float | distance() const |
void | setDistance(float) |
Notifier signal:
void | distanceChanged(float distance) |
normal : QVector3D
Holds the normal of the plane.
访问函数:
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.
访问函数:
int | planeIndex() const |
void | setPlaneIndex(int) |
Notifier signal:
void | planeIndexChanged(int planeIndex) |