openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes
osgVolume::Layer Class Reference
Inheritance diagram for osgVolume::Layer:
osg::Object osg::Referenced osgVolume::CompositeLayer osgVolume::ImageLayer

List of all members.

Public Member Functions

 Layer ()
 Layer (const Layer &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Object (osgVolume, Layer)
virtual void setFileName (const std::string &filename)
virtual const std::string & getFileName () const
void setLocator (Locator *locator)
LocatorgetLocator ()
const LocatorgetLocator () const
void setDefaultValue (const osg::Vec4 &value)
const osg::Vec4getDefaultValue () const
void setMinFilter (osg::Texture::FilterMode filter)
osg::Texture::FilterMode getMinFilter () const
void setMagFilter (osg::Texture::FilterMode filter)
osg::Texture::FilterMode getMagFilter () const
virtual osg::ImagegetImage ()
virtual const osg::ImagegetImage () const
void setProperty (Property *property)
PropertygetProperty ()
const PropertygetProperty () const
void addProperty (Property *property)
virtual bool requiresUpdateTraversal () const
virtual void update (osg::NodeVisitor &)
virtual void dirty ()
virtual void setModifiedCount (unsigned int)
virtual unsigned int getModifiedCount () const
virtual osg::BoundingSphere computeBound () const

Protected Member Functions

virtual ~Layer ()

Protected Attributes

std::string _filename
osg::ref_ptr< Locator_locator
osg::Vec4 _defaultValue
osg::Texture::FilterMode _minFilter
osg::Texture::FilterMode _magFilter
osg::ref_ptr< Property_property

Detailed Description

Base class for representing a single layer of volume data.


Constructor & Destructor Documentation

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osgVolume::Layer::~Layer ( ) [protected, virtual]

Member Function Documentation

Add a property, automatically creating a CompositePorperty if one isn't already assigned.

virtual void osgVolume::Layer::dirty ( ) [inline, virtual]

increment the modified count."

Reimplemented in osgVolume::ImageLayer.

const osg::Vec4& osgVolume::Layer::getDefaultValue ( ) const [inline]
virtual const std::string& osgVolume::Layer::getFileName ( ) const [inline, virtual]

Get the file name of the layer.

Reimplemented in osgVolume::ImageLayer.

Referenced by osgVolume::CompositeLayer::addLayer().

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

Return image associated with layer if supported.

Reimplemented in osgVolume::ImageLayer.

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

Return const image associated with layer if supported.

Reimplemented in osgVolume::ImageLayer.

const Locator* osgVolume::Layer::getLocator ( ) const [inline]

Get the magnification texture filter to use when do texture associated with this layer.

Get the minification texture filter to use when do texture associated with this layer.

virtual unsigned int osgVolume::Layer::getModifiedCount ( ) const [inline, virtual]

Get modified count value.

Reimplemented in osgVolume::ImageLayer.

Get the Property that informs the VolumeTechnique how this layer should be rendered.

const Property* osgVolume::Layer::getProperty ( ) const [inline]

Get the const Property that informs the VolumeTechnique how this layer should be rendered.

osgVolume::Layer::META_Object ( osgVolume  ,
Layer   
)
virtual bool osgVolume::Layer::requiresUpdateTraversal ( ) const [inline, virtual]

Specify whether ImageLayer requires update traversal.

Reimplemented in osgVolume::CompositeLayer, and osgVolume::ImageLayer.

void osgVolume::Layer::setDefaultValue ( const osg::Vec4 value) [inline]
virtual void osgVolume::Layer::setFileName ( const std::string &  filename) [inline, virtual]

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

Reimplemented in osgVolume::ImageLayer.

void osgVolume::Layer::setLocator ( Locator locator) [inline]

Set the magniification texture filter to use when do texture associated with this layer.

Set the minification texture filter to use when do texture associated with this layer.

virtual void osgVolume::Layer::setModifiedCount ( unsigned int  ) [inline, virtual]

Set the modified count value.

Reimplemented in osgVolume::ImageLayer.

void osgVolume::Layer::setProperty ( Property property) [inline]

Set the Property (or Properties via the CompositeProperty) that informs the VolumeTechnique how this layer should be rendered.

virtual void osgVolume::Layer::update ( osg::NodeVisitor ) [inline, virtual]

Call update on the Layer.

Reimplemented in osgVolume::CompositeLayer, and osgVolume::ImageLayer.


Member Data Documentation

std::string osgVolume::Layer::_filename [protected]

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