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

◆ Mode

Enumerator
Around 
Local 

Definition at line 21 of file trackball.h.

Constructor & Destructor Documentation

◆ Trackball()

Trackball::Trackball ( )
inline

Definition at line 23 of file trackball.h.

Member Function Documentation

◆ mapToSphere()

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

Definition at line 40 of file trackball.cpp.

◆ setCamera()

void Trackball::setCamera ( Camera pCam)
inline

Definition at line 27 of file trackball.h.

◆ start()

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

Definition at line 25 of file trackball.h.

◆ track()

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

Definition at line 15 of file trackball.cpp.

Member Data Documentation

◆ mLastPoint3D

Eigen::Vector3f Trackball::mLastPoint3D
protected

Definition at line 36 of file trackball.h.

◆ mLastPointOk

bool Trackball::mLastPointOk
protected

Definition at line 38 of file trackball.h.

◆ mMode

Mode Trackball::mMode
protected

Definition at line 37 of file trackball.h.

◆ mpCamera

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 Tue Jul 4 2023 02:41:08