|
gramods
|
Coordinates mapper that provides a transition between two other coordinates mappers. More...
#include <TransitionCoordinatesMapper.hh>


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 |
Coordinates mapper that provides a transition between two other coordinates mappers.
| 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.
|
overridevirtual |
Reimplemented from gramods::gmGraphics::CoordinatesMapper.
|
overridevirtual |
Reimplemented from gramods::gmGraphics::CoordinatesMapper.
|
overridevirtual |
Reimplemented from gramods::gmGraphics::CoordinatesMapper.
|
overridevirtual |
Reimplemented from gramods::gmGraphics::CoordinatesMapper.
| 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
| void gramods::gmGraphics::TransitionCoordinatesMapper::setRatio | ( | float | n | ) |
| 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
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.