|
gramods
|
This view provides skewed frustum projection of the renderers, on a spherical projection surface. More...
#include <SpatialSphericalView.hh>


Classes | |
| struct | Impl |
Public Member Functions | |
| void | renderFullPipeline (ViewSettings settings, Eye eye) override |
| Dispatches renderers. More... | |
| void | traverse (Visitor *visitor) override |
| Propagates the specified visitor. More... | |
| void | setCubeMapResolution (int res) |
| Sets the resolution of the intermediate cube map, in pixels. More... | |
| void | setLinearInterpolation (bool on) |
| Turn on or off linear interpolation in the projection from linear graphics to non-linear projection space. More... | |
| void | setCoordinatesMapper (std::shared_ptr< CoordinatesMapper > mapper) |
| Sets the coordinates mapper that should be used to map the 3D surrounding into the 2D view. More... | |
| void | setMakeSquare (bool on) |
| When set to true, the output on the view will be square, so that using a fisheye mapper would render the view as a circle instead of an ellipse. More... | |
| void | setPosition (Eigen::Vector3f p) |
| Sets the location of the center of the spherical projection surface, in meters. More... | |
| void | setRadius (float r) |
| Set the radius of the projection surface, in meters. More... | |
| void | setOrientation (Eigen::Quaternionf q) |
| Set the orientation of the projection, for example to create a forward tilt common in dome theaters. More... | |
Public Member Functions inherited from gramods::gmGraphics::MultiscopicView | |
| void | renderFullPipeline (ViewSettings settings) override final |
| Dispatches specified renders, both method argument and class members. More... | |
| void | setMultiscopicMultiplexer (std::shared_ptr< MultiscopicMultiplexer > sm) |
| Sets the multiscopic multiplexing to use for rendering. More... | |
Public Member Functions inherited from gramods::gmGraphics::ViewBase | |
| 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... | |
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::MultiscopicView | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Static Public Attributes inherited from gramods::gmGraphics::View | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Static Public Attributes inherited from gramods::gmGraphics::ViewBase | |
| static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
Protected Member Functions inherited from gramods::gmGraphics::ViewBase | |
| void | populateViewSettings (ViewSettings &settings) |
| Adds the dispatcher's local renderers and viewpoint, if set. More... | |
Protected Attributes inherited from gramods::gmGraphics::MultiscopicView | |
| std::shared_ptr< MultiscopicMultiplexer > | multiscopic_multiplexer |
Protected Attributes inherited from gramods::gmGraphics::ViewBase | |
| Node::list | nodes |
| std::vector< std::shared_ptr< Viewpoint > > | viewpoints |
This view provides skewed frustum projection of the renderers, on a spherical projection surface.
The SpatialSphericalView maps the renderers' graphics onto a spherical projection surface, a dome at a fixed position, in a selected representation of spherical projection, from the viewpoint's position and orientation. This skews the view from the viewpoint position relative the dome surface, to compensate for the distortion due to the curved surface.
|
overridevirtual |
Dispatches renderers.
Implements gramods::gmGraphics::MultiscopicView.
| void gramods::gmGraphics::SpatialSphericalView::setCoordinatesMapper | ( | std::shared_ptr< CoordinatesMapper > | mapper | ) |
Sets the coordinates mapper that should be used to map the 3D surrounding into the 2D view.
| void gramods::gmGraphics::SpatialSphericalView::setCubeMapResolution | ( | int | res | ) |
Sets the resolution of the intermediate cube map, in pixels.
Default is 2048.
XML-attribute: cubeMapResolution
| void gramods::gmGraphics::SpatialSphericalView::setLinearInterpolation | ( | bool | on | ) |
Turn on or off linear interpolation in the projection from linear graphics to non-linear projection space.
Default is off.
XML-attribute: linearInterpolation
| void gramods::gmGraphics::SpatialSphericalView::setMakeSquare | ( | bool | on | ) |
When set to true, the output on the view will be square, so that using a fisheye mapper would render the view as a circle instead of an ellipse.
Default is false.
| void gramods::gmGraphics::SpatialSphericalView::setOrientation | ( | Eigen::Quaternionf | q | ) |
Set the orientation of the projection, for example to create a forward tilt common in dome theaters.
XML-attribute: orientation
| void gramods::gmGraphics::SpatialSphericalView::setPosition | ( | Eigen::Vector3f | p | ) |
Sets the location of the center of the spherical projection surface, in meters.
Default is zero.
XML-attribute: position
| void gramods::gmGraphics::SpatialSphericalView::setRadius | ( | float | r | ) |
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmGraphics::MultiscopicView.