gramods
|
The viewpoint represents a point in space from which the view is to be rendered, and an orientation. More...
#include <Viewpoint.hh>
Public Member Functions | |
virtual Eigen::Vector3f | getPosition (Eye eye=Eye::MONO) |
Returns the position of the viewpoint. More... | |
virtual Eigen::Quaternionf | getOrientation (Eye eye=Eye::MONO) |
Returns the orientation of the viewpoint. More... | |
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... | |
![]() | |
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... | |
virtual void | traverse (Visitor *visitor) |
Calls the child Object's accept method, if such exist. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
The viewpoint represents a point in space from which the view is to be rendered, and an orientation.
The orientation may be used for view orientation or for eye separation. The view may use this Viewpoint to create Camera fitting for rendering.
Sub classes may implement dynamically updated Viewpoints, based on animation or tracking data.
|
inlineoverridevirtual |
Returns the default key, in Configuration, for the Object.
Reimplemented from gramods::gmCore::Object.
Returns the orientation of the viewpoint.
Observe that a view may ignore the orientation value if this does not make any difference for its appearance.
[in] | eye | The eye for which to fetch orientation. Default is Eye::MONO. |
Reimplemented in gramods::gmGraphics::TrackedViewpoint.
Returns the position of the viewpoint.
[in] | eye | The eye for which to fetch position. Default is Eye::MONO. |
Reimplemented in gramods::gmGraphics::TrackedViewpoint.
|
inline |
Sets the distance between the eyes for stereoscopic (or multiscopic) rendering, in internal units, typically meters.
Default is 0.06 m.
XML-attribute: eyeSeparation
|
inlinevirtual |
Sets a point that the viewpoint should be rotated towards.
Observe that this affects only the viewpoint orientation - camera orientation will not automatically toe-in to this point.
XML-attribute: lookAt
|
virtual |
Explicitly sets the orientation of the Viewpoint.
This may be ignored or instantaneously overwritten by dynamic updates of the position value.
XML-attribute: orientation
|
virtual |
|
virtual |
Set the up direction to be used in a later call to setLookAt.
This does nothing if setLookAt is not used.
XML-attribute: upDirection
|
inlinevirtual |
Unsets the look-at point so that the viewpoint orientation is no longer automatically rotated.