OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgVolume::Layer Class Reference

#include <Layer.h>

Inheritance diagram for osgVolume::Layer:
Inheritance graph
[legend]
Collaboration diagram for osgVolume::Layer:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
virtual bool isSameKindAs (const Object *) const
 
virtual const char * libraryName () const =0
 
virtual const char * className () const =0
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~Layer ()
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

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
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

Base class for representing a single layer of volume data.

Definition at line 56 of file Layer.h.

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

Member Function Documentation

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

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

virtual osg::BoundingSphere osgVolume::Layer::computeBound ( ) const
virtual
virtual void osgVolume::Layer::dirty ( )
inlinevirtual

increment the modified count."

Reimplemented in osgVolume::ImageLayer.

Definition at line 119 of file Layer.h.

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

Definition at line 78 of file Layer.h.

virtual const std::string& osgVolume::Layer::getFileName ( ) const
inlinevirtual

Get the file name of the layer.

Reimplemented in osgVolume::ImageLayer.

Definition at line 71 of file Layer.h.

Here is the caller graph for this function:

virtual osg::Image* osgVolume::Layer::getImage ( )
inlinevirtual

Return image associated with layer if supported.

Reimplemented in osgVolume::ImageLayer.

Definition at line 93 of file Layer.h.

virtual const osg::Image* osgVolume::Layer::getImage ( ) const
inlinevirtual

Return const image associated with layer if supported.

Reimplemented in osgVolume::ImageLayer.

Definition at line 96 of file Layer.h.

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

Definition at line 74 of file Layer.h.

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

Definition at line 75 of file Layer.h.

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

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

Definition at line 90 of file Layer.h.

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

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

Definition at line 84 of file Layer.h.

virtual unsigned int osgVolume::Layer::getModifiedCount ( ) const
inlinevirtual

Get modified count value.

Reimplemented in osgVolume::ImageLayer.

Definition at line 125 of file Layer.h.

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

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

Definition at line 103 of file Layer.h.

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

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

Definition at line 106 of file Layer.h.

osgVolume::Layer::META_Object ( osgVolume  ,
Layer   
)
virtual bool osgVolume::Layer::requiresUpdateTraversal ( ) const
inlinevirtual

Specify whether ImageLayer requires update traversal.

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

Definition at line 113 of file Layer.h.

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

Definition at line 77 of file Layer.h.

virtual void osgVolume::Layer::setFileName ( const std::string &  filename)
inlinevirtual

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

Reimplemented in osgVolume::ImageLayer.

Definition at line 68 of file Layer.h.

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

Definition at line 73 of file Layer.h.

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

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

Definition at line 87 of file Layer.h.

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

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

Definition at line 81 of file Layer.h.

virtual void osgVolume::Layer::setModifiedCount ( unsigned int  )
inlinevirtual

Set the modified count value.

Reimplemented in osgVolume::ImageLayer.

Definition at line 122 of file Layer.h.

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.

Definition at line 100 of file Layer.h.

virtual void osgVolume::Layer::update ( osg::NodeVisitor )
inlinevirtual

Call update on the Layer.

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

Definition at line 116 of file Layer.h.

Member Data Documentation

osg::Vec4 osgVolume::Layer::_defaultValue
protected

Definition at line 135 of file Layer.h.

std::string osgVolume::Layer::_filename
protected

Definition at line 133 of file Layer.h.

osg::ref_ptr<Locator> osgVolume::Layer::_locator
protected

Definition at line 134 of file Layer.h.

osg::Texture::FilterMode osgVolume::Layer::_magFilter
protected

Definition at line 137 of file Layer.h.

osg::Texture::FilterMode osgVolume::Layer::_minFilter
protected

Definition at line 136 of file Layer.h.

osg::ref_ptr<Property> osgVolume::Layer::_property
protected

Definition at line 139 of file Layer.h.


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