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

This view provides a symmetrical projection of the renderers, on a spherical projection surface. More...

#include <PosedSphericalView.hh>

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

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
 

Detailed Description

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.

Member Function Documentation

◆ renderFullPipeline()

void gramods::gmGraphics::PosedSphericalView::renderFullPipeline ( ViewSettings  settings)
overridevirtual

Dispatches renderers.

Reimplemented from gramods::gmGraphics::ViewBase.

◆ setCoordinatesMapper()

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

◆ setCubeMapResolution()

void gramods::gmGraphics::PosedSphericalView::setCubeMapResolution ( int  res)

Sets the resolution of the intermediate cube map, in pixels.

Default is 2048.

XML-attribute: cubeMapResolution

◆ setLinearInterpolation()

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

◆ setMakeSquare()

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.

◆ traverse()

void gramods::gmGraphics::PosedSphericalView::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: