MercuryCamera Class Reference

#include <MercuryCamera.h>

Inheritance diagram for MercuryCamera:

Inheritance graph
Collaboration diagram for MercuryCamera:

Collaboration graph
List of all members.

Public Member Functions

 MercuryCamera ()
void SetUp (const MercuryPoint &up)
void SetTarget (const MercuryPoint &target)
void SetEye (const MercuryPoint &eye)
const MercuryPoint GetDirection () const
const MercuryPointGetEye () const
const MercuryPointGetUp () const
const MercuryPointGetTarget () const
MercuryPoint GetRight () const
virtual void Prerender ()
 Add another object to this object's children.
virtual void Render ()
 CLASS_RTTI (MercuryCamera, MercuryObject)

Private Attributes

void * m_lai
MercuryPoint m_target
MercuryPoint m_up
MercuryPoint m_pyr
bool m_recalcAxis

Detailed Description

Definition at line 7 of file MercuryCamera.h.

Constructor & Destructor Documentation

MercuryCamera::MercuryCamera (  ) 

Definition at line 4 of file MercuryCamera.cpp.

Member Function Documentation

void MercuryCamera::SetUp ( const MercuryPoint up  )  [inline]

Definition at line 12 of file MercuryCamera.h.

void MercuryCamera::SetTarget ( const MercuryPoint target  )  [inline]

Definition at line 13 of file MercuryCamera.h.

void MercuryCamera::SetEye ( const MercuryPoint eye  )  [inline]

Definition at line 14 of file MercuryCamera.h.

const MercuryPoint MercuryCamera::GetDirection (  )  const [inline]

Definition at line 16 of file MercuryCamera.h.

const MercuryPoint& MercuryCamera::GetEye (  )  const [inline]

Definition at line 17 of file MercuryCamera.h.

const MercuryPoint& MercuryCamera::GetUp (  )  const [inline]

Definition at line 18 of file MercuryCamera.h.

const MercuryPoint& MercuryCamera::GetTarget (  )  const [inline]

Definition at line 19 of file MercuryCamera.h.

MercuryPoint MercuryCamera::GetRight (  )  const

Definition at line 140 of file MercuryCamera.cpp.

void MercuryCamera::Prerender (  )  [virtual]

Add another object to this object's children.

MercuryObject takes on an object and a ParentDelete. if bParentDelete == true, then the parent you are adding object to will delete object when the parent is deleted.

Reimplemented from MercuryObject.

Definition at line 19 of file MercuryCamera.cpp.

void MercuryCamera::Render (  )  [virtual]

If you plan to use roll, (flight sim) than toggle Recalculation of axises. This avoids problem with passing the "up" direction. However, one side affect is that pitching and yawing will indice a roll, just like in an air plane.

Reimplemented from MercuryObject.

Definition at line 29 of file MercuryCamera.cpp.

MercuryCamera::CLASS_RTTI ( MercuryCamera  ,

Member Data Documentation

void* MercuryCamera::m_lai [private]

Definition at line 42 of file MercuryCamera.h.

MercuryPoint MercuryCamera::m_target [private]

Definition at line 44 of file MercuryCamera.h.

MercuryPoint MercuryCamera::m_up [private]

Definition at line 47 of file MercuryCamera.h.

MercuryPoint MercuryCamera::m_pyr [private]

Definition at line 50 of file MercuryCamera.h.

bool MercuryCamera::m_recalcAxis [private]

Definition at line 51 of file MercuryCamera.h.

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