Public Member Functions | Private Member Functions | Private Attributes | List of all members
gte::Camera Class Reference

#include <GteCamera.h>

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

Public Member Functions

 Camera (bool isPerspective, bool isDepthRangeZeroOne)
 
bool GetPickLine (int viewX, int viewY, int viewW, int viewH, int x, int y, Vector4< float > &origin, Vector4< float > &direction) const
 
Matrix4x4< float > const & GetPostProjectionMatrix () const
 
Matrix4x4< float > const & GetPreViewMatrix () const
 
bool PostProjectionIsIdentity () const
 
bool PreViewIsIdentity () const
 
void SetParallaxProjectionMatrix (Vector4< float > const &p00, Vector4< float > const &p10, Vector4< float > const &p11, Vector4< float > const &p01, float nearExtrude, float farExtrude)
 
void SetPostProjectionMatrix (Matrix4x4< float > const &postProjMatrix)
 
void SetPreViewMatrix (Matrix4x4< float > const &preViewMatrix)
 
- Public Member Functions inherited from gte::ViewVolume
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 ()
 

Private Member Functions

virtual void UpdatePVMatrix ()
 

Private Attributes

bool mPostProjectionIsIdentity
 
Matrix4x4< float > mPostProjectionMatrix
 
bool mPreViewIsIdentity
 
Matrix4x4< float > mPreViewMatrix
 

Additional Inherited Members

- Public Types inherited from gte::ViewVolume
enum  {
  VF_DMIN = 0, VF_DMAX = 1, VF_UMIN = 2, VF_UMAX = 3,
  VF_RMIN = 4, VF_RMAX = 5, VF_QUANTITY = 6
}
 
- Protected Member Functions inherited from gte::ViewVolume
virtual void OnFrameChange ()
 
virtual void OnFrustumChange ()
 
- Protected Attributes inherited from gte::ViewVolume
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 15 of file GteCamera.h.

Constructor & Destructor Documentation

Camera::Camera ( bool  isPerspective,
bool  isDepthRangeZeroOne 
)

Definition at line 12 of file GteCamera.cpp.

Member Function Documentation

bool Camera::GetPickLine ( int  viewX,
int  viewY,
int  viewW,
int  viewH,
int  x,
int  y,
Vector4< float > &  origin,
Vector4< float > &  direction 
) const

Definition at line 139 of file GteCamera.cpp.

Matrix4x4< float > const & gte::Camera::GetPostProjectionMatrix ( ) const
inline

Definition at line 87 of file GteCamera.h.

Matrix4x4< float > const & gte::Camera::GetPreViewMatrix ( ) const
inline

Definition at line 77 of file GteCamera.h.

bool gte::Camera::PostProjectionIsIdentity ( ) const
inline

Definition at line 92 of file GteCamera.h.

bool gte::Camera::PreViewIsIdentity ( ) const
inline

Definition at line 82 of file GteCamera.h.

void Camera::SetParallaxProjectionMatrix ( Vector4< float > const &  p00,
Vector4< float > const &  p10,
Vector4< float > const &  p11,
Vector4< float > const &  p01,
float  nearExtrude,
float  farExtrude 
)

Definition at line 22 of file GteCamera.cpp.

void Camera::SetPostProjectionMatrix ( Matrix4x4< float > const &  postProjMatrix)

Definition at line 132 of file GteCamera.cpp.

void Camera::SetPreViewMatrix ( Matrix4x4< float > const &  preViewMatrix)

Definition at line 125 of file GteCamera.cpp.

void Camera::UpdatePVMatrix ( )
privatevirtual

Reimplemented from gte::ViewVolume.

Definition at line 172 of file GteCamera.cpp.

Member Data Documentation

bool gte::Camera::mPostProjectionIsIdentity
private

Definition at line 73 of file GteCamera.h.

Matrix4x4<float> gte::Camera::mPostProjectionMatrix
private

Definition at line 66 of file GteCamera.h.

bool gte::Camera::mPreViewIsIdentity
private

Definition at line 69 of file GteCamera.h.

Matrix4x4<float> gte::Camera::mPreViewMatrix
private

Definition at line 63 of file GteCamera.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:05