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


Classes | |
| struct | Impl |
Public Member Functions | |
| void | renderFullPipeline (ViewSettings settings) 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... | |
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::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::ViewBase | |
| Node::list | nodes |
| std::vector< std::shared_ptr< Viewpoint > > | viewpoints |
This view provides a symmetrical projection of the renderers, on a spherical projection surface.
The PosedSphericalView maps the renderers' graphics into a spherical projection surface, centered on the viewpoint's position, from the viewpoint's position and orientation.
|
overridevirtual |
Dispatches renderers.
Reimplemented from gramods::gmGraphics::ViewBase.
| void gramods::gmGraphics::PosedSphericalView::setCoordinatesMapper | ( | std::shared_ptr< CoordinatesMapper > | mapper | ) |
Sets the coordinates mapper that should be used to map the 3D surrounding into the 2D view.
XML-attribute: coordinatesMapper
| void gramods::gmGraphics::PosedSphericalView::setCubeMapResolution | ( | int | res | ) |
Sets the resolution of the intermediate cube map, in pixels.
Default is 2048.
XML-attribute: cubeMapResolution
| void gramods::gmGraphics::PosedSphericalView::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::PosedSphericalView::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.
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.