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

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

Protected Member Functions

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

Protected Attributes

Eigen::Vector3f mLastPoint3D
 
bool mLastPointOk
 
Mode mMode
 
CamerampCamera
 

Detailed Description

Definition at line 17 of file trackball.h.

Member Enumeration Documentation

Enumerator
Around 
Local 

Definition at line 21 of file trackball.h.

Constructor & Destructor Documentation

Trackball::Trackball ( )
inline

Definition at line 23 of file trackball.h.

Member Function Documentation

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

Definition at line 40 of file trackball.cpp.

void Trackball::setCamera ( Camera pCam)
inline

Definition at line 27 of file trackball.h.

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

Definition at line 25 of file trackball.h.

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

Definition at line 15 of file trackball.cpp.

Member Data Documentation

Eigen::Vector3f Trackball::mLastPoint3D
protected

Definition at line 36 of file trackball.h.

bool Trackball::mLastPointOk
protected

Definition at line 38 of file trackball.h.

Mode Trackball::mMode
protected

Definition at line 37 of file trackball.h.

Camera* Trackball::mpCamera
protected

Definition at line 35 of file trackball.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:54