OpenSceneGraph 2.8.3

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:

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

osg::TransferFunction::TransferFunction ( )
osg::TransferFunction::TransferFunction ( const TransferFunction tf,
const CopyOp copyop = CopyOp::SHALLOW_COPY 
)

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.

osg::TransferFunction::META_Object ( osg  ,
TransferFunction   
) [inline]

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 Tue Mar 22 2011 13:20:24 for the OpenSceneGraph by doxygen 1.7.3.