TR-mbed 1.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Trackball Class Reference

#include <trackball.h>

Public Types

enum  Mode { Around , Local }
 

Public Member Functions

 Trackball ()
 
void start (Mode m=Around)
 
void setCamera (Camera *pCam)
 
void track (const Eigen::Vector2i &newPoint2D)
 

Protected Member Functions

bool mapToSphere (const Eigen::Vector2i &p2, Eigen::Vector3f &v3)
 

Protected Attributes

CamerampCamera
 
Eigen::Vector3f mLastPoint3D
 
Mode mMode
 
bool mLastPointOk
 

Member Enumeration Documentation

◆ Mode

Enumerator
Around 
Local 

Constructor & Destructor Documentation

◆ Trackball()

Trackball::Trackball ( )
inline

Member Function Documentation

◆ mapToSphere()

bool Trackball::mapToSphere ( const Eigen::Vector2i &  p2,
Eigen::Vector3f &  v3 
)
protected

◆ setCamera()

void Trackball::setCamera ( Camera pCam)
inline

◆ start()

void Trackball::start ( Mode  m = Around)
inline

◆ track()

void Trackball::track ( const Eigen::Vector2i &  newPoint2D)

Member Data Documentation

◆ mLastPoint3D

Eigen::Vector3f Trackball::mLastPoint3D
protected

◆ mLastPointOk

bool Trackball::mLastPointOk
protected

◆ mMode

Mode Trackball::mMode
protected

◆ mpCamera

Camera* Trackball::mpCamera
protected

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