gramods
Classes | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
gramods::gmGraphics::TrackedViewpoint Class Reference

The TrackedViewpoint is a Viewpoint that uses a SinglePoseTracker to updates its pose. More...

#include <TrackedViewpoint.hh>

Inheritance diagram for gramods::gmGraphics::TrackedViewpoint:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::TrackedViewpoint:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

Eigen::Vector3f getPosition (Eye eye=Eye::MONO)
 Returns the position of the Viewpoint. More...
 
Eigen::Quaternionf getOrientation (Eye eye=Eye::MONO)
 Returns the orientation of the TrackedViewpoint. More...
 
void setSinglePoseTracker (std::shared_ptr< gmTrack::SinglePoseTracker > t)
 Sets the tracker to read pose data from. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
- Public Member Functions inherited from gramods::gmGraphics::Viewpoint
virtual void setPosition (Eigen::Vector3f p)
 Explicitly sets the position of the Viewpoint. More...
 
void setEyeSeparation (float e)
 Sets the distance between the eyes for stereoscopic (or multiscopic) rendering, in internal units, typically meters. More...
 
virtual void setOrientation (Eigen::Quaternionf q)
 Explicitly sets the orientation of the Viewpoint. More...
 
virtual void setUpDirection (Eigen::Vector3f up)
 Set the up direction to be used in a later call to setLookAt. More...
 
virtual void setLookAt (Eigen::Vector3f p)
 Sets a point that the viewpoint should be rotated towards. More...
 
virtual void unsetLookAt ()
 Unsets the look-at point so that the viewpoint orientation is no longer automatically rotated. More...
 
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 
- Static Public Attributes inherited from gramods::gmGraphics::Viewpoint
static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Protected Attributes

std::unique_ptr< Impl_impl
 
- Protected Attributes inherited from gramods::gmGraphics::Viewpoint
Eigen::Vector3f position = Eigen::Vector3f::Zero()
 
Eigen::Quaternionf orientation = Eigen::Quaternionf::Identity()
 
Eigen::Vector3f up_direction = Eigen::Vector3f(0, 1, 0)
 
std::optional< Eigen::Vector3f > look_at
 
float eye_separation = 0.06f
 

Detailed Description

The TrackedViewpoint is a Viewpoint that uses a SinglePoseTracker to updates its pose.

Member Function Documentation

◆ getOrientation()

Eigen::Quaternionf gramods::gmGraphics::TrackedViewpoint::getOrientation ( Eye  eye = Eye::MONO)
virtual

Returns the orientation of the TrackedViewpoint.

Reimplemented from gramods::gmGraphics::Viewpoint.

◆ getPosition()

Eigen::Vector3f gramods::gmGraphics::TrackedViewpoint::getPosition ( Eye  eye = Eye::MONO)
virtual

Returns the position of the Viewpoint.

Reimplemented from gramods::gmGraphics::Viewpoint.

◆ setSinglePoseTracker()

void gramods::gmGraphics::TrackedViewpoint::setSinglePoseTracker ( std::shared_ptr< gmTrack::SinglePoseTracker t)

Sets the tracker to read pose data from.

◆ traverse()

void gramods::gmGraphics::TrackedViewpoint::traverse ( Visitor visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmCore::Object.


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