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

The TiledView tiles up a view into sub tiles each containing a separate View. More...

#include <TiledView.hh>

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

Classes

struct  Impl
 

Public Member Functions

void renderFullPipeline (ViewSettings settings) override
 Appends local renderers to the view settings and forwards rendering to the sub views of this tiled view. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
void addTileLocation (gmCore::size4 c)
 Adds a location and span that is used when adding views. More...
 
void addView (std::shared_ptr< View > view)
 Adds a view to the previously specified tile location. 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 TiledView tiles up a view into sub tiles each containing a separate View.

Example usage:

<SomeWindow>
<TiledView>
<param name="tileLocation" value="0 2 1 1"/>
<SomeView ... />
<param name="tileLocation" value="1 2 1 1"/>
<SomeView ... />
<param name="tileLocation" value="0 0 2 2"/>
<SomeView ... />
</TiledView>
</SdlWindow>

Member Function Documentation

◆ addTileLocation()

void gramods::gmGraphics::TiledView::addTileLocation ( gmCore::size4  c)

Adds a location and span that is used when adding views.

Format is [row col rowspan colspan] where row and col start at zero at top left corner.

XML-attribute: tileLocation

◆ addView()

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

Adds a view to the previously specified tile location.

XML-attribute: view

◆ renderFullPipeline()

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

Appends local renderers to the view settings and forwards rendering to the sub views of this tiled view.

Reimplemented from gramods::gmGraphics::ViewBase.

◆ traverse()

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