Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::ViewVolume Class Reference

#include <GteViewVolume.h>

Inheritance diagram for gte::ViewVolume:
Inheritance graph
[legend]

Public Types

enum  {
  VF_DMIN = 0, VF_DMAX = 1, VF_UMIN = 2, VF_UMAX = 3,
  VF_RMIN = 4, VF_RMAX = 5, VF_QUANTITY = 6
}
 

Public Member Functions

void GetAxes (Vector4< float > &dVector, Vector4< float > &uVector, Vector4< float > &rVector) const
 
float GetDMax () const
 
float GetDMin () const
 
Vector4< float > const & GetDVector () const
 
void GetFrame (Vector4< float > &position, Vector4< float > &dVector, Vector4< float > &uVector, Vector4< float > &rVector) const
 
void GetFrustum (float &dMin, float &dMax, float &uMin, float &uMax, float &rMin, float &rMax) const
 
float const * GetFrustum () const
 
bool GetFrustum (float &upFovDegrees, float &aspectRatio, float &dMin, float &dMax) const
 
const Matrix4x4< float > & GetInverseViewMatrix () const
 
Vector4< float > const & GetPosition () const
 
Matrix4x4< float > const & GetProjectionMatrix () const
 
Matrix4x4< float > const & GetProjectionViewMatrix () const
 
float GetRMax () const
 
float GetRMin () const
 
Vector4< float > const & GetRVector () const
 
float GetUMax () const
 
float GetUMin () const
 
Vector4< float > const & GetUVector () const
 
const Matrix4x4< float > & GetViewMatrix () const
 
bool IsDepthRangeZeroOne () const
 
bool IsPerspective () const
 
void SetAxes (Vector4< float > const &dVector, Vector4< float > const &uVector, Vector4< float > const &rVector)
 
void SetFrame (Vector4< float > const &position, Vector4< float > const &dVector, Vector4< float > const &uVector, Vector4< float > const &rVector)
 
void SetFrustum (float dMin, float dMax, float uMin, float uMax, float rMin, float rMax)
 
void SetFrustum (float const *frustum)
 
void SetFrustum (float upFovDegrees, float aspectRatio, float dMin, float dMax)
 
void SetPosition (Vector4< float > const &position)
 
void SetProjectionMatrix (Matrix4x4< float > const &projMatrix)
 
 ViewVolume (bool isPerspective, bool isDepthRangeZeroToOne)
 
virtual ~ViewVolume ()
 

Protected Member Functions

virtual void OnFrameChange ()
 
virtual void OnFrustumChange ()
 
virtual void UpdatePVMatrix ()
 

Protected Attributes

Vector4< float > mDVector
 
float mFrustum [VF_QUANTITY]
 
Matrix4x4< float > mInverseViewMatrix
 
bool mIsDepthRangeZeroOne
 
bool mIsPerspective
 
Vector4< float > mPosition
 
Matrix4x4< float > mProjectionMatrix
 
Matrix4x4< float > mProjectionViewMatrix
 
Vector4< float > mRVector
 
Vector4< float > mUVector
 
bool mValidateCoordinateFrame
 
Matrix4x4< float > mViewMatrix
 

Detailed Description

Definition at line 19 of file GteViewVolume.h.

Member Enumeration Documentation

anonymous enum
Enumerator
VF_DMIN 
VF_DMAX 
VF_UMIN 
VF_UMAX 
VF_RMIN 
VF_RMAX 
VF_QUANTITY 

Definition at line 101 of file GteViewVolume.h.

Constructor & Destructor Documentation

ViewVolume::~ViewVolume ( )
virtual

Definition at line 13 of file GteViewVolume.cpp.

ViewVolume::ViewVolume ( bool  isPerspective,
bool  isDepthRangeZeroToOne 
)

Definition at line 17 of file GteViewVolume.cpp.

Member Function Documentation

void ViewVolume::GetAxes ( Vector4< float > &  dVector,
Vector4< float > &  uVector,
Vector4< float > &  rVector 
) const

Definition at line 100 of file GteViewVolume.cpp.

float gte::ViewVolume::GetDMax ( ) const
inline

Definition at line 307 of file GteViewVolume.h.

float gte::ViewVolume::GetDMin ( ) const
inline

Definition at line 302 of file GteViewVolume.h.

Vector4< float > const & gte::ViewVolume::GetDVector ( ) const
inline

Definition at line 262 of file GteViewVolume.h.

void ViewVolume::GetFrame ( Vector4< float > &  position,
Vector4< float > &  dVector,
Vector4< float > &  uVector,
Vector4< float > &  rVector 
) const

Definition at line 108 of file GteViewVolume.cpp.

void ViewVolume::GetFrustum ( float &  dMin,
float &  dMax,
float &  uMin,
float &  uMax,
float &  rMin,
float &  rMax 
) const

Definition at line 151 of file GteViewVolume.cpp.

float const * gte::ViewVolume::GetFrustum ( ) const
inline

Definition at line 297 of file GteViewVolume.h.

bool ViewVolume::GetFrustum ( float &  upFovDegrees,
float &  aspectRatio,
float &  dMin,
float &  dMax 
) const

Definition at line 161 of file GteViewVolume.cpp.

Matrix4x4< float > const & gte::ViewVolume::GetInverseViewMatrix ( ) const
inline

Definition at line 282 of file GteViewVolume.h.

Vector4< float > const & gte::ViewVolume::GetPosition ( ) const
inline

Definition at line 257 of file GteViewVolume.h.

Matrix4x4< float > const & gte::ViewVolume::GetProjectionMatrix ( ) const
inline

Definition at line 332 of file GteViewVolume.h.

Matrix4x4< float > const & gte::ViewVolume::GetProjectionViewMatrix ( ) const
inline

Definition at line 343 of file GteViewVolume.h.

float gte::ViewVolume::GetRMax ( ) const
inline

Definition at line 327 of file GteViewVolume.h.

float gte::ViewVolume::GetRMin ( ) const
inline

Definition at line 322 of file GteViewVolume.h.

Vector4< float > const & gte::ViewVolume::GetRVector ( ) const
inline

Definition at line 272 of file GteViewVolume.h.

float gte::ViewVolume::GetUMax ( ) const
inline

Definition at line 317 of file GteViewVolume.h.

float gte::ViewVolume::GetUMin ( ) const
inline

Definition at line 312 of file GteViewVolume.h.

Vector4< float > const & gte::ViewVolume::GetUVector ( ) const
inline

Definition at line 267 of file GteViewVolume.h.

Matrix4x4< float > const & gte::ViewVolume::GetViewMatrix ( ) const
inline

Definition at line 277 of file GteViewVolume.h.

bool gte::ViewVolume::IsDepthRangeZeroOne ( ) const
inline

Definition at line 292 of file GteViewVolume.h.

bool gte::ViewVolume::IsPerspective ( ) const
inline

Definition at line 287 of file GteViewVolume.h.

void ViewVolume::OnFrameChange ( )
protectedvirtual

Definition at line 176 of file GteViewVolume.cpp.

void ViewVolume::OnFrustumChange ( )
protectedvirtual

Definition at line 252 of file GteViewVolume.cpp.

void ViewVolume::SetAxes ( Vector4< float > const &  dVector,
Vector4< float > const &  uVector,
Vector4< float > const &  rVector 
)

Definition at line 48 of file GteViewVolume.cpp.

void ViewVolume::SetFrame ( Vector4< float > const &  position,
Vector4< float > const &  dVector,
Vector4< float > const &  uVector,
Vector4< float > const &  rVector 
)

Definition at line 93 of file GteViewVolume.cpp.

void ViewVolume::SetFrustum ( float  dMin,
float  dMax,
float  uMin,
float  uMax,
float  rMin,
float  rMax 
)

Definition at line 117 of file GteViewVolume.cpp.

void ViewVolume::SetFrustum ( float const *  frustum)

Definition at line 128 of file GteViewVolume.cpp.

void ViewVolume::SetFrustum ( float  upFovDegrees,
float  aspectRatio,
float  dMin,
float  dMax 
)

Definition at line 139 of file GteViewVolume.cpp.

void ViewVolume::SetPosition ( Vector4< float > const &  position)

Definition at line 42 of file GteViewVolume.cpp.

void gte::ViewVolume::SetProjectionMatrix ( Matrix4x4< float > const &  projMatrix)
inline

Definition at line 337 of file GteViewVolume.h.

void ViewVolume::UpdatePVMatrix ( )
protectedvirtual

Reimplemented in gte::Camera.

Definition at line 434 of file GteViewVolume.cpp.

Member Data Documentation

Vector4<float> gte::ViewVolume::mDVector
protected

Definition at line 225 of file GteViewVolume.h.

float gte::ViewVolume::mFrustum[VF_QUANTITY]
protected

Definition at line 241 of file GteViewVolume.h.

Matrix4x4<float> gte::ViewVolume::mInverseViewMatrix
protected

Definition at line 231 of file GteViewVolume.h.

bool gte::ViewVolume::mIsDepthRangeZeroOne
protected

Definition at line 248 of file GteViewVolume.h.

bool gte::ViewVolume::mIsPerspective
protected

Definition at line 245 of file GteViewVolume.h.

Vector4<float> gte::ViewVolume::mPosition
protected

Definition at line 225 of file GteViewVolume.h.

Matrix4x4<float> gte::ViewVolume::mProjectionMatrix
protected

Definition at line 234 of file GteViewVolume.h.

Matrix4x4<float> gte::ViewVolume::mProjectionViewMatrix
protected

Definition at line 237 of file GteViewVolume.h.

Vector4<float> gte::ViewVolume::mRVector
protected

Definition at line 225 of file GteViewVolume.h.

Vector4<float> gte::ViewVolume::mUVector
protected

Definition at line 225 of file GteViewVolume.h.

bool gte::ViewVolume::mValidateCoordinateFrame
protected

Definition at line 253 of file GteViewVolume.h.

Matrix4x4<float> gte::ViewVolume::mViewMatrix
protected

Definition at line 230 of file GteViewVolume.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:07