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

Coordinates mapper that provides an angular fisheye mapping between 2D and fully spherical 3D. More...

#include <AngularFisheyeCoordinatesMapper.hh>

Inheritance diagram for gramods::gmGraphics::AngularFisheyeCoordinatesMapper:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmGraphics::AngularFisheyeCoordinatesMapper:
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 setCoverageAngle (gmCore::angle a)
 Set the vertical coverage that the 2D coordinates (y=[-1, 1]) should have in the 3D sphere, as angle expressed as a value in radians between 0 and 2π. 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...
 
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist. 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 an angular fisheye mapping between 2D and fully spherical 3D.

Member Function Documentation

◆ getCommonCode()

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

◆ getTo2DCode()

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

◆ getTo3DCode()

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

◆ setCommonUniforms()

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

◆ setCoverageAngle()

void gramods::gmGraphics::AngularFisheyeCoordinatesMapper::setCoverageAngle ( gmCore::angle  a)

Set the vertical coverage that the 2D coordinates (y=[-1, 1]) should have in the 3D sphere, as angle expressed as a value in radians between 0 and 2π.

The typical fulldome format uses a coverage angle of π, which is also the default.

XML-attribute: coverageAngle

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

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