This is the base class for cube map generators.
Inheritance:
Public Methods
-
explicit CubeMapGenerator(int texture_size = 64)
-
CubeMapGenerator(const CubeMapGenerator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
-
void generateMap(bool use_osg_system = true)
- generate the six cube images.
-
inline osg::Image* getImage(osg::TextureCubeMap::Face face)
-
inline const osg::Image* getImage(osg::TextureCubeMap::Face face) const
-
inline void set_pixel(int index, int c, int r, const osg::Vec4 &color)
-
inline osg::Vec4 vector_to_color(const osg::Vec3 &vec)
Protected Methods
-
virtual ~CubeMapGenerator()
-
CubeMapGenerator& operator=(const CubeMapGenerator &)
-
inline static osg::Vec4 vector_to_color(const osg::Vec3 &vec)
-
virtual osg::Vec4 compute_color(const osg::Vec3 &R) const
- override this method to define how colors are computed.
Documentation
This is the base class for cube map generators.
It exposes the necessary interface to access the six generated images;
descendants should only override the compute_color() method.
- explicit CubeMapGenerator(int texture_size = 64)
- CubeMapGenerator(const CubeMapGenerator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
- void generateMap(bool use_osg_system = true)
- generate the six cube images.
If use_osg_system is true, then the OSG's coordinate system is used instead
of the default OpenGL one.
- virtual ~CubeMapGenerator()
- CubeMapGenerator& operator=(const CubeMapGenerator &)
- inline static osg::Vec4 vector_to_color(const osg::Vec3 &vec)
- virtual osg::Vec4 compute_color(const osg::Vec3 &R) const
- override this method to define how colors are computed.
The parameter R is the reflection vector, pointing from the center of the cube.
The return value should be the RGBA color associated with that reflection ray.
- inline osg::Image* getImage(osg::TextureCubeMap::Face face)
- inline const osg::Image* getImage(osg::TextureCubeMap::Face face) const
- inline void set_pixel(int index, int c, int r, const osg::Vec4 &color)
- inline osg::Vec4 vector_to_color(const osg::Vec3 &vec)
- Direct child classes:
- ReflectionMapGenerator
HighlightMapGenerator
HalfWayMapGenerator
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.