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

osg::DVRLookupTableBase Class Reference

DVRLookupTable Base Class.

#include <OSGDVRLookupTableBase.h>

Inheritance diagram for osg::DVRLookupTableBase:

osg::Attachment osg::FieldContainer osg::DVRLookupTable List of all members.

Public Types

typedef DVRLookupTablePtr Ptr
enum  {
  DimensionFieldId = Inherited::NextFieldId, SizeFieldId = DimensionFieldId + 1, ChannelFieldId = SizeFieldId + 1, DataFieldId = ChannelFieldId + 1,
  DataRFieldId = DataFieldId + 1, DataGFieldId = DataRFieldId + 1, DataBFieldId = DataGFieldId + 1, DataAFieldId = DataBFieldId + 1,
  TouchedFieldId = DataAFieldId + 1, NextFieldId = TouchedFieldId + 1
}

Public Member Functions

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)
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFUInt8getSFDimension (void)
 Get the DVRLookupTable::_sfDimension field.
MFUInt32getMFSize (void)
 Get the DVRLookupTable::_mfSize field.
SFUInt8getSFChannel (void)
 Get the DVRLookupTable::_sfChannel field.
MFUInt8getMFData (void)
 Get the DVRLookupTable::_mfData field.
MFReal32getMFDataR (void)
 Get the DVRLookupTable::_mfDataR field.
MFReal32getMFDataG (void)
 Get the DVRLookupTable::_mfDataG field.
MFReal32getMFDataB (void)
 Get the DVRLookupTable::_mfDataB field.
MFReal32getMFDataA (void)
 Get the DVRLookupTable::_mfDataA field.
SFBoolgetSFTouched (void)
 Get the DVRLookupTable::_sfTouched field.
UInt8getDimension (void)
 Get the value of the DVRLookupTable::_sfDimension field.
const UInt8getDimension (void) const
 Get the value of the DVRLookupTable::_sfDimension field.
UInt8getChannel (void)
 Get the value of the DVRLookupTable::_sfChannel field.
const UInt8getChannel (void) const
 Get the value of the DVRLookupTable::_sfChannel field.
bool & getTouched (void)
 Get the value of the DVRLookupTable::_sfTouched field.
const bool & getTouched (void) const
 Get the value of the DVRLookupTable::_sfTouched field.
UInt32getSize (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfSize field.
MFUInt32getSize (void)
 Get the DVRLookupTable::_mfSize field.
const MFUInt32getSize (void) const
 Get the DVRLookupTable::_mfSize field.
UInt8getData (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfData field.
MFUInt8getData (void)
 Get the DVRLookupTable::_mfData field.
const MFUInt8getData (void) const
 Get the DVRLookupTable::_mfData field.
Real32getDataR (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfDataR field.
MFReal32getDataR (void)
 Get the DVRLookupTable::_mfDataR field.
const MFReal32getDataR (void) const
 Get the DVRLookupTable::_mfDataR field.
Real32getDataG (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfDataG field.
MFReal32getDataG (void)
 Get the DVRLookupTable::_mfDataG field.
const MFReal32getDataG (void) const
 Get the DVRLookupTable::_mfDataG field.
Real32getDataB (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfDataB field.
MFReal32getDataB (void)
 Get the DVRLookupTable::_mfDataB field.
const MFReal32getDataB (void) const
 Get the DVRLookupTable::_mfDataB field.
Real32getDataA (const UInt32 index)
 Get the value of the index element the DVRLookupTable::_mfDataA field.
MFReal32getDataA (void)
 Get the DVRLookupTable::_mfDataA field.
const MFReal32getDataA (void) const
 Get the DVRLookupTable::_mfDataA field.
Field Set
*void setDimension (const UInt8 &value)
 Set the value of the DVRLookupTable::_sfDimension field.
void setChannel (const UInt8 &value)
 Set the value of the DVRLookupTable::_sfChannel field.
void setTouched (const bool &value)
 Set the value of the DVRLookupTable::_sfTouched 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
*MFFieldContainerPtrgetParents (void)
const MFFieldContainerPtrgetParents (void) const
MFFieldContainerPtrgetMFParents (void)
void addParent (FieldContainerPtr parent)
void subParent (FieldContainerPtr parent)
Int32 findParent (FieldContainerPtr parent)
Parents
*SFBoolgetInternal (void)
const SFBoolgetInternal (void) const
SFBoolgetSFInternal (void)
void setInternal (bool bVal)
Dump
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
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)
Changed
*virtual void changed (BitVector whichField, UInt32 origin)

Static Public Member Functions

Get Class Type Information
static UInt16 getClassGroupId (void)
Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static DVRLookupTablePtr create (void)
 create a new instance of the class
static DVRLookupTablePtr 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 DimensionFieldMask
static const osg::BitVector SizeFieldMask
static const osg::BitVector ChannelFieldMask
static const osg::BitVector DataFieldMask
static const osg::BitVector DataRFieldMask
static const osg::BitVector DataGFieldMask
static const osg::BitVector DataBFieldMask
static const osg::BitVector DataAFieldMask
static const osg::BitVector TouchedFieldMask
static const osg::BitVector MTInfluenceMask
static const BitVector InternalFieldMask = (1 << Attachment::InternalFieldId)
static const BitVector ParentsFieldMask = (1 << Attachment::ParentsFieldId)
static const BitVector NextFieldMask
CoredNodePtr helper
static const bool isNodeCore = false
CoredNodePtr helper
static const bool isNodeCore = false

Protected Member Functions

Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
Constructors
DVRLookupTableBase (void)
 DVRLookupTableBase (const DVRLookupTableBase &source)
Destructors
*virtual ~DVRLookupTableBase (void)
Sync
*void executeSyncImpl (DVRLookupTableBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
MT Destruction
*virtual void onDestroy (void)
Sync
void executeSyncImpl (Attachment *pOther, const BitVector &whichField)
Sync
void executeSyncImpl (FieldContainer *pOther, const BitVector &whichField)
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)
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

Member
*UInt32 _shares
Fields
*SFUInt8 _sfDimension
MFUInt32 _mfSize
SFUInt8 _sfChannel
MFUInt8 _mfData
MFReal32 _mfDataR
MFReal32 _mfDataG
MFReal32 _mfDataB
MFReal32 _mfDataA
SFBool _sfTouched
Fields
*SFBool _sfInternal
MFFieldContainerPtr _parents
Member
*UInt32 _shares

Private Types

typedef Attachment Inherited

Private Member Functions

void operator= (const DVRLookupTableBase &source)

Static Private Attributes

static FieldDescription_desc []
 DVRLookupTable description.
static FieldContainerType _type

Friends

class FieldContainer

Detailed Description

Definition at line 89 of file OSGDVRLookupTableBase.h.


Member Typedef Documentation

typedef Attachment osg::DVRLookupTableBase::Inherited [private]
 

Reimplemented from osg::Attachment.

Reimplemented in osg::DVRLookupTable.

Definition at line 93 of file OSGDVRLookupTableBase.h.

typedef DVRLookupTablePtr osg::DVRLookupTableBase::Ptr
 

Definition at line 98 of file OSGDVRLookupTableBase.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
DimensionFieldId 
SizeFieldId 
ChannelFieldId 
DataFieldId 
DataRFieldId 
DataGFieldId 
DataBFieldId 
DataAFieldId 
TouchedFieldId 
NextFieldId 

Reimplemented from osg::Attachment.

Definition at line 100 of file OSGDVRLookupTableBase.h.

00101     {
00102         DimensionFieldId = Inherited::NextFieldId,
00103         SizeFieldId      = DimensionFieldId + 1,
00104         ChannelFieldId   = SizeFieldId      + 1,
00105         DataFieldId      = ChannelFieldId   + 1,
00106         DataRFieldId     = DataFieldId      + 1,
00107         DataGFieldId     = DataRFieldId     + 1,
00108         DataBFieldId     = DataGFieldId     + 1,
00109         DataAFieldId     = DataBFieldId     + 1,
00110         TouchedFieldId   = DataAFieldId     + 1,
00111         NextFieldId      = TouchedFieldId   + 1
00112     };


Constructor & Destructor Documentation

DVRLookupTableBase::DVRLookupTableBase void   )  [protected]
 

Definition at line 258 of file OSGDVRLookupTableBase.cpp.

00258                                            :
00259     _sfDimension              (UInt8(1)), 
00260     _mfSize                   (), 
00261     _sfChannel                (UInt8(4)), 
00262     _mfData                   (), 
00263     _mfDataR                  (), 
00264     _mfDataG                  (), 
00265     _mfDataB                  (), 
00266     _mfDataA                  (), 
00267     _sfTouched                (bool(false)), 
00268     Inherited() 
00269 {
00270 }

DVRLookupTableBase::DVRLookupTableBase const DVRLookupTableBase source  )  [protected]
 

Definition at line 276 of file OSGDVRLookupTableBase.cpp.

00276                                                                        :
00277     _sfDimension              (source._sfDimension              ), 
00278     _mfSize                   (source._mfSize                   ), 
00279     _sfChannel                (source._sfChannel                ), 
00280     _mfData                   (source._mfData                   ), 
00281     _mfDataR                  (source._mfDataR                  ), 
00282     _mfDataG                  (source._mfDataG                  ), 
00283     _mfDataB                  (source._mfDataB                  ), 
00284     _mfDataA                  (source._mfDataA                  ), 
00285     _sfTouched                (source._sfTouched                ), 
00286     Inherited                 (source)
00287 {
00288 }

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

Definition at line 292 of file OSGDVRLookupTableBase.cpp.

00293 {
00294 }


Member Function Documentation

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

Reimplemented from osg::Attachment.

Definition at line 58 of file OSGDVRLookupTableBase.inl.

References _type.

Referenced by create().

00059 {
00060     return _type; 
00061 } 

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

Reimplemented from osg::Attachment.

Definition at line 65 of file OSGDVRLookupTableBase.inl.

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

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

FieldContainerType & DVRLookupTableBase::getType void   )  [virtual]
 

Reimplemented from osg::Attachment.

Definition at line 194 of file OSGDVRLookupTableBase.cpp.

References _type.

00195 {
00196     return _type; 
00197 } 

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

Reimplemented from osg::Attachment.

Definition at line 199 of file OSGDVRLookupTableBase.cpp.

References _type.

00200 {
00201     return _type;
00202 } 

UInt32 DVRLookupTableBase::getContainerSize void   )  const [virtual]
 

Reimplemented from osg::Attachment.

Definition at line 214 of file OSGDVRLookupTableBase.cpp.

00215 { 
00216     return sizeof(DVRLookupTable); 
00217 }

SFUInt8 * osg::DVRLookupTableBase::getSFDimension void   )  [inline]
 

Definition at line 101 of file OSGDVRLookupTableBase.inl.

References _sfDimension.

00102 {
00103     return &_sfDimension;
00104 }

MFUInt32 * osg::DVRLookupTableBase::getMFSize void   )  [inline]
 

Definition at line 108 of file OSGDVRLookupTableBase.inl.

References _mfSize.

00109 {
00110     return &_mfSize;
00111 }

SFUInt8 * osg::DVRLookupTableBase::getSFChannel void   )  [inline]
 

Definition at line 115 of file OSGDVRLookupTableBase.inl.

References _sfChannel.

00116 {
00117     return &_sfChannel;
00118 }

MFUInt8 * osg::DVRLookupTableBase::getMFData void   )  [inline]
 

Definition at line 122 of file OSGDVRLookupTableBase.inl.

References _mfData.

00123 {
00124     return &_mfData;
00125 }

MFReal32 * osg::DVRLookupTableBase::getMFDataR void   )  [inline]
 

Definition at line 129 of file OSGDVRLookupTableBase.inl.

References _mfDataR.

00130 {
00131     return &_mfDataR;
00132 }

MFReal32 * osg::DVRLookupTableBase::getMFDataG void   )  [inline]
 

Definition at line 136 of file OSGDVRLookupTableBase.inl.

References _mfDataG.

00137 {
00138     return &_mfDataG;
00139 }

MFReal32 * osg::DVRLookupTableBase::getMFDataB void   )  [inline]
 

Definition at line 143 of file OSGDVRLookupTableBase.inl.

References _mfDataB.

00144 {
00145     return &_mfDataB;
00146 }

MFReal32 * osg::DVRLookupTableBase::getMFDataA void   )  [inline]
 

Definition at line 150 of file OSGDVRLookupTableBase.inl.

References _mfDataA.

00151 {
00152     return &_mfDataA;
00153 }

SFBool * osg::DVRLookupTableBase::getSFTouched void   )  [inline]
 

Definition at line 157 of file OSGDVRLookupTableBase.inl.

References _sfTouched.

00158 {
00159     return &_sfTouched;
00160 }

UInt8 & osg::DVRLookupTableBase::getDimension void   )  [inline]
 

Definition at line 165 of file OSGDVRLookupTableBase.inl.

References _sfDimension, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::DVRLookupTable::dump().

00166 {
00167     return _sfDimension.getValue();
00168 }

const UInt8 & osg::DVRLookupTableBase::getDimension void   )  const [inline]
 

Definition at line 172 of file OSGDVRLookupTableBase.inl.

References _sfDimension, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00173 {
00174     return _sfDimension.getValue();
00175 }

UInt8 & osg::DVRLookupTableBase::getChannel void   )  [inline]
 

Definition at line 186 of file OSGDVRLookupTableBase.inl.

References _sfChannel, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

Referenced by osg::DVRLookupTable::dump().

00187 {
00188     return _sfChannel.getValue();
00189 }

const UInt8 & osg::DVRLookupTableBase::getChannel void   )  const [inline]
 

Definition at line 193 of file OSGDVRLookupTableBase.inl.

References _sfChannel, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00194 {
00195     return _sfChannel.getValue();
00196 }

bool & osg::DVRLookupTableBase::getTouched void   )  [inline]
 

Definition at line 207 of file OSGDVRLookupTableBase.inl.

References _sfTouched, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00208 {
00209     return _sfTouched.getValue();
00210 }

const bool & osg::DVRLookupTableBase::getTouched void   )  const [inline]
 

Definition at line 214 of file OSGDVRLookupTableBase.inl.

References _sfTouched, and osg::SField< FieldTypeT, fieldNameSpace >::getValue().

00215 {
00216     return _sfTouched.getValue();
00217 }

UInt32 & osg::DVRLookupTableBase::getSize const UInt32  index  )  [inline]
 

Definition at line 229 of file OSGDVRLookupTableBase.inl.

References _mfSize.

00230 {
00231     return _mfSize[index];
00232 }

MFUInt32 & osg::DVRLookupTableBase::getSize void   )  [inline]
 

Definition at line 236 of file OSGDVRLookupTableBase.inl.

References _mfSize.

00237 {
00238     return _mfSize;
00239 }

const MFUInt32 & osg::DVRLookupTableBase::getSize void   )  const [inline]
 

Definition at line 243 of file OSGDVRLookupTableBase.inl.

References _mfSize.

00244 {
00245     return _mfSize;
00246 }

UInt8 & osg::DVRLookupTableBase::getData const UInt32  index  )  [inline]
 

Definition at line 250 of file OSGDVRLookupTableBase.inl.

References _mfData.

00251 {
00252     return _mfData[index];
00253 }

MFUInt8 & osg::DVRLookupTableBase::getData void   )  [inline]
 

Definition at line 257 of file OSGDVRLookupTableBase.inl.

References _mfData.

00258 {
00259     return _mfData;
00260 }

const MFUInt8 & osg::DVRLookupTableBase::getData void   )  const [inline]
 

Definition at line 264 of file OSGDVRLookupTableBase.inl.

References _mfData.

00265 {
00266     return _mfData;
00267 }

Real32 & osg::DVRLookupTableBase::getDataR const UInt32  index  )  [inline]
 

Definition at line 271 of file OSGDVRLookupTableBase.inl.

References _mfDataR.

00272 {
00273     return _mfDataR[index];
00274 }

MFReal32 & osg::DVRLookupTableBase::getDataR void   )  [inline]
 

Definition at line 278 of file OSGDVRLookupTableBase.inl.

References _mfDataR.

00279 {
00280     return _mfDataR;
00281 }

const MFReal32 & osg::DVRLookupTableBase::getDataR void   )  const [inline]
 

Definition at line 285 of file OSGDVRLookupTableBase.inl.

References _mfDataR.

00286 {
00287     return _mfDataR;
00288 }

Real32 & osg::DVRLookupTableBase::getDataG const UInt32  index  )  [inline]
 

Definition at line 292 of file OSGDVRLookupTableBase.inl.

References _mfDataG.

00293 {
00294     return _mfDataG[index];
00295 }

MFReal32 & osg::DVRLookupTableBase::getDataG void   )  [inline]
 

Definition at line 299 of file OSGDVRLookupTableBase.inl.

References _mfDataG.

00300 {
00301     return _mfDataG;
00302 }

const MFReal32 & osg::DVRLookupTableBase::getDataG void   )  const [inline]
 

Definition at line 306 of file OSGDVRLookupTableBase.inl.

References _mfDataG.

00307 {
00308     return _mfDataG;
00309 }

Real32 & osg::DVRLookupTableBase::getDataB const UInt32  index  )  [inline]
 

Definition at line 313 of file