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

#include <GteTrackball.h>

Public Member Functions

void Attach (std::shared_ptr< Spatial > const &object)
 
void Detach (std::shared_ptr< Spatial > const &object)
 
void DetachAll ()
 
bool GetActive () const
 
std::shared_ptr< Camera > const & GetCamera () const
 
Matrix4x4< float > const & GetOrientation () const
 
std::shared_ptr< Node > const & GetRoot () const
 
int GetXSize () const
 
int GetYSize () const
 
void Set (int xSize, int ySize, std::shared_ptr< Camera > const &camera)
 
void SetActive (bool active)
 
void SetFinalPoint (int x, int y)
 
void SetInitialPoint (int x, int y)
 
 Trackball ()
 
 Trackball (int xSize, int ySize, std::shared_ptr< Camera > const &camera)
 
void Update (double applicationTime=0.0)
 

Protected Member Functions

void UpdateOrientation ()
 

Protected Attributes

bool mActive
 
std::shared_ptr< CameramCamera
 
Matrix4x4< float > mInitialOrientation
 
float mMultiplier
 
std::shared_ptr< NodemRoot
 
bool mValidTrackball
 
float mX0
 
float mX1
 
int mXSize
 
float mY0
 
float mY1
 
int mYSize
 

Detailed Description

Definition at line 16 of file GteTrackball.h.

Constructor & Destructor Documentation

Trackball::Trackball ( )

Definition at line 14 of file GteTrackball.cpp.

Trackball::Trackball ( int  xSize,
int  ySize,
std::shared_ptr< Camera > const &  camera 
)

Definition at line 30 of file GteTrackball.cpp.

Member Function Documentation

void Trackball::Attach ( std::shared_ptr< Spatial > const &  object)

Definition at line 70 of file GteTrackball.cpp.

void Trackball::Detach ( std::shared_ptr< Spatial > const &  object)

Definition at line 78 of file GteTrackball.cpp.

void Trackball::DetachAll ( )

Definition at line 86 of file GteTrackball.cpp.

bool gte::Trackball::GetActive ( ) const
inline

Definition at line 112 of file GteTrackball.h.

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

Definition at line 87 of file GteTrackball.h.

Matrix4x4< float > const & gte::Trackball::GetOrientation ( ) const
inline

Definition at line 97 of file GteTrackball.h.

std::shared_ptr< Node > const & gte::Trackball::GetRoot ( ) const
inline

Definition at line 92 of file GteTrackball.h.

int gte::Trackball::GetXSize ( ) const
inline

Definition at line 77 of file GteTrackball.h.

int gte::Trackball::GetYSize ( ) const
inline

Definition at line 82 of file GteTrackball.h.

void Trackball::Set ( int  xSize,
int  ySize,
std::shared_ptr< Camera > const &  camera 
)

Definition at line 48 of file GteTrackball.cpp.

void gte::Trackball::SetActive ( bool  active)
inline

Definition at line 107 of file GteTrackball.h.

void Trackball::SetFinalPoint ( int  x,
int  y 
)

Definition at line 101 of file GteTrackball.cpp.

void Trackball::SetInitialPoint ( int  x,
int  y 
)

Definition at line 91 of file GteTrackball.cpp.

void gte::Trackball::Update ( double  applicationTime = 0.0)
inline

Definition at line 102 of file GteTrackball.h.

void Trackball::UpdateOrientation ( )
protected

Definition at line 114 of file GteTrackball.cpp.

Member Data Documentation

bool gte::Trackball::mActive
protected

Definition at line 73 of file GteTrackball.h.

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

Definition at line 69 of file GteTrackball.h.

Matrix4x4<float> gte::Trackball::mInitialOrientation
protected

Definition at line 71 of file GteTrackball.h.

float gte::Trackball::mMultiplier
protected

Definition at line 72 of file GteTrackball.h.

std::shared_ptr<Node> gte::Trackball::mRoot
protected

Definition at line 70 of file GteTrackball.h.

bool gte::Trackball::mValidTrackball
protected

Definition at line 73 of file GteTrackball.h.

float gte::Trackball::mX0
protected

Definition at line 72 of file GteTrackball.h.

float gte::Trackball::mX1
protected

Definition at line 72 of file GteTrackball.h.

int gte::Trackball::mXSize
protected

Definition at line 68 of file GteTrackball.h.

float gte::Trackball::mY0
protected

Definition at line 72 of file GteTrackball.h.

float gte::Trackball::mY1
protected

Definition at line 72 of file GteTrackball.h.

int gte::Trackball::mYSize
protected

Definition at line 68 of file GteTrackball.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