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

The RemapperView remaps another view from the mapping expressed by one CoordinatesMapper into the mapping expressed by another, in a single step. More...

#include <RemapperView.hh>

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

Classes

struct  Impl
 

Public Member Functions

void renderFullPipeline (ViewSettings settings) override
 Appends local renderers to the view settings, forwards rendering to the sub views and mixes the results. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
void addView (std::shared_ptr< View >)
 Adds a view to mask with chroma key. More...
 
void setFrom (std::shared_ptr< CoordinatesMapper >)
 Sets the mapper to remap from, describing the mapping of the source, the input. More...
 
void setTo (std::shared_ptr< CoordinatesMapper >)
 Sets the mapper to remap to, describing the mapping of the target, the result. More...
 
void setViewOffset (float)
 Sets an offset for the view position. More...
 
void setSphereRadius (float)
 Sets a sphere radius for the remapping. More...
 
void setOrientation (gmCore::angle2)
 Sets an orientation offset for the remapping. 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

The RemapperView remaps another view from the mapping expressed by one CoordinatesMapper into the mapping expressed by another, in a single step.

Member Function Documentation

◆ addView()

void gramods::gmGraphics::RemapperView::addView ( std::shared_ptr< View view)

Adds a view to mask with chroma key.

XML-attribute: view

◆ renderFullPipeline()

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

Appends local renderers to the view settings, forwards rendering to the sub views and mixes the results.

Reimplemented from gramods::gmGraphics::ViewBase.

◆ setFrom()

void gramods::gmGraphics::RemapperView::setFrom ( std::shared_ptr< CoordinatesMapper from)

Sets the mapper to remap from, describing the mapping of the source, the input.

XML-attribute: from

◆ setOrientation()

void gramods::gmGraphics::RemapperView::setOrientation ( gmCore::angle2  a)

Sets an orientation offset for the remapping.

XML-attribute: orientation

◆ setSphereRadius()

void gramods::gmGraphics::RemapperView::setSphereRadius ( float  r)

Sets a sphere radius for the remapping.

This component does not make intersection or 3D rendering, so this number will be used together with viewOffset to calculate a sphere orientation. Default is 1.0.

XML-attribute: sphereRadius

◆ setTo()

void gramods::gmGraphics::RemapperView::setTo ( std::shared_ptr< CoordinatesMapper to)

Sets the mapper to remap to, describing the mapping of the target, the result.

XML-attribute: to

◆ setViewOffset()

void gramods::gmGraphics::RemapperView::setViewOffset ( float  q)

Sets an offset for the view position.

This component does not make intersection or 3D rendering, so this number will be used together with sphereRadius to calculate a sphere orientation. Default is 0.0;

XML-attribute: viewOffset

◆ traverse()

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