Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. 更多...
| 頭: | #include <QClipPlane> |
| qmake: | QT += 3drender |
| Since: | Qt 5.5 |
| 實例化: | ClipPlane |
| 繼承: | Qt3DRender::QRenderState |
該類在 Qt 5.5 引入。
| float | distance () const |
| QVector3D | normal () const |
| int | planeIndex () const |
| void | setDistance ( float ) |
| void | setNormal ( QVector3D ) |
| void | setPlaneIndex ( int ) |
| void | distanceChanged (float distance ) |
| void | normalChanged (QVector3D normal ) |
| void | planeIndexChanged (int planeIndex ) |
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.
Holds the distance of the plane from the world origin.
訪問函數:
| float | distance () const |
| void | setDistance ( float ) |
通知程序信號:
| void | distanceChanged (float distance ) |
Holds the normal of the plane.
訪問函數:
| QVector3D | normal () const |
| void | setNormal ( QVector3D ) |
通知程序信號:
| void | normalChanged (QVector3D normal ) |
Holds the index of the plane.
注意: Usually between 0-7.
訪問函數:
| int | planeIndex () const |
| void | setPlaneIndex ( int ) |
通知程序信號:
| void | planeIndexChanged (int planeIndex ) |