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

#include <GteCameraRig.h>

Public Member Functions

 CameraRig ()
 
 CameraRig (std::shared_ptr< Camera > const &camera, float translationSpeed, float rotationSpeed)
 
void ClearMotions ()
 
void ComputeWorldAxes ()
 
std::shared_ptr< Camera > const & GetCamera () const
 
float GetRotationSpeed () const
 
float GetTranslationSpeed () const
 
bool Move ()
 
bool PopMotion (int trigger)
 
bool PushMotion (int trigger)
 
void RegisterLookDown (int trigger)
 
void RegisterLookUp (int trigger)
 
void RegisterMoveBackward (int trigger)
 
void RegisterMoveDown (int trigger)
 
void RegisterMoveForward (int trigger)
 
void RegisterMoveLeft (int trigger)
 
void RegisterMoveRight (int trigger)
 
void RegisterMoveUp (int trigger)
 
void RegisterRollClockwise (int trigger)
 
void RegisterRollCounterclockwise (int trigger)
 
void RegisterTurnLeft (int trigger)
 
void RegisterTurnRight (int trigger)
 
void Set (std::shared_ptr< Camera > const &camera, float translationSpeed, float rotationSpeed)
 
void SetDirectLookDown ()
 
void SetDirectLookUp ()
 
void SetDirectMoveBackward ()
 
void SetDirectMoveDown ()
 
void SetDirectMoveForward ()
 
void SetDirectMoveLeft ()
 
void SetDirectMoveRight ()
 
void SetDirectMoveUp ()
 
void SetDirectRollClockwise ()
 
void SetDirectRollCounterclockwise ()
 
void SetDirectTurnLeft ()
 
void SetDirectTurnRight ()
 
void SetRotationSpeed (float rotationSpeed)
 
void SetTranslationSpeed (float translationSpeed)
 
virtual ~CameraRig ()
 

Protected Types

enum  { MAX_ACTIVE_MOTIONS = 12 }
 
typedef void(CameraRig::* MoveFunction) (void)
 

Protected Member Functions

virtual void LookDown ()
 
virtual void LookUp ()
 
virtual void MoveBackward ()
 
virtual void MoveDown ()
 
virtual void MoveForward ()
 
virtual void MoveLeft ()
 
virtual void MoveRight ()
 
virtual void MoveUp ()
 
void Register (int trigger, MoveFunction function)
 
virtual void RollClockwise ()
 
virtual void RollCounterclockwise ()
 
bool SetActive (MoveFunction function)
 
bool SetInactive (MoveFunction function)
 
virtual void TurnLeft ()
 
virtual void TurnRight ()
 

Protected Attributes

std::array< MoveFunction, MAX_ACTIVE_MOTIONSmActiveMotions
 
std::shared_ptr< CameramCamera
 
std::map< int, MoveFunctionmIndirectMap
 
MoveFunction mMotion
 
int mNumActiveMotions
 
float mRotationSpeed
 
float mTranslationSpeed
 
Vector4< float > mWorldAxis [3]
 

Detailed Description

Definition at line 17 of file GteCameraRig.h.

Member Typedef Documentation

typedef void(CameraRig::* gte::CameraRig::MoveFunction) (void)
protected

Definition at line 104 of file GteCameraRig.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
MAX_ACTIVE_MOTIONS 

Definition at line 90 of file GteCameraRig.h.

Constructor & Destructor Documentation

CameraRig::~CameraRig ( )
virtual

Definition at line 13 of file GteCameraRig.cpp.

CameraRig::CameraRig ( )

Definition at line 17 of file GteCameraRig.cpp.

CameraRig::CameraRig ( std::shared_ptr< Camera > const &  camera,
float  translationSpeed,
float  rotationSpeed 
)

Definition at line 22 of file GteCameraRig.cpp.

Member Function Documentation

void CameraRig::ClearMotions ( )

Definition at line 93 of file GteCameraRig.cpp.

void CameraRig::ComputeWorldAxes ( )

Definition at line 36 of file GteCameraRig.cpp.

std::shared_ptr< Camera > const & gte::CameraRig::GetCamera ( ) const
inline

Definition at line 124 of file GteCameraRig.h.

float gte::CameraRig::GetRotationSpeed ( ) const
inline

Definition at line 144 of file GteCameraRig.h.

float gte::CameraRig::GetTranslationSpeed ( ) const
inline

Definition at line 134 of file GteCameraRig.h.

void CameraRig::LookDown ( )
protectedvirtual

Definition at line 220 of file GteCameraRig.cpp.

void CameraRig::LookUp ( )
protectedvirtual

Definition at line 199 of file GteCameraRig.cpp.

bool CameraRig::Move ( )

Definition at line 64 of file GteCameraRig.cpp.

void CameraRig::MoveBackward ( )
protectedvirtual

Definition at line 109 of file GteCameraRig.cpp.

void CameraRig::MoveDown ( )
protectedvirtual

Definition at line 125 of file GteCameraRig.cpp.

void CameraRig::MoveForward ( )
protectedvirtual

Definition at line 101 of file GteCameraRig.cpp.

void CameraRig::MoveLeft ( )
protectedvirtual

Definition at line 141 of file GteCameraRig.cpp.

void CameraRig::MoveRight ( )
protectedvirtual

Definition at line 133 of file GteCameraRig.cpp.

void CameraRig::MoveUp ( )
protectedvirtual

Definition at line 117 of file GteCameraRig.cpp.

bool CameraRig::PopMotion ( int  trigger)

Definition at line 58 of file GteCameraRig.cpp.

bool CameraRig::PushMotion ( int  trigger)

Definition at line 52 of file GteCameraRig.cpp.

void CameraRig::Register ( int  trigger,
MoveFunction  function 
)
protected

Definition at line 283 of file GteCameraRig.cpp.

void gte::CameraRig::RegisterLookDown ( int  trigger)
inline

Definition at line 254 of file GteCameraRig.h.

void gte::CameraRig::RegisterLookUp ( int  trigger)
inline

Definition at line 249 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveBackward ( int  trigger)
inline

Definition at line 214 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveDown ( int  trigger)
inline

Definition at line 224 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveForward ( int  trigger)
inline

Definition at line 209 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveLeft ( int  trigger)
inline

Definition at line 234 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveRight ( int  trigger)
inline

Definition at line 229 of file GteCameraRig.h.

void gte::CameraRig::RegisterMoveUp ( int  trigger)
inline

Definition at line 219 of file GteCameraRig.h.

void gte::CameraRig::RegisterRollClockwise ( int  trigger)
inline

Definition at line 259 of file GteCameraRig.h.

void gte::CameraRig::RegisterRollCounterclockwise ( int  trigger)
inline

Definition at line 264 of file GteCameraRig.h.

void gte::CameraRig::RegisterTurnLeft ( int  trigger)
inline

Definition at line 244 of file GteCameraRig.h.

void gte::CameraRig::RegisterTurnRight ( int  trigger)
inline

Definition at line 239 of file GteCameraRig.h.

void CameraRig::RollClockwise ( )
protectedvirtual

Definition at line 241 of file GteCameraRig.cpp.

void CameraRig::RollCounterclockwise ( )
protectedvirtual

Definition at line 262 of file GteCameraRig.cpp.

void CameraRig::Set ( std::shared_ptr< Camera > const &  camera,
float  translationSpeed,
float  rotationSpeed 
)

Definition at line 27 of file GteCameraRig.cpp.

bool CameraRig::SetActive ( MoveFunction  function)
protected

Definition at line 306 of file GteCameraRig.cpp.

void gte::CameraRig::SetDirectLookDown ( )
inline

Definition at line 194 of file GteCameraRig.h.

void gte::CameraRig::SetDirectLookUp ( )
inline

Definition at line 189 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveBackward ( )
inline

Definition at line 154 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveDown ( )
inline

Definition at line 164 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveForward ( )
inline

Definition at line 149 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveLeft ( )
inline

Definition at line 174 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveRight ( )
inline

Definition at line 169 of file GteCameraRig.h.

void gte::CameraRig::SetDirectMoveUp ( )
inline

Definition at line 159 of file GteCameraRig.h.

void gte::CameraRig::SetDirectRollClockwise ( )
inline

Definition at line 199 of file GteCameraRig.h.

void gte::CameraRig::SetDirectRollCounterclockwise ( )
inline

Definition at line 204 of file GteCameraRig.h.

void gte::CameraRig::SetDirectTurnLeft ( )
inline

Definition at line 184 of file GteCameraRig.h.

void gte::CameraRig::SetDirectTurnRight ( )
inline

Definition at line 179 of file GteCameraRig.h.

bool CameraRig::SetInactive ( MoveFunction  function)
protected

Definition at line 327 of file GteCameraRig.cpp.

void gte::CameraRig::SetRotationSpeed ( float  rotationSpeed)
inline

Definition at line 139 of file GteCameraRig.h.

void gte::CameraRig::SetTranslationSpeed ( float  translationSpeed)
inline

Definition at line 129 of file GteCameraRig.h.

void CameraRig::TurnLeft ( )
protectedvirtual

Definition at line 174 of file GteCameraRig.cpp.

void CameraRig::TurnRight ( )
protectedvirtual

Definition at line 149 of file GteCameraRig.cpp.

Member Data Documentation

std::array<MoveFunction, MAX_ACTIVE_MOTIONS> gte::CameraRig::mActiveMotions
protected

Definition at line 120 of file GteCameraRig.h.

std::shared_ptr<Camera> gte::CameraRig::mCamera
protected

Definition at line 110 of file GteCameraRig.h.

std::map<int, MoveFunction> gte::CameraRig::mIndirectMap
protected

Definition at line 118 of file GteCameraRig.h.

MoveFunction gte::CameraRig::mMotion
protected

Definition at line 117 of file GteCameraRig.h.

int gte::CameraRig::mNumActiveMotions
protected

Definition at line 119 of file GteCameraRig.h.

float gte::CameraRig::mRotationSpeed
protected

Definition at line 111 of file GteCameraRig.h.

float gte::CameraRig::mTranslationSpeed
protected

Definition at line 111 of file GteCameraRig.h.

Vector4<float> gte::CameraRig::mWorldAxis[3]
protected

Definition at line 114 of file GteCameraRig.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