OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions
osgUtil::ReflectionMapGenerator Class Reference

This is the most simple cube map generator. More...

Inheritance diagram for osgUtil::ReflectionMapGenerator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ReflectionMapGenerator (int texture_size=64)
 ReflectionMapGenerator (const ReflectionMapGenerator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)

Protected Member Functions

virtual ~ReflectionMapGenerator ()
ReflectionMapGeneratoroperator= (const ReflectionMapGenerator &)
virtual osg::Vec4 compute_color (const osg::Vec3 &R) const
 Override this method to define how colors are computed.

Detailed Description

This is the most simple cube map generator.

It performs a direct association between reflection vector and RGBA color (C = R).


Constructor & Destructor Documentation

osgUtil::ReflectionMapGenerator::ReflectionMapGenerator ( int  texture_size = 64) [inline]
osgUtil::ReflectionMapGenerator::ReflectionMapGenerator ( const ReflectionMapGenerator copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
) [inline]
virtual osgUtil::ReflectionMapGenerator::~ReflectionMapGenerator ( ) [inline, protected, virtual]

Member Function Documentation

osg::Vec4 osgUtil::ReflectionMapGenerator::compute_color ( const osg::Vec3 R) const [inline, protected, virtual]

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.

Implements osgUtil::CubeMapGenerator.

References osg::Vec3f::length(), and osgUtil::CubeMapGenerator::vector_to_color().

ReflectionMapGenerator& osgUtil::ReflectionMapGenerator::operator= ( const ReflectionMapGenerator ) [inline, protected]

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

osg logo
Generated at Sun Jan 8 2012 13:17:02 for the OpenSceneGraph by doxygen 1.7.4.