osg::TransferFunction Class Reference

TransferFunction is a class that provide a 1D,2D or 3D colour look up table that can be used on the GPU as a 1D, 2D or 3D texture. More...

Inheritance diagram for osg::TransferFunction:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 TransferFunction ()
osg::ImagegetImage ()
const osg::ImagegetImage () const
osg::TexturegetTexture ()
const osg::TexturegetTexture () const
osg::ShadergetShader ()
const osg::ShadergetShader () const

Protected Types

typedef std::vector
< osg::Vec4
Colors

Protected Member Functions

virtual ~TransferFunction ()

Protected Attributes

Colors _colors
osg::ref_ptr
< osg::Image
_image
osg::ref_ptr
< osg::Texture
_texture
osg::ref_ptr
< osg::Shader
_shader


Detailed Description

TransferFunction is a class that provide a 1D,2D or 3D colour look up table that can be used on the GPU as a 1D, 2D or 3D texture.

Typically uses include mapping heights to colours when contouring terrain, or mapping intensities to colours when volume rendering.


Member Typedef Documentation

typedef std::vector<osg::Vec4> osg::TransferFunction::Colors [protected]


Constructor & Destructor Documentation

osg::TransferFunction::TransferFunction (  ) 

virtual osg::TransferFunction::~TransferFunction (  )  [protected, virtual]


Member Function Documentation

osg::Image* osg::TransferFunction::getImage (  )  [inline]

const osg::Image* osg::TransferFunction::getImage (  )  const [inline]

osg::Texture* osg::TransferFunction::getTexture (  )  [inline]

const osg::Texture* osg::TransferFunction::getTexture (  )  const [inline]

osg::Shader* osg::TransferFunction::getShader (  )  [inline]

const osg::Shader* osg::TransferFunction::getShader (  )  const [inline]


Member Data Documentation

Colors osg::TransferFunction::_colors [protected]

osg::ref_ptr<osg::Image> osg::TransferFunction::_image [protected]

osg::ref_ptr<osg::Texture> osg::TransferFunction::_texture [protected]

osg::ref_ptr<osg::Shader> osg::TransferFunction::_shader [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:18 2007 for the OpenSceneGraph by doxygen 1.5.3.