OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
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 ()
 TransferFunction (const TransferFunction &tf, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osg, TransferFunction) osg
 Get the image that is used for passing the transfer function data to the GPU.
const osg::ImagegetImage () const
 Get the const image that is used for passing the transfer function data to the GPU.

Protected Member Functions

virtual ~TransferFunction ()

Protected Attributes

osg::ref_ptr< osg::Image_image

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.


Constructor & Destructor Documentation

Copy constructor using CopyOp to manage deep vs shallow copy.

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

Member Function Documentation

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

Get the const image that is used for passing the transfer function data to the GPU.

Get the image that is used for passing the transfer function data to the GPU.


Member Data Documentation


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

osg logo
Generated at Sun May 6 2012 20:07:49 for the OpenSceneGraph by doxygen 1.8.0.