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

osgVolume::Layer::Layer (  ) 

osgVolume::Layer::Layer ( const Layer ,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

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


Member Function Documentation

osgVolume::Layer::META_Object ( osgVolume  ,
Layer   
)

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.

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().

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

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

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

void osgVolume::Layer::setDefaultValue ( const osg::Vec4 value  )  [inline]

const osg::Vec4& osgVolume::Layer::getDefaultValue (  )  const [inline]

void osgVolume::Layer::setMinFilter ( osg::Texture::FilterMode  filter  )  [inline]

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

osg::Texture::FilterMode osgVolume::Layer::getMinFilter (  )  const [inline]

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

void osgVolume::Layer::setMagFilter ( osg::Texture::FilterMode  filter  )  [inline]

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

osg::Texture::FilterMode osgVolume::Layer::getMagFilter (  )  const [inline]

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

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.

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.

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

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.

void osgVolume::Layer::addProperty ( Property property  ) 

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

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

Specify whether ImageLayer requires update traversal.

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

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

Call update on the Layer.

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

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

increment the modified count."

Reimplemented in osgVolume::ImageLayer.

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

Set the modified count value.

Reimplemented in osgVolume::ImageLayer.

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

Get modified count value.

Reimplemented in osgVolume::ImageLayer.

virtual osg::BoundingSphere osgVolume::Layer::computeBound (  )  const [virtual]


Member Data Documentation

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


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

Generated on Fri Mar 19 19:53:00 2010 for openscenegraph by  doxygen 1.5.6