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

Coordinates mapper that provides a transition between two other coordinates mappers. More...

#include <TransitionCoordinatesMapper.hh>

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

Classes

struct  Impl
 

Public Member Functions

std::string getCommonCode () override
 
std::string getTo2DCode () override
 
std::string getTo3DCode () override
 
void setCommonUniforms (GLuint program) override
 
void setTimeRange (gmCore::float2 t)
 Set the start and end time at which the transition should be made. More...
 
void setFrameRange (gmCore::size2 f)
 Set the start and end frame at which the transition should be made. More...
 
void setRatio (float n)
 Set a static ratio of interpolation between the two mappers. More...
 
void addCoordinatesMapper (std::shared_ptr< CoordinatesMapper > m)
 Adds a coordinates mapper that should be used to map the 3D surrounding into the 2D view. More...
 
void traverse (Visitor *visitor) override
 Propagates the specified visitor. More...
 
- Public Member Functions inherited from gramods::gmGraphics::CoordinatesMapper
virtual void setTo2DUniforms (GLuint program)
 Called by the code that is using this CoordinatesMapper object, to let it set the uniforms used by the to-2D code. More...
 
virtual void setTo3DUniforms (GLuint program)
 Called by the code that is using this CoordinatesMapper object, to let it set the uniforms used by the to-3D code. More...
 
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. 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
 

Additional Inherited Members

- Protected Member Functions inherited from gramods::gmGraphics::CoordinatesMapper
const std::string withVarId (std::string) const
 
- Protected Attributes inherited from gramods::gmGraphics::CoordinatesMapper
const std::string var_id
 

Detailed Description

Coordinates mapper that provides a transition between two other coordinates mappers.

Member Function Documentation

◆ addCoordinatesMapper()

void gramods::gmGraphics::TransitionCoordinatesMapper::addCoordinatesMapper ( std::shared_ptr< CoordinatesMapper m)

Adds a coordinates mapper that should be used to map the 3D surrounding into the 2D view.

Two are needed for transition.

◆ getCommonCode()

std::string gramods::gmGraphics::TransitionCoordinatesMapper::getCommonCode ( )
overridevirtual

◆ getTo2DCode()

std::string gramods::gmGraphics::TransitionCoordinatesMapper::getTo2DCode ( )
overridevirtual

◆ getTo3DCode()

std::string gramods::gmGraphics::TransitionCoordinatesMapper::getTo3DCode ( )
overridevirtual

◆ setCommonUniforms()

void gramods::gmGraphics::TransitionCoordinatesMapper::setCommonUniforms ( GLuint  program)
overridevirtual

◆ setFrameRange()

void gramods::gmGraphics::TransitionCoordinatesMapper::setFrameRange ( gmCore::size2  f)

Set the start and end frame at which the transition should be made.

The first mapper is used up until and including the start frame and the second is at and after the end frame.

XML-attribute: frameRange

◆ setRatio()

void gramods::gmGraphics::TransitionCoordinatesMapper::setRatio ( float  n)

Set a static ratio of interpolation between the two mappers.

Default is 0.5.

XML-attribute: ratio

◆ setTimeRange()

void gramods::gmGraphics::TransitionCoordinatesMapper::setTimeRange ( gmCore::float2  t)

Set the start and end time at which the transition should be made.

The first mapper is used up until and including the start time and the second is used at and after the end time.

XML-attribute: timeRange

◆ traverse()

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