OpenSceneGraph 2.8.3
|
Public Member Functions | |
ImageLayer (osg::Image *image=0) | |
ImageLayer (const ImageLayer &imageLayer, const osg::CopyOp ©op=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::Image * | getImage () |
Return image associated with layer. | |
virtual const osg::Image * | getImage () const |
Return const image associated with layer. | |
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::ref_ptr< osg::Image > | _image |
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] |
Compute the min and max pixel colors.
virtual void osgVolume::ImageLayer::dirty | ( | ) | [virtual] |
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.
osg::ref_ptr<osg::Image> osgVolume::ImageLayer::_image [protected] |
![]() | Generated at Tue Mar 22 2011 13:20:31 for the OpenSceneGraph by doxygen 1.7.3. |