gramods
|
This view provides skewed frustum projection of the renderers, on a planar projection surface. More...
#include <SpatialPlanarView.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | setTopLeftCorner (Eigen::Vector3f tlc) |
Position of the top left corner of the view. More... | |
void | setBottomRightCorner (Eigen::Vector3f brc) |
Position of bottom right corner of the view. More... | |
void | setUpDirection (Eigen::Vector3f up) |
Set up direction of the view. More... | |
void | setPosition (Eigen::Vector3f p) |
Set the position of a virtual frustum. More... | |
void | setClipAngles (gmCore::angle4 a) |
Set the clip angles of a virtual frustum, as left, right, bottom, top. More... | |
void | setOrientation (Eigen::Quaternionf q) |
Set the orientation of a virtual frustum. More... | |
void | setDistance (float d) |
Set the orientation of a virtual frustum. More... | |
![]() | |
void | renderFullPipeline (ViewSettings settings) override final |
Dispatches specified renders, both method argument and class members. More... | |
void | traverse (Visitor *visitor) override |
Propagates the specified visitor. More... | |
void | setMultiscopicMultiplexer (std::shared_ptr< MultiscopicMultiplexer > sm) |
Sets the multiscopic multiplexing to use for rendering. More... | |
![]() | |
void | addNode (std::shared_ptr< Node > node) |
Adds a scenegraph to the view. More... | |
void | setViewpoint (std::shared_ptr< Viewpoint > viewpoint) |
Sets the viewpoint to use in the views rendered by this ViewBase. More... | |
void | addViewpoint (std::shared_ptr< Viewpoint > viewpoint) |
Adds a viewpoint to use in the views rendered by this ViewBase. More... | |
void | traverse (Visitor *visitor) override |
Propagates the specified visitor. 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... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
![]() | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
void | populateViewSettings (ViewSettings &settings) |
Adds the dispatcher's local renderers and viewpoint, if set. More... | |
![]() | |
std::shared_ptr< MultiscopicMultiplexer > | multiscopic_multiplexer |
![]() | |
Node::list | nodes |
std::vector< std::shared_ptr< Viewpoint > > | viewpoints |
This view provides skewed frustum projection of the renderers, on a planar projection surface.
The projection plane can be specified in two ways. The primary way is to explicitly set the top-left and bottom-right corners and up direction. Alternatively the same corner can be calculated from a virtual* frustum, set with position, orientation, clip angles and a distance to the projection plane. Observe, however, that the actual frustum for the rendering is controlled by the Viewpoint, not these parameters.
void gramods::gmGraphics::SpatialPlanarView::setBottomRightCorner | ( | Eigen::Vector3f | brc | ) |
Position of bottom right corner of the view.
XML-attribute: bottomRightCorner
void gramods::gmGraphics::SpatialPlanarView::setClipAngles | ( | gmCore::angle4 | a | ) |
Set the clip angles of a virtual frustum, as left, right, bottom, top.
This will help specifying the projection plane, together with position and orientation, but will not control the final view angle. Left and bottom angles increase left-wise and downwards, respectively, while right and top angles increase right-wise and upwards, respectively.
XML-attribute: clipAngles
void gramods::gmGraphics::SpatialPlanarView::setDistance | ( | float | d | ) |
Set the orientation of a virtual frustum.
This will help specifying the projection plane, but will not control the viewpoint.
XML-attribute: distance
void gramods::gmGraphics::SpatialPlanarView::setOrientation | ( | Eigen::Quaternionf | q | ) |
Set the orientation of a virtual frustum.
Default is zero rotation. This will help specifying the projection plane, but will not control the viewpoint.
XML-attribute: orientation
void gramods::gmGraphics::SpatialPlanarView::setPosition | ( | Eigen::Vector3f | p | ) |
Set the position of a virtual frustum.
Default is the origin. This will help specifying the projection plane, but will not control the viewpoint.
XML-attribute: position
void gramods::gmGraphics::SpatialPlanarView::setTopLeftCorner | ( | Eigen::Vector3f | tlc | ) |
Position of the top left corner of the view.
XML-attribute: topLeftCorner
void gramods::gmGraphics::SpatialPlanarView::setUpDirection | ( | Eigen::Vector3f | up | ) |
Set up direction of the view.
XML-attribute: upDirection