OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions | Protected Attributes
osgVolume::ImageLayer Class Reference
Inheritance diagram for osgVolume::ImageLayer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImageLayer (osg::Image *image=0)
 ImageLayer (const ImageLayer &imageLayer, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
 META_Object (osgVolume, ImageLayer)
void setFileName (const std::string &filename)
 Set the file name of the data associated with this layer.
virtual const std::string & getFileName () const
 Get the file name of the layer.
void setImage (osg::Image *image)
virtual osg::ImagegetImage ()
 Return image associated with layer.
virtual const osg::ImagegetImage () const
 Return const image associated with layer.
void setTexelOffset (const osg::Vec4 &offset)
const osg::Vec4getTexelOffset () const
void setTexelScale (const osg::Vec4 &scale)
const osg::Vec4getTexelScale () const
bool computeMinMax (osg::Vec4 &min, osg::Vec4 &max)
 Compute the min and max pixel colors.
void offsetAndScaleImage (const osg::Vec4 &offset, const osg::Vec4 &scale)
 Apply color transformation to pixels using c' = offset + c * scale .
void rescaleToZeroToOneRange ()
 Compute the min max range of the image, and then remap this to a 0 to 1 range.
void translateMinToZero ()
 Compute the min color component of the image and then translate and pixels by this offset to make the new min component 0.
virtual bool requiresUpdateTraversal () const
 Specify whether ImageLayer requires update traversal.
virtual void update (osg::NodeVisitor &)
 Call update on the Layer.
virtual void dirty ()
 increment the modified count.
virtual void setModifiedCount (unsigned int value)
 Set the modified count value.
virtual unsigned int getModifiedCount () const
 Get modified count value.

Protected Member Functions

virtual ~ImageLayer ()

Protected Attributes

osg::Vec4 _texelOffset
osg::Vec4 _texelScale
osg::ref_ptr< osg::Image_image

Constructor & Destructor Documentation

osgVolume::ImageLayer::ImageLayer ( osg::Image image = 0)
osgVolume::ImageLayer::ImageLayer ( const ImageLayer imageLayer,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgVolume::ImageLayer::~ImageLayer ( ) [inline, protected, virtual]

Member Function Documentation

bool osgVolume::ImageLayer::computeMinMax ( osg::Vec4 min,
osg::Vec4 max 
)

Compute the min and max pixel colors.

virtual void osgVolume::ImageLayer::dirty ( ) [virtual]

increment the modified count.

"

Reimplemented from osgVolume::Layer.

virtual const std::string& osgVolume::ImageLayer::getFileName ( ) const [inline, virtual]

Get the file name of the layer.

Reimplemented from osgVolume::Layer.

virtual osg::Image* osgVolume::ImageLayer::getImage ( ) [inline, virtual]

Return image associated with layer.

Reimplemented from osgVolume::Layer.

virtual const osg::Image* osgVolume::ImageLayer::getImage ( ) const [inline, virtual]

Return const image associated with layer.

Reimplemented from osgVolume::Layer.

virtual unsigned int osgVolume::ImageLayer::getModifiedCount ( ) const [virtual]

Get modified count value.

Reimplemented from osgVolume::Layer.

const osg::Vec4& osgVolume::ImageLayer::getTexelOffset ( ) const [inline]
const osg::Vec4& osgVolume::ImageLayer::getTexelScale ( ) const [inline]
osgVolume::ImageLayer::META_Object ( osgVolume  ,
ImageLayer   
)
void osgVolume::ImageLayer::offsetAndScaleImage ( const osg::Vec4 offset,
const osg::Vec4 scale 
)

Apply color transformation to pixels using c' = offset + c * scale .

virtual bool osgVolume::ImageLayer::requiresUpdateTraversal ( ) const [virtual]

Specify whether ImageLayer requires update traversal.

Reimplemented from osgVolume::Layer.

void osgVolume::ImageLayer::rescaleToZeroToOneRange ( )

Compute the min max range of the image, and then remap this to a 0 to 1 range.

void osgVolume::ImageLayer::setFileName ( const std::string &  filename) [inline, virtual]

Set the file name of the data associated with this layer.

Reimplemented from osgVolume::Layer.

void osgVolume::ImageLayer::setImage ( osg::Image image)
virtual void osgVolume::ImageLayer::setModifiedCount ( unsigned int  ) [virtual]

Set the modified count value.

Reimplemented from osgVolume::Layer.

void osgVolume::ImageLayer::setTexelOffset ( const osg::Vec4 offset) [inline]
void osgVolume::ImageLayer::setTexelScale ( const osg::Vec4 scale) [inline]
void osgVolume::ImageLayer::translateMinToZero ( )

Compute the min color component of the image and then translate and pixels by this offset to make the new min component 0.

virtual void osgVolume::ImageLayer::update ( osg::NodeVisitor ) [virtual]

Call update on the Layer.

Reimplemented from osgVolume::Layer.


Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:51 for the OpenSceneGraph by doxygen 1.7.5.