Public Member Functions | Protected Member Functions | Protected Attributes

osgVolume::ImageLayer Class Reference

Inheritance diagram for osgVolume::ImageLayer:
osgVolume::Layer osg::Object osg::Referenced

List of all members.

Public Member Functions

 ImageLayer (osg::Image *image=0)
 ImageLayer (const ImageLayer &imageLayer, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgVolume, ImageLayer)
void setFileName (const std::string &filename)
virtual const std::string & getFileName () const
void setImage (osg::Image *image)
virtual osg::ImagegetImage ()
virtual const osg::ImagegetImage () const
bool computeMinMax (osg::Vec4 &min, osg::Vec4 &max)
void offsetAndScaleImage (const osg::Vec4 &offset, const osg::Vec4 &scale)
void rescaleToZeroToOneRange ()
void translateMinToZero ()
virtual bool requiresUpdateTraversal () const
virtual void update (osg::NodeVisitor &)
virtual void dirty ()
virtual void setModifiedCount (unsigned int value)
virtual unsigned int getModifiedCount () const

Protected Member Functions

virtual ~ImageLayer ()

Protected Attributes

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.

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::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: