![]() |
Qt 6.x
The Qt SDK
|
#include <qssgrenderclippingfrustum_p.h>
Classes | |
struct | BoxEdge |
Public Types | |
enum | BoxEdgeID : quint8 { None = 0 , xMax = 1 , yMax = 1 << 1 , zMax = 1 << 2 } |
using | BoxEdgeFlag = std::underlying_type_t< BoxEdgeID > |
Public Member Functions | |
constexpr float | distance (const QVector3D &pt) const |
QVector3D | intersectWithLine (const QVector3D &p0, const QVector3D &p1) const |
int | intersect (const QSSGBounds3 &bounds) const |
constexpr bool | intersectSimple (const QSSGBounds3 &bounds) const |
void | calculateBBoxEdges () |
Static Public Member Functions | |
static constexpr QVector3D | corner (const QSSGBounds3 &bounds, BoxEdgeFlag edge) |
Public Attributes | |
QVector3D | normal |
float | d |
BoxEdge | mEdges |
Definition at line 25 of file qssgrenderclippingfrustum_p.h.
using QSSGClipPlane::BoxEdgeFlag = std::underlying_type_t<BoxEdgeID> |
Definition at line 34 of file qssgrenderclippingfrustum_p.h.
enum QSSGClipPlane::BoxEdgeID : quint8 |
Enumerator | |
---|---|
None | |
xMax | |
yMax | |
zMax |
Definition at line 27 of file qssgrenderclippingfrustum_p.h.
|
inline |
Definition at line 110 of file qssgrenderclippingfrustum_p.h.
References QSSGClipPlane::BoxEdge::lowerEdge, mEdges, None, normal, QSSGClipPlane::BoxEdge::upperEdge, xMax, yMax, and zMax.
|
inlinestaticconstexpr |
Definition at line 75 of file qssgrenderclippingfrustum_p.h.
References QSSGBounds3::maximum, QSSGBounds3::minimum, xMax, yMax, and zMax.
Referenced by intersect(), and intersectSimple().
|
inlineconstexpr |
Definition at line 51 of file qssgrenderclippingfrustum_p.h.
References d, QVector3D::dotProduct(), and normal.
|
inline |
intersection test between plane and bounding sphere. return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane.
Definition at line 90 of file qssgrenderclippingfrustum_p.h.
References corner(), QSSGClipPlane::BoxEdge::lowerEdge, mEdges, and QSSGClipPlane::BoxEdge::upperEdge.
|
inlineconstexpr |
Definition at line 105 of file qssgrenderclippingfrustum_p.h.
References corner(), QSSGClipPlane::BoxEdge::lowerEdge, mEdges, and QSSGClipPlane::BoxEdge::upperEdge.
|
inline |
Definition at line 54 of file qssgrenderclippingfrustum_p.h.
References d, dir, QVector3D::dotProduct(), normal, p1, Q_ASSERT, and qAbs().
float QSSGClipPlane::d |
Definition at line 46 of file qssgrenderclippingfrustum_p.h.
Referenced by QSSGClippingFrustum::QSSGClippingFrustum(), distance(), getCameraDataImpl(), and intersectWithLine().
BoxEdge QSSGClipPlane::mEdges |
Definition at line 47 of file qssgrenderclippingfrustum_p.h.
Referenced by calculateBBoxEdges(), intersect(), and intersectSimple().
QVector3D QSSGClipPlane::normal |
Definition at line 45 of file qssgrenderclippingfrustum_p.h.
Referenced by QSSGClippingFrustum::QSSGClippingFrustum(), calculateBBoxEdges(), distance(), getCameraDataImpl(), and intersectWithLine().