CCamera Class Reference

#include <CCamera.h>

Inheritance diagram for CCamera:

IManagedObject

List of all members.

Public Member Functions

 CCamera ()
 ~CCamera ()
void SetPerspective (const float &fFov, const float &fAspectRatio, const float &fNearZ, const float &fFarZ)
void SetTransformOrder (byte order)
void SetFOV (float fov)
void SetAspect (const float &fAspectRatio)
void SetPos (const CVector3f &vPos)
void SetRot (const CVector3f &vRot)
float GetFOV ()
const CMatrix44GetTransformation ()
CVector3f GetViewVector ()
const CFrustumGetFrustum ()
bool CameraChanged () const
void UpdateView ()
void UpdateTransForm ()
void ForceUpdateView ()
void ForceUpdateTransform ()
void Refresh ()
void Log (word wTargetLog)

Private Member Functions

void Clear ()
void Update ()
 CCamera (const CCamera &)
CCameraoperator= (const CCamera &)

Private Attributes

CMatrix44 m_Projection
CMatrix44 m_View
CMatrix44 m_Pos
CMatrix44 m_Rot
CVector3f m_vPos
CVector3f m_vRot
float m_fov
float m_nearPlane
float m_farPlane
float m_aspect
CFrustum m_Frustum
byte m_TransformOrder
bool m_bTransformValid
bool m_bPerspectiveValid


Detailed Description

Definition at line 35 of file CCamera.h.


Constructor & Destructor Documentation

CCamera::CCamera (  )  [inline]

Definition at line 41 of file CCamera.h.

References Clear().

CCamera::~CCamera (  )  [inline]

Definition at line 42 of file CCamera.h.

CCamera::CCamera ( const CCamera  )  [private]


Member Function Documentation

bool CCamera::CameraChanged (  )  const [inline]

Definition at line 59 of file CCamera.h.

References m_bTransformValid.

void CCamera::Clear (  )  [private]

void CCamera::ForceUpdateTransform (  )  [inline]

Definition at line 67 of file CCamera.h.

References m_bTransformValid, and UpdateTransForm().

void CCamera::ForceUpdateView (  )  [inline]

Definition at line 66 of file CCamera.h.

References m_bPerspectiveValid, and UpdateView().

float CCamera::GetFOV (  )  [inline]

Definition at line 52 of file CCamera.h.

References m_fov.

const CFrustum & CCamera::GetFrustum (  ) 

Definition at line 107 of file CCamera.cpp.

References CFrustum::CalculateFrustum(), m_Frustum, m_Projection, and m_View.

const CMatrix44 & CCamera::GetTransformation (  ) 

Definition at line 115 of file CCamera.cpp.

References m_bTransformValid, m_View, and Update().

CVector3f CCamera::GetViewVector (  )  [inline]

Definition at line 54 of file CCamera.h.

void CCamera::Log ( word  wTargetLog  ) 

Definition at line 66 of file CCamera.cpp.

References m_bTransformValid, and Update().

CCamera& CCamera::operator= ( const CCamera  )  [private]

void CCamera::Refresh (  ) 

Definition at line 74 of file CCamera.cpp.

References m_aspect, m_bPerspectiveValid, m_farPlane, m_fov, m_nearPlane, m_View, and Update().

void CCamera::SetAspect ( const float &  fAspectRatio  ) 

Definition at line 45 of file CCamera.cpp.

References m_aspect, and m_bPerspectiveValid.

void CCamera::SetFOV ( float  fov  ) 

Definition at line 38 of file CCamera.cpp.

References m_bPerspectiveValid, and m_fov.

void CCamera::SetPerspective ( const float &  fFov,
const float &  fAspectRatio,
const float &  fNearZ,
const float &  fFarZ 
)

Definition at line 29 of file CCamera.cpp.

References m_aspect, m_bPerspectiveValid, m_farPlane, m_fov, and m_nearPlane.

Referenced by Clear().

void CCamera::SetPos ( const CVector3f vPos  ) 

Definition at line 54 of file CCamera.cpp.

References m_bTransformValid, and m_vPos.

void CCamera::SetRot ( const CVector3f vRot  ) 

Definition at line 60 of file CCamera.cpp.

References m_bTransformValid, and m_vRot.

void CCamera::SetTransformOrder ( byte  order  ) 

Definition at line 50 of file CCamera.cpp.

References m_TransformOrder.

void CCamera::Update (  )  [private]

void CCamera::UpdateTransForm (  ) 

Definition at line 97 of file CCamera.cpp.

References m_bTransformValid, m_View, and Update().

Referenced by ForceUpdateTransform().

void CCamera::UpdateView (  ) 

Definition at line 87 of file CCamera.cpp.

References m_aspect, m_bPerspectiveValid, m_farPlane, m_fov, and m_nearPlane.

Referenced by ForceUpdateView().


Member Data Documentation

float CCamera::m_aspect [private]

Definition at line 100 of file CCamera.h.

Referenced by Refresh(), SetAspect(), SetPerspective(), and UpdateView().

Definition at line 106 of file CCamera.h.

Referenced by Clear(), ForceUpdateView(), Refresh(), SetAspect(), SetFOV(), SetPerspective(), and UpdateView().

float CCamera::m_farPlane [private]

Definition at line 100 of file CCamera.h.

Referenced by Clear(), Refresh(), SetPerspective(), and UpdateView().

float CCamera::m_fov [private]

Definition at line 100 of file CCamera.h.

Referenced by Clear(), GetFOV(), Refresh(), SetFOV(), SetPerspective(), and UpdateView().

Definition at line 101 of file CCamera.h.

Referenced by GetFrustum().

float CCamera::m_nearPlane [private]

Definition at line 100 of file CCamera.h.

Referenced by Clear(), Refresh(), SetPerspective(), and UpdateView().

Definition at line 97 of file CCamera.h.

Referenced by Update().

Definition at line 95 of file CCamera.h.

Referenced by GetFrustum().

Definition at line 98 of file CCamera.h.

Referenced by Update().

Definition at line 102 of file CCamera.h.

Referenced by SetTransformOrder(), and Update().

Definition at line 96 of file CCamera.h.

Referenced by GetFrustum(), GetTransformation(), Refresh(), Update(), and UpdateTransForm().

Definition at line 99 of file CCamera.h.

Referenced by Clear(), SetPos(), and Update().

Definition at line 99 of file CCamera.h.

Referenced by Clear(), SetRot(), and Update().


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

Generated on Wed Dec 10 03:22:18 2008 for VStudio by  doxygen 1.5.7.1