ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
Frustum Class Reference

#include <ecvFrustum.h>

Collaboration diagram for Frustum:
[legend]

Public Types

enum  Intersection { OUTSIDE = 0, INTERSECT = 1, INSIDE = 2 }
 

Public Member Functions

 Frustum ()=default
 
 Frustum (const ccGLMatrixd &modelViewMat, const ccGLMatrixd &projMat)
 
virtual ~Frustum ()=default
 
Intersection pointInFrustum (const CCVector3f &p) const
 
Intersection sphereInFrustum (const CCVector3f &c, float r) const
 
Intersection boxInFrustum (const AABox &box) const
 
Intersection boxInFrustum (const AACube &cube) const
 

Protected Types

enum  PLANE {
  TOP = 0, BOTTOM = 1, LEFT = 2, RIGHT = 3,
  NEARP = 4, FARP = 5
}
 

Protected Member Functions

template<typename T >
void initfromMPMatrix (const ccGLMatrixTpl< T > &MP)
 

Protected Attributes

Plane pl [6]
 

Member Enumeration Documentation

◆ Intersection

Enumerator
OUTSIDE 
INTERSECT 
INSIDE 

◆ PLANE

enum Frustum::PLANE
protected
Enumerator
TOP 
BOTTOM 
LEFT 
RIGHT 
NEARP 
FARP 

Constructor & Destructor Documentation

◆ Frustum() [1/2]

Frustum::Frustum ( )
default

◆ Frustum() [2/2]

Frustum::Frustum ( const ccGLMatrixd &  modelViewMat,
const ccGLMatrixd &  projMat 
)
inline

References initfromMPMatrix().

◆ ~Frustum()

virtual Frustum::~Frustum ( )
virtualdefault

Member Function Documentation

◆ boxInFrustum() [1/2]

Intersection Frustum::boxInFrustum ( const AABox &  box) const
inline

◆ boxInFrustum() [2/2]

Intersection Frustum::boxInFrustum ( const AACube &  cube) const
inline

◆ initfromMPMatrix()

template<typename T >
void Frustum::initfromMPMatrix ( const ccGLMatrixTpl< T > &  MP)
inlineprotected

◆ pointInFrustum()

Intersection Frustum::pointInFrustum ( const CCVector3f &  p) const
inline

References INSIDE, OUTSIDE, and pl.

◆ sphereInFrustum()

Intersection Frustum::sphereInFrustum ( const CCVector3f &  c,
float  r 
) const
inline

Member Data Documentation

◆ pl

Plane Frustum::pl[6]
protected

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