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

This view provides a projection of the renderers using the specified frustum projection from the viewpoint's point of view. More...

#include <PosedPlanarView.hh>

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

Classes

struct  Impl
 

Public Member Functions

void renderFullPipeline (ViewSettings settings) override
 Dispatches specified renders, both method argument and class members. More...
 
void setFieldOfView (gmCore::angle2 fov)
 Sets the horizontal and vertical field of view, in radians. 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 projection of the renderers using the specified frustum projection from the viewpoint's point of view.

Member Function Documentation

◆ renderFullPipeline()

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

Dispatches specified renders, both method argument and class members.

The default implementation calls the renderers but with a default Camera, and should be overloaded by sub classes to implement their respective effects.

Reimplemented from gramods::gmGraphics::ViewBase.

◆ setFieldOfView()

void gramods::gmGraphics::PosedPlanarView::setFieldOfView ( gmCore::angle2  fov)

Sets the horizontal and vertical field of view, in radians.

If one dimension is set to -1 then that dimension is automatically controlled to fit the ratio of the viewport. Default is 1 horizontal.

XML-attribute: fieldOfView

See also
operator>>(std::istream &, gmCore::angle &)

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