osg::TransferFunction Class Reference

Inheritance diagram for osg::TransferFunction:

osg::Referenced osg::TransferFunction1D

List of all members.

Public Member Functions

 TransferFunction ()
osg::Image * getImage ()
const osg::Image * getImage () const
osg::Texture * getTexture ()
const osg::Texture * getTexture () const
osg::Shader * getShader ()
const osg::Shader * getShader () 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


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

Generated on Wed Nov 17 16:52:50 2010 for openscenegraph by  doxygen 1.5.6