Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGClipPlane Struct Reference

#include <qssgrenderclippingfrustum_p.h>

Collaboration diagram for QSSGClipPlane:

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

Detailed Description

Definition at line 25 of file qssgrenderclippingfrustum_p.h.

Member Typedef Documentation

◆ BoxEdgeFlag

using QSSGClipPlane::BoxEdgeFlag = std::underlying_type_t<BoxEdgeID>

Definition at line 34 of file qssgrenderclippingfrustum_p.h.

Member Enumeration Documentation

◆ BoxEdgeID

Enumerator
None 
xMax 
yMax 
zMax 

Definition at line 27 of file qssgrenderclippingfrustum_p.h.

Member Function Documentation

◆ calculateBBoxEdges()

void QSSGClipPlane::calculateBBoxEdges ( )
inline

Definition at line 110 of file qssgrenderclippingfrustum_p.h.

◆ corner()

constexpr QVector3D QSSGClipPlane::corner ( const QSSGBounds3 & bounds,
BoxEdgeFlag edge )
inlinestaticconstexpr

Definition at line 75 of file qssgrenderclippingfrustum_p.h.

◆ distance()

float QSSGClipPlane::distance ( const QVector3D & pt) const
inlinenodiscardconstexpr

Definition at line 51 of file qssgrenderclippingfrustum_p.h.

◆ intersect()

int QSSGClipPlane::intersect ( const QSSGBounds3 & bounds) const
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.

◆ intersectSimple()

bool QSSGClipPlane::intersectSimple ( const QSSGBounds3 & bounds) const
inlinenodiscardconstexpr

Definition at line 105 of file qssgrenderclippingfrustum_p.h.

◆ intersectWithLine()

QVector3D QSSGClipPlane::intersectWithLine ( const QVector3D & p0,
const QVector3D & p1 ) const
inline

Definition at line 54 of file qssgrenderclippingfrustum_p.h.

Member Data Documentation

◆ d

float QSSGClipPlane::d

Definition at line 46 of file qssgrenderclippingfrustum_p.h.

◆ mEdges

BoxEdge QSSGClipPlane::mEdges

Definition at line 47 of file qssgrenderclippingfrustum_p.h.

◆ normal

QVector3D QSSGClipPlane::normal

Definition at line 45 of file qssgrenderclippingfrustum_p.h.


The documentation for this struct was generated from the following file: