Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::DVRVolume Class Reference

*put brief class description here* More...

#include <OSGDVRVolume.h>

Inheritance diagram for osg::DVRVolume:

osg::DVRVolumeBase osg::NodeCore osg::AttachmentContainer osg::FieldContainer List of all members.

Public Types

typedef DVRVolumePtr Ptr
enum  {
  AppearanceFieldId = Inherited::NextFieldId, GeometryFieldId = AppearanceFieldId + 1, ShaderFieldId = GeometryFieldId + 1, FileNameFieldId = ShaderFieldId + 1,
  SamplingFieldId = FileNameFieldId + 1, SamplingInteractiveFieldId = SamplingFieldId + 1, BaseAlphaFieldId = SamplingInteractiveFieldId + 1, DoTexturesFieldId = BaseAlphaFieldId + 1,
  BrickOverlapFieldId = DoTexturesFieldId + 1, Textures2DFieldId = BrickOverlapFieldId + 1, BrickStaticMemoryMBFieldId = Textures2DFieldId + 1, RenderMaterialFieldId = BrickStaticMemoryMBFieldId + 1,
  BrickingModeFieldId = RenderMaterialFieldId + 1, BrickStaticSubdivisionFieldId = BrickingModeFieldId + 1, BrickMaxSizeFieldId = BrickStaticSubdivisionFieldId + 1, ShowBricksFieldId = BrickMaxSizeFieldId + 1,
  DrawStyleFieldId = ShowBricksFieldId + 1, DrawStyleNamesFieldId = DrawStyleFieldId + 1, TextureStorageFieldId = DrawStyleNamesFieldId + 1, NextFieldId = TextureStorageFieldId + 1
}

Public Member Functions

Action::ResultE doDraw (Action *action)
 execute the OpenGL c to draw the geometry
Action::ResultE draw (DrawActionBase *action)
 low-level OpenGL calls, ignoring materials
Action::ResultE render (Action *action)
 generate draw tree
AttachmentPtr findParameter (const FieldContainerType &type, UInt16 binding=0)
 conveniance function for finding a specific attachment in the volume kit
AttachmentPtr findParameter (UInt32 groupId, UInt16 binding=0)
 conveniance function for finding a specific attachment in the volume kit
void buildDrawStyleList (Window *win=NULL)
 aquires DrawStyleNames and insert them into the name field
void initializeClipObjects (DrawActionBase *action, const Matrix &volumeToWorld)
 Prepare the clip objects for this volume.
TextureManagergetTextureManager (void)
TextureManager::TextureMode getTextureMode (Window *window)
 determine which texture mode to use
void reload (void)
 reinitialize inventor volume
Field Set
*void setAppearance (const DVRAppearancePtr &value)
 Set the value of the DVRVolume::_sfAppearance field.
void setGeometry (const DVRGeometryPtr &value)
 Set the value of the DVRVolume::_sfGeometry field.
void setShader (const DVRShaderPtr &value)
 Set the value of the DVRVolume::_sfShader field.
void setRenderMaterial (const MaterialPtr &value)
 Set the value of the DVRVolume::_sfRenderMaterial field.
void setTextureStorage (const ChunkMaterialPtr &value)
 Set the value of the DVRVolume::_sfTextureStorage field.
Sync
*virtual void changed (BitVector whichField, UInt32 from)
 react to field changes
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
 output the instance for debug purposes
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFDVRAppearancePtrgetSFAppearance (void)
 Get the DVRVolume::_sfAppearance field.
SFDVRGeometryPtrgetSFGeometry (void)
 Get the DVRVolume::_sfGeometry field.
SFDVRShaderPtrgetSFShader (void)
 Get the DVRVolume::_sfShader field.
SFStringgetSFFileName (void)
 Get the DVRVolume::_sfFileName field.
SFReal32getSFSampling (void)
 Get the DVRVolume::_sfSampling field.
SFReal32getSFSamplingInteractive (void)
 Get the DVRVolume::_sfSamplingInteractive field.
SFReal32getSFBaseAlpha (void)
 Get the DVRVolume::_sfBaseAlpha field.
SFBoolgetSFDoTextures (void)
 Get the DVRVolume::_sfDoTextures field.
SFUInt32getSFBrickOverlap (void)
 Get the DVRVolume::_sfBrickOverlap field.
SFQBitgetSFTextures2D (void)
 Get the DVRVolume::_sfTextures2D field.
SFUInt16getSFBrickStaticMemoryMB (void)
 Get the DVRVolume::_sfBrickStaticMemoryMB field.
SFChunkMaterialPtrgetSFTextureStorage (void)
 Get the DVRVolume::_sfTextureStorage field.
DVRAppearancePtrgetAppearance (void)
 Get the value of the DVRVolume::_sfAppearance field.
const DVRAppearancePtrgetAppearance (void) const
 Get the value of the DVRVolume::_sfAppearance field.
DVRGeometryPtrgetGeometry (void)
 Get the value of the DVRVolume::_sfGeometry field.
const DVRGeometryPtrgetGeometry (void) const
 Get the value of the DVRVolume::_sfGeometry field.
DVRShaderPtrgetShader (void)
 Get the value of the DVRVolume::_sfShader field.
const DVRShaderPtrgetShader (void) const
 Get the value of the DVRVolume::_sfShader field.
std::string & getFileName (void)
 Get the value of the DVRVolume::_sfFileName field.
const std::string & getFileName (void) const
 Get the value of the DVRVolume::_sfFileName field.
Real32getSampling (void)
 Get the value of the DVRVolume::_sfSampling field.
const Real32getSampling (void) const
 Get the value of the DVRVolume::_sfSampling field.
Real32getSamplingInteractive (void)
 Get the value of the DVRVolume::_sfSamplingInteractive field.
const Real32getSamplingInteractive (void) const
 Get the value of the DVRVolume::_sfSamplingInteractive field.
Real32getBaseAlpha (void)
 Get the value of the DVRVolume::_sfBaseAlpha field.
const Real32getBaseAlpha (void) const
 Get the value of the DVRVolume::_sfBaseAlpha field.
bool & getDoTextures (void)
 Get the value of the DVRVolume::_sfDoTextures field.
const bool & getDoTextures (void) const
 Get the value of the DVRVolume::_sfDoTextures field.
UInt32getBrickOverlap (void)
 Get the value of the DVRVolume::_sfBrickOverlap field.
const UInt32getBrickOverlap (void) const
 Get the value of the DVRVolume::_sfBrickOverlap field.
QBitgetTextures2D (void)
 Get the value of the DVRVolume::_sfTextures2D field.
const QBitgetTextures2D (void) const
 Get the value of the DVRVolume::_sfTextures2D field.
UInt16getBrickStaticMemoryMB (void)
 Get the value of the DVRVolume::_sfBrickStaticMemoryMB field.
const UInt16getBrickStaticMemoryMB (void) const
 Get the value of the DVRVolume::_sfBrickStaticMemoryMB field.
ChunkMaterialPtrgetTextureStorage (void)
 Get the value of the DVRVolume::_sfTextureStorage field.
const ChunkMaterialPtrgetTextureStorage (void) const
 Get the value of the DVRVolume::_sfTextureStorage field.
Field Set
void setFileName (const std::string &value)
 Set the value of the DVRVolume::_sfFileName field.
void setSampling (const Real32 &value)
 Set the value of the DVRVolume::_sfSampling field.
void setSamplingInteractive (const Real32 &value)
 Set the value of the DVRVolume::_sfSamplingInteractive field.
void setBaseAlpha (const Real32 &value)
 Set the value of the DVRVolume::_sfBaseAlpha field.
void setDoTextures (const bool &value)
 Set the value of the DVRVolume::_sfDoTextures field.
void setBrickOverlap (const UInt32 &value)
 Set the value of the DVRVolume::_sfBrickOverlap field.
void setTextures2D (const QBit &value)
 Set the value of the DVRVolume::_sfTextures2D field.
void setBrickStaticMemoryMB (const UInt16 &value)
 Set the value of the DVRVolume::_sfBrickStaticMemoryMB field.
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
*virtual FieldContainerPtr shallowCopy (void) const
Parents
*MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume
*virtual void invalidateVolume (void)

Static Public Member Functions

Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static DVRVolumePtr create (void)
 create a new instance of the class
static DVRVolumePtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype

Static Public Attributes

static const osg::BitVector AppearanceFieldMask
static const osg::BitVector GeometryFieldMask
static const osg::BitVector ShaderFieldMask
static const osg::BitVector FileNameFieldMask
static const osg::BitVector SamplingFieldMask
static const osg::BitVector SamplingInteractiveFieldMask
static const osg::BitVector BaseAlphaFieldMask
static const osg::BitVector DoTexturesFieldMask
static const osg::BitVector BrickOverlapFieldMask
static const osg::BitVector Textures2DFieldMask
static const osg::BitVector BrickStaticMemoryMBFieldMask
static const osg::BitVector RenderMaterialFieldMask
static const osg::BitVector BrickingModeFieldMask
static const osg::BitVector BrickStaticSubdivisionFieldMask
static const osg::BitVector BrickMaxSizeFieldMask
static const osg::BitVector ShowBricksFieldMask
static const osg::BitVector DrawStyleFieldMask
static const osg::BitVector DrawStyleNamesFieldMask
static const osg::BitVector TextureStorageFieldMask
static const osg::BitVector MTInfluenceMask
static const BitVector ParentsFieldMask = (1 << NodeCore::ParentsFieldId )
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask
CoredNodePtr helper
*static const bool isNodeCore = true

Protected Member Functions

Constructors
DVRVolume (void)
 Constructor.
 DVRVolume (const DVRVolume &source)
 Copy Constructor.
Destructors
*virtual ~DVRVolume (void)
 Destructor.
Volume
*virtual void adjustVolume (Volume &volume)
 set the bounding volume of the node
Field Get
*SFMaterialPtrgetSFRenderMaterial (void)
 Get the DVRVolume::_sfRenderMaterial field.
SFUInt16getSFBrickingMode (void)
 Get the DVRVolume::_sfBrickingMode field.
SFVec3fgetSFBrickStaticSubdivision (void)
 Get the DVRVolume::_sfBrickStaticSubdivision field.
SFVec3fgetSFBrickMaxSize (void)
 Get the DVRVolume::_sfBrickMaxSize field.
SFBoolgetSFShowBricks (void)
 Get the DVRVolume::_sfShowBricks field.
SFUInt32getSFDrawStyle (void)
 Get the DVRVolume::_sfDrawStyle field.
MFStringgetMFDrawStyleNames (void)
 Get the DVRVolume::_mfDrawStyleNames field.
MaterialPtrgetRenderMaterial (void)
 Get the value of the DVRVolume::_sfRenderMaterial field.
const MaterialPtrgetRenderMaterial (void) const
 Get the value of the DVRVolume::_sfRenderMaterial field.
UInt16getBrickingMode (void)
 Get the value of the DVRVolume::_sfBrickingMode field.
const UInt16getBrickingMode (void) const
 Get the value of the DVRVolume::_sfBrickingMode field.
Vec3fgetBrickStaticSubdivision (void)
 Get the value of the DVRVolume::_sfBrickStaticSubdivision field.
const Vec3fgetBrickStaticSubdivision (void) const
 Get the value of the DVRVolume::_sfBrickStaticSubdivision field.
Vec3fgetBrickMaxSize (void)
 Get the value of the DVRVolume::_sfBrickMaxSize field.
const Vec3fgetBrickMaxSize (void) const
 Get the value of the DVRVolume::_sfBrickMaxSize field.
bool & getShowBricks (void)
 Get the value of the DVRVolume::_sfShowBricks field.
const bool & getShowBricks (void) const
 Get the value of the DVRVolume::_sfShowBricks field.
UInt32getDrawStyle (void)
 Get the value of the DVRVolume::_sfDrawStyle field.
const UInt32getDrawStyle (void) const
 Get the value of the DVRVolume::_sfDrawStyle field.
std::string & getDrawStyleNames (UInt32 index)
 Get the value of the index element the DVRVolume::_mfDrawStyleNames field.
MFStringgetDrawStyleNames (void)
 Get the DVRVolume::_mfDrawStyleNames field.
const MFStringgetDrawStyleNames (void) const
 Get the DVRVolume::_mfDrawStyleNames field.
Field Set
void setBrickingMode (const UInt16 &value)
 Set the value of the DVRVolume::_sfBrickingMode field.
void setBrickStaticSubdivision (const Vec3f &value)
 Set the value of the DVRVolume::_sfBrickStaticSubdivision field.
void setBrickMaxSize (const Vec3f &value)
 Set the value of the DVRVolume::_sfBrickMaxSize field.
void setShowBricks (const bool &value)
 Set the value of the DVRVolume::_sfShowBricks field.
void setDrawStyle (const UInt32 &value)
 Set the value of the DVRVolume::_sfDrawStyle field.
Sync
*void executeSyncImpl (DVRVolumeBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
void executeSyncImpl (NodeCore *pOther, const BitVector &whichField)
MT Destruction
*virtual void onDestroy (void)
Set / Get Parents
*void addParent (const NodePtr &parent)
void subParent (const NodePtr &parent)
Pointer
*NodeCorePtr getPtr (void) const
Transformation
*virtual void accumulateMatrix (Matrix &result)

Protected Attributes

Fields
*SFDVRAppearancePtr _sfAppearance
SFDVRGeometryPtr _sfGeometry
SFDVRShaderPtr _sfShader
SFString _sfFileName
SFReal32 _sfSampling
SFReal32 _sfSamplingInteractive
SFReal32 _sfBaseAlpha
SFBool _sfDoTextures
SFUInt32 _sfBrickOverlap
SFQBit _sfTextures2D
SFUInt16 _sfBrickStaticMemoryMB
SFMaterialPtr _sfRenderMaterial
SFUInt16 _sfBrickingMode
SFVec3f _sfBrickStaticSubdivision
SFVec3f _sfBrickMaxSize
SFBool _sfShowBricks
SFUInt32 _sfDrawStyle
MFString _mfDrawStyleNames
SFChunkMaterialPtr _sfTextureStorage
Fields
*MFNodePtr _parents

Static Protected Attributes

GL
*static UInt32 _extTex3D = Window::registerExtension( "GL_EXT_texture3D" )

Private Types

typedef DVRVolumeBase Inherited

Private Member Functions

void operator= (const DVRVolume &source)
void commonConstructor (void)
 used to initialize class to initialize member variables - method is called by every constructor
Action::ResultE intersect (Action *action)
 intersection test

Static Private Member Functions

static void initMethod (void)
 initialize the static features of the class, e.g. action callbacks

Private Attributes

Volume-Rendering
*bool drawStyleListValid
TextureManager textureManager
bool shadingInitialized
DVRClipper clipper

Friends

class FieldContainer
class DVRVolumeBase
class TextureManager
 ! FIXME:

Detailed Description

OpenSG NodeCore for direct volume rendering

Definition at line 73 of file OSGDVRVolume.h.


Member Typedef Documentation

typedef DVRVolumeBase osg::DVRVolume::Inherited [private]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 77 of file OSGDVRVolume.h.

typedef DVRVolumePtr osg::DVRVolumeBase::Ptr [inherited]
 

Definition at line 108 of file OSGDVRVolumeBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
AppearanceFieldId 
GeometryFieldId 
ShaderFieldId 
FileNameFieldId 
SamplingFieldId 
SamplingInteractiveFieldId 
BaseAlphaFieldId 
DoTexturesFieldId 
BrickOverlapFieldId 
Textures2DFieldId 
BrickStaticMemoryMBFieldId 
RenderMaterialFieldId 
BrickingModeFieldId 
BrickStaticSubdivisionFieldId 
BrickMaxSizeFieldId 
ShowBricksFieldId 
DrawStyleFieldId 
DrawStyleNamesFieldId 
TextureStorageFieldId 
NextFieldId 

Reimplemented from osg::NodeCore.

Definition at line 110 of file OSGDVRVolumeBase.h.

00111     {
00112         AppearanceFieldId             = Inherited::NextFieldId,
00113         GeometryFieldId               = AppearanceFieldId             + 1,
00114         ShaderFieldId                 = GeometryFieldId               + 1,
00115         FileNameFieldId               = ShaderFieldId                 + 1,
00116         SamplingFieldId               = FileNameFieldId               + 1,
00117         SamplingInteractiveFieldId    = SamplingFieldId               + 1,
00118         BaseAlphaFieldId              = SamplingInteractiveFieldId    + 1,
00119         DoTexturesFieldId             = BaseAlphaFieldId              + 1,
00120         BrickOverlapFieldId           = DoTexturesFieldId             + 1,
00121         Textures2DFieldId             = BrickOverlapFieldId           + 1,
00122         BrickStaticMemoryMBFieldId    = Textures2DFieldId             + 1,
00123         RenderMaterialFieldId         = BrickStaticMemoryMBFieldId    + 1,
00124         BrickingModeFieldId           = RenderMaterialFieldId         + 1,
00125         BrickStaticSubdivisionFieldId = BrickingModeFieldId           + 1,
00126         BrickMaxSizeFieldId           = BrickStaticSubdivisionFieldId + 1,
00127         ShowBricksFieldId             = BrickMaxSizeFieldId           + 1,
00128         DrawStyleFieldId              = ShowBricksFieldId             + 1,
00129         DrawStyleNamesFieldId         = DrawStyleFieldId              + 1,
00130         TextureStorageFieldId         = DrawStyleNamesFieldId         + 1,
00131         NextFieldId                   = TextureStorageFieldId         + 1
00132     };


Constructor & Destructor Documentation

DVRVolume::DVRVolume void   )  [protected]
 

Definition at line 81 of file OSGDVRVolume.cpp.

References commonConstructor(), and SINFO.

00081                          :
00082     Inherited         (     ),
00083     drawStyleListValid(false),
00084     textureManager    (this ),
00085     shadingInitialized(false)
00086 {
00087     SINFO << "DVRVolume::DVRVolume(void) this: " << this << std::endl;
00088 
00089     commonConstructor();
00090 }

DVRVolume::DVRVolume const DVRVolume source  )  [protected]
 

! FIXME: ! This is only performed during instantiation of real objects ! Which is only done with the copy constructor ! ! Otherwise my code cores - (maybe the copy constructor of FCPtr is ! broken?!)

Definition at line 93 of file OSGDVRVolume.cpp.

References osg::beginEditCP(), commonConstructor(), osg::SimpleMaterialBase::create(), osg::endEditCP(), osg::DVRVolumeBase::RenderMaterialFieldMask, setRenderMaterial(), setTextureStorage(), SINFO, and osg::DVRVolumeBase::TextureStorageFieldMask.

00093                                             :
00094     Inherited         (source),
00095     drawStyleListValid(false ),
00096     textureManager    (this  ),
00097     shadingInitialized(false )
00098 {
00099     SINFO << "DVRVolume::DVRVolume(const DVRVolume &source) this: "
00100           << this << std::endl;
00101 
00108 
00109     DVRVolumePtr ptr(*this);
00110     
00111     // Fake material for render action
00112     SimpleMaterialPtr m = SimpleMaterial::create();
00113 
00114     beginEditCP(m);
00115     {
00116         m->setTransparency(0.001f                );
00117         m->setLit         (false                 );
00118         m->setDiffuse     (Color3f(1.0, 1.0, 1.0));
00119         m->setAmbient     (Color3f(1.0, 1.0, 1.0));
00120     }
00121     endEditCP(m);
00122     
00123     // Chunk material as storage fieldcontainer for textures
00124     ChunkMaterialPtr cm = SimpleMaterial::create();
00125 
00126     // Add all
00127     beginEditCP(ptr, RenderMaterialFieldMask | TextureStorageFieldMask);
00128     {
00129         setRenderMaterial(m );
00130         setTextureStorage(cm);
00131     }
00132     endEditCP  (ptr, RenderMaterialFieldMask | TextureStorageFieldMask);
00133 
00134     commonConstructor();
00135 }

DVRVolume::~DVRVolume void   )  [protected, virtual]
 

Definition at line 142 of file OSGDVRVolume.cpp.

References osg::DVRVolumeBase::_sfAppearance, osg::DVRVolumeBase::_sfGeometry, osg::DVRVolumeBase::_sfRenderMaterial, osg::DVRVolumeBase::_sfShader, osg::DVRVolumeBase::_sfTextureStorage, osg::DVRVolumeBase::getAppearance(), osg::DVRVolumeBase::getRenderMaterial(), osg::DVRVolumeBase::getShader(), osg::DVRVolumeBase::getTextureStorage(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), SINFO, and osg::subRefCP().

00143 {
00144     SINFO << "~DVRVolume this: " 
00145           << this 
00146           << std::endl
00147           << "~DVRVolume appearance: "          
00148           << getAppearance() 
00149           << std::endl
00150           << "~DVRVolume::subRefCP(Appearance)" 
00151           << std::endl;
00152 
00153     subRefCP(_sfAppearance.getValue());
00154 
00155     SINFO << "~DVRVolume::subRefCP(Geometry)" 
00156           << std::endl;
00157 //        << "~DVRVolume geometry: " 
00158 //        << int(_sfGeometry.getValue()) 
00159 //        << std::endl;
00160 
00161     subRefCP(_sfGeometry.getValue());
00162 
00163     SINFO << "~DVRVolume::subRefCP(Shader)"                << std::endl;
00164     SINFO << "~DVRVolume shader: "          << getShader() << std::endl;
00165 
00166     subRefCP(_sfShader.getValue());
00167 
00168     SINFO << "~DVRVolume::subRefCP(RenderMaterial)" 
00169           << std::endl
00170           << "~DVRVolume renderMaterial: " 
00171           << getRenderMaterial() 
00172           << std::endl;
00173 
00174     subRefCP(_sfRenderMaterial.getValue());
00175 
00176     SINFO << "~DVRVolume::subRefCP(TextureStorage)"
00177           << std::endl
00178           << "~DVRVolume textureStorage: " 
00179           << getTextureStorage() 
00180           << std::endl;
00181 
00182     subRefCP(_sfTextureStorage.getValue());
00183 }


Member Function Documentation

void osg::DVRVolume::setAppearance const DVRAppearancePtr value  )  [inline]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 57 of file OSGDVRVolume.inl.

References osg::DVRVolumeBase::_sfAppearance, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::setRefdCP(), and SINFO.

00058 {
00059     SINFO << "DVRVolume::setAppearance this: " << this << std::endl;
00060 
00061 //  SINFO << "setRefdCP(" << _sfAppearance.getValue() 
00062 //        << ", " << value << std::endl;
00063 
00064     setRefdCP(_sfAppearance.getValue(), value);
00065 }

void osg::DVRVolume::setGeometry const DVRGeometryPtr value  )  [inline]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 68 of file OSGDVRVolume.inl.

References osg::DVRVolumeBase::_sfGeometry, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::setRefdCP(), and SINFO.

00069 {
00070     SINFO << "DVRVolume::setGeometry this: " << this << std::endl;
00071 //  SINFO << "setRefdCP(" << _sfGeometry.getValue() << ", " 
00072 //        << value << std::endl;
00073 
00074     setRefdCP(_sfGeometry.getValue(), value);
00075 }

void osg::DVRVolume::setShader const DVRShaderPtr value  )  [inline]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 78 of file OSGDVRVolume.inl.

References osg::DVRVolumeBase::_sfShader, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::setRefdCP(), and SINFO.

00079 {
00080     SINFO << "DVRVolume::setShader this: " << this << std::endl;
00081 //  SINFO << "setRefdCP(" << _sfShader.getValue() << ", " 
00082 //        << value << std::endl;
00083 
00084     setRefdCP(_sfShader.getValue(), value);
00085 }

void osg::DVRVolume::setRenderMaterial const MaterialPtr value  )  [inline]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 88 of file OSGDVRVolume.inl.

References osg::DVRVolumeBase::_sfRenderMaterial, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::setRefdCP(), and SINFO.

Referenced by DVRVolume().

00089 {
00090     SINFO << "DVRVolume::setRenderMaterial this: " 
00091           << this 
00092           << std::endl;
00093 
00094     SINFO << "setRefdCP(" 
00095           << _sfRenderMaterial.getValue() << ", " 
00096           << value << std::endl;
00097 
00098     SINFO << "---" << std::endl;
00099 
00100     setRefdCP(_sfRenderMaterial.getValue(), value);
00101 }

void osg::DVRVolume::setTextureStorage const ChunkMaterialPtr value  )  [inline]
 

Reimplemented from osg::DVRVolumeBase.

Definition at line 104 of file OSGDVRVolume.inl.

References osg::DVRVolumeBase::_sfTextureStorage, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::setRefdCP(), and SINFO.

Referenced by DVRVolume().

00105 {
00106     SINFO << "DVRVolume::setTextureStorage this: " 
00107           << this << std::endl;
00108     SINFO << "setRefdCP(" 
00109           << _sfTextureStorage.getValue() << ", " 
00110           << value << std::endl;
00111 
00112     SINFO << "---" << std::endl;
00113 
00114     setRefdCP(_sfTextureStorage.getValue(), value);
00115 }

void DVRVolume::changed BitVector  whichField,
UInt32  from
[virtual]
 

Reimplemented from osg::AttachmentContainer.

Definition at line 246 of file OSGDVRVolume.cpp.

References osg::DVRVolumeBase::_sfBrickStaticMemoryMB, osg::DVRVolumeBase::BrickStaticMemoryMBFieldMask, osg::AttachmentContainer::changed(), FDEBUG, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::SField< FieldTypeT, fieldNameSpace >::setValue(), osg::DVRVolumeBase::ShaderFieldMask, shadingInitialized, and osg::DVRVolumeBase::Textures2DFieldMask.

00247 {
00248     FDEBUG(("DVRVolume::changed\n"));
00249 
00250     if((whichField &