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

This view mixes the graphics from two or more other views. More...

#include <ViewMixView.hh>

Inheritance diagram for gramods::gmGraphics::ViewMixView:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::ViewMixView:
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 setMixType (std::string)
 Set type of mixing. More...
 
void addView (std::shared_ptr< View >)
 Add a view to mix. 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...
 
- 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 mixes the graphics from two or more other views.

Member Function Documentation

◆ addView()

void gramods::gmGraphics::ViewMixView::addView ( std::shared_ptr< View v)

Add a view to mix.

XML-attribute: view

◆ renderFullPipeline()

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

◆ setMixType()

void gramods::gmGraphics::ViewMixView::setMixType ( std::string  s)

Set type of mixing.

Default is average. Valid values are

  • average, showing the per pixel average value of all the views,
  • difference, showing the per pixel difference between the first and the second added view.
  • distance, showing the per pixel color distance between the first and the second added view.

XML-attribute: mixType

Valid values are

  • average, showing the per pixel average value of all the views,
  • difference, showing the per pixel difference between the first and the second added view.
  • distance, showing the per pixel color distance between the first and the second added view.

◆ traverse()

void gramods::gmGraphics::ViewMixView::traverse ( Visitor visitor)
overridevirtual

Propagates the specified visitor.

See also
Object::Visitor

Reimplemented from gramods::gmGraphics::ViewBase.


The documentation for this class was generated from the following files: