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

osg::DVRVolumeBase Class Reference

DVRVolume Base Class.

#include <OSGDVRVolumeBase.h>

Inheritance diagram for osg::DVRVolumeBase:

osg::NodeCore osg::AttachmentContainer osg::FieldContainer osg::DVRVolume 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

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 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 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.
void setTextureStorage (const ChunkMaterialPtr &value)
 Set the value of the DVRVolume::_sfTextureStorage 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)
Dump
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
Volume
*virtual void invalidateVolume (void)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Changed
*virtual void changed (BitVector whichField, UInt32 origin)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)

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
Get Class Type Information
static UInt16 getClassGroupId (void)

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
DVRVolumeBase (void)
 DVRVolumeBase (const DVRVolumeBase &source)
Destructors
*virtual ~DVRVolumeBase (void)
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 setRenderMaterial (const MaterialPtr &value)
 Set the value of the DVRVolume::_sfRenderMaterial field.
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)
MT Destruction
*virtual void onDestroy (void)
Set / Get Parents
*void addParent (const NodePtr &parent)
void subParent (const NodePtr &parent)
Pointer
*NodeCorePtr getPtr (void) const
Pointer
*AttachmentContainerPtr getPtr (void)
Sync
void executeSyncImpl (NodeCore *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (AttachmentContainer *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
Transformation
*virtual void accumulateMatrix (Matrix &result)
Volume
*virtual void adjustVolume (Volume &volume)
MT Edit
template<class FieldTypeT>
*void beginEditX (const BitVector &whichField, FieldTypeT &field)
template<class FieldTypeT>
void endEditX (const BitVector &whichField, FieldTypeT &field)
MT Construction
*void onCreate (const FieldContainer *source=NULL)
void onCreateAspect (const FieldContainer *aspect0, const FieldContainer *source=NULL)

Static Protected Member Functions

Create Fieldcontainer
template<class ObjectPtrT>
*static void newPtr (ObjectPtrT &result, const typename ObjectPtrT::StoredObjectType *prototypeP)
template<class ObjectPtrT>
static void newPtr (ObjectPtrT &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
Fields
*SFAttachmentMap _attachmentMap
Member
*UInt32 _shares

Private Types

typedef NodeCore Inherited

Private Member Functions

void operator= (const DVRVolumeBase &source)

Static Private Attributes

static FieldDescription_desc []
 DVRVolume description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 99 of file OSGDVRVolumeBase.h.


Member Typedef Documentation

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

Reimplemented from osg::NodeCore.

Reimplemented in osg::DVRVolume.

Definition at line 103 of file OSGDVRVolumeBase.h.

typedef DVRVolumePtr osg::DVRVolumeBase::Ptr
 

Definition at line 108 of file OSGDVRVolumeBase.h.


Member Enumeration Documentation

anonymous enum
 

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

DVRVolumeBase::DVRVolumeBase void   )  [protected]
 

Definition at line 364 of file OSGDVRVolumeBase.cpp.

DVRVolumeBase::DVRVolumeBase const DVRVolumeBase source  )  [protected]
 

Definition at line 392 of file OSGDVRVolumeBase.cpp.

00392                                                         :
00393     _sfAppearance             (source._sfAppearance             ), 
00394     _sfGeometry               (source._sfGeometry               ), 
00395     _sfShader                 (source._sfShader                 ), 
00396     _sfFileName               (source._sfFileName               ), 
00397     _sfSampling               (source._sfSampling               ), 
00398     _sfSamplingInteractive    (source._sfSamplingInteractive    ), 
00399     _sfBaseAlpha              (source._sfBaseAlpha              ), 
00400     _sfDoTextures             (source._sfDoTextures             ), 
00401     _sfBrickOverlap           (source._sfBrickOverlap           ), 
00402     _sfTextures2D             (source._sfTextures2D             ), 
00403     _sfBrickStaticMemoryMB    (source._sfBrickStaticMemoryMB    ), 
00404     _sfRenderMaterial         (source._sfRenderMaterial         ), 
00405     _sfBrickingMode           (source._sfBrickingMode           ), 
00406     _sfBrickStaticSubdivision (source._sfBrickStaticSubdivision ), 
00407     _sfBrickMaxSize           (source._sfBrickMaxSize           ), 
00408     _sfShowBricks             (source._sfShowBricks             ), 
00409     _sfDrawStyle              (source._sfDrawStyle              ), 
00410     _mfDrawStyleNames         (source._mfDrawStyleNames         ), 
00411     _sfTextureStorage         (source._sfTextureStorage         ), 
00412     Inherited                 (source)
00413 {
00414 }

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

Definition at line 418 of file OSGDVRVolumeBase.cpp.

00419 {
00420 }


Member Function Documentation

osg::FieldContainerType & osg::DVRVolumeBase::getClassType void   )  [inline, static]
 

Reimplemented from osg::NodeCore.

Definition at line 58 of file OSGDVRVolumeBase.inl.

References _type.

Referenced by create(), and osg::DVRVolume::initMethod().

00059 {
00060     return _type; 
00061 } 

osg::UInt32 osg::DVRVolumeBase::getClassTypeId void   )  [inline, static]
 

Reimplemented from osg::NodeCore.

Definition at line 65 of file OSGDVRVolumeBase.inl.

References _type, and osg::TypeBase::getId().

00066 {
00067     return _type.getId(); 
00068 } 

FieldContainerType & DVRVolumeBase::getType void   )  [virtual]
 

Reimplemented from osg::NodeCore.

Definition at line 305 of file OSGDVRVolumeBase.cpp.

References _type.

Referenced by osg::DVRVolume::draw().

00306 {
00307     return _type; 
00308 } 

const FieldContainerType & DVRVolumeBase::getType void   )  const [virtual]
 

Reimplemented from osg::NodeCore.

Definition at line 310 of file OSGDVRVolumeBase.cpp.

References _type.

00311 {
00312     return _type;
00313 } 

UInt32 DVRVolumeBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::NodeCore.

Definition at line 325 of file OSGDVRVolumeBase.cpp.

00326 { 
00327     return sizeof(DVRVolume); 
00328 }

SFDVRAppearancePtr * osg::DVRVolumeBase::getSFAppearance void   )  [inline]
 

Definition at line 101 of file OSGDVRVolumeBase.inl.

References _sfAppearance.

00102 {
00103     return &_sfAppearance;
00104 }

SFDVRGeometryPtr * osg::DVRVolumeBase::getSFGeometry void   )  [inline]
 

Definition at line 108 of file OSGDVRVolumeBase.inl.

References _sfGeometry.

00109 {
00110     return &_sfGeometry;
00111 }

SFDVRShaderPtr * osg::DVRVolumeBase::getSFShader void   )  [inline]
 

Definition at line 115 of file OSGDVRVolumeBase.inl.

References _sfShader.

00116 {
00117     return &_sfShader;
00118 }

SFString * osg::DVRVolumeBase::getSFFileName void   )  [inline]
 

Definition at line 122 of file OSGDVRVolumeBase.inl.

References _sfFileName.

00123 {
00124     return &_sfFileName;
00125 }

SFReal32 * osg::DVRVolumeBase::getSFSampling void   )  [inline]
 

Definition at line 129 of file OSGDVRVolumeBase.inl.

References _sfSampling.

00130 {
00131     return &_sfSampling;
00132 }

SFReal32 * osg::DVRVolumeBase::getSFSamplingInteractive void   )  [inline]
 

Definition at line 136 of file OSGDVRVolumeBase.inl.

References _sfSamplingInteractive.

00137 {
00138     return &_sfSamplingInteractive;
00139 }