Coordinates mapper that provides an equirectangular mapping between 2D and fully spherical 3D.
More...
|
std::string | getCommonCode () override |
|
std::string | getTo2DCode () override |
|
std::string | getTo3DCode () override |
|
void | setCommonUniforms (GLuint program) override |
|
void | setCoverageAngle (gmCore::angle2 a) |
| Set the horizontal and vertical coverage angles, respectively, 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π for horizontal and between 0 and π for vertical. More...
|
|
void | setCoverageRange (gmCore::angle4 a) |
| Set the horizontal and vertical coverage ranges, respectively, that the 2D coordinates (y=[-1, 1]) should have in the 3D sphere, as angle expressed as a value in radians typically between -π and π for horizontal and between -π/2 and π/2 for vertical. More...
|
|
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...
|
|
| 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...
|
|
Coordinates mapper that provides an equirectangular mapping between 2D and fully spherical 3D.
void gramods::gmGraphics::EquirectangularCoordinatesMapper::setCoverageAngle |
( |
gmCore::angle2 |
a | ) |
|
Set the horizontal and vertical coverage angles, respectively, 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π for horizontal and between 0 and π for vertical.
The typical equirectangular format uses a coverage angle of 2π and π, which is also the default.
XML-attribute: coverageAngle
- See also
- operator>>(std::istream &, gmCore::angle &)
void gramods::gmGraphics::EquirectangularCoordinatesMapper::setCoverageRange |
( |
gmCore::angle4 |
a | ) |
|
Set the horizontal and vertical coverage ranges, respectively, that the 2D coordinates (y=[-1, 1]) should have in the 3D sphere, as angle expressed as a value in radians typically between -π and π for horizontal and between -π/2 and π/2 for vertical.
The typical equirectangular format uses a coverage range of -π - π and -π/2 - π/2, which is also the default.
XML-attribute: coverageRange
- See also
- operator>>(std::istream &, gmCore::angle &)