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

osg::FieldDataTraits< ParticleBSPTree > Struct Template Reference
[Field Data Traits]

#include <OSGParticleBSP.h>

Inheritance diagram for osg::FieldDataTraits< ParticleBSPTree >:

osg::FieldTraitsRecurseBase< ParticleBSPTree > osg::FieldTraits List of all members.

Public Types

enum  { StringConvertable }
typedef osgIF< uiTest==1,
const ParticleBSPTree, const
ParticleBSPTree & >::_IRet 
ArgumentType
enum  { ToStringConvertable = 0x01, FromStringConvertable = 0x02 }

Static Public Member Functions

static DataTypegetType (void)
static Char8getSName (void)
static Char8getMName (void)
static ParticleBSPTree getDefault (void)
static bool getFromString (ParticleBSPTree &outVal, const Char8 *&inVal)
static void putToString (const ParticleBSPTree &inVal, std::string &outVal)
static UInt32 getBinSize (const ParticleBSPTree &oObject)
static void copyToBin (BinaryDataHandler &pMem, const ParticleBSPTree &oObject)
static void copyFromBin (BinaryDataHandler &pMem, ParticleBSPTree &oObject)
static UInt32 getBinSize (const ParticleBSPTree *pObjectStore, UInt32 uiNumObjects)
static void copyToBin (BinaryDataHandler &pMem, const ParticleBSPTree *pObjectStore, UInt32 uiNumObjects)
static void copyFromBin (BinaryDataHandler &pMem, ParticleBSPTree *pObjectStore, UInt32 uiNumObjects)
static bool getFromString (ParticleBSPTree &outVal, const Char8 *inVal)
static const Char8getPName (void)

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits< ParticleBSPTree >

Definition at line 230 of file OSGParticleBSP.h.


Member Typedef Documentation

typedef osgIF<uiTest == 1, const ParticleBSPTree , const ParticleBSPTree & >::_IRet osg::FieldTraitsRecurseBase< ParticleBSPTree >::ArgumentType [inherited]
 

Definition at line 122 of file OSGFieldDataType.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
StringConvertable 

Definition at line 235 of file OSGParticleBSP.h.

anonymous enum [inherited]
 

Enumerator:
ToStringConvertable 
FromStringConvertable 

Definition at line 69 of file OSGFieldDataType.h.

00070     {
00071         ToStringConvertable   = 0x01,
00072         FromStringConvertable = 0x02
00073     };


Member Function Documentation

static DataType& osg::FieldDataTraits< ParticleBSPTree >::getType void   )  [inline, static]
 

Definition at line 238 of file OSGParticleBSP.h.

00238 { return _type;          }

static Char8* osg::FieldDataTraits< ParticleBSPTree >::getSName void   )  [inline, static]
 

Definition at line 240 of file OSGParticleBSP.h.

00240 { return "SFParticleBSPTree"; }

static Char8* osg::FieldDataTraits< ParticleBSPTree >::getMName void   )  [inline, static]
 

Definition at line 241 of file OSGParticleBSP.h.

00241 { return "MFParticleBSPTree"; }

static ParticleBSPTree osg::FieldDataTraits< ParticleBSPTree >::getDefault void   )  [inline, static]
 

Definition at line 243 of file OSGParticleBSP.h.

00243 { return ParticleBSPTree();   }

static bool osg::FieldDataTraits< ParticleBSPTree >::getFromString ParticleBSPTree outVal,
const Char8 *&  inVal
[inline, static]
 

Definition at line 245 of file OSGParticleBSP.h.

References osg::ParticleBSPTree::getFromString().

00247     {
00248         return outVal.getFromString(inVal);
00249     }

static void osg::FieldDataTraits< ParticleBSPTree >::putToString const ParticleBSPTree inVal,
std::string &  outVal
[inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< ParticleBSPTree >.

Definition at line 251 of file OSGParticleBSP.h.

References osg::ParticleBSPTree::putToString().

00253     {
00254         inVal.putToString(outVal);
00255     }

static UInt32 osg::FieldDataTraits< ParticleBSPTree >::getBinSize const ParticleBSPTree oObject  )  [inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< ParticleBSPTree >.

Definition at line 257 of file OSGParticleBSP.h.

References osg::ParticleBSPTree::getBinSize().

00258     {
00259         return oObject.getBinSize();
00260     }

static void osg::FieldDataTraits< ParticleBSPTree >::copyToBin BinaryDataHandler pMem,
const ParticleBSPTree oObject
[inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< ParticleBSPTree >.

Definition at line 262 of file OSGParticleBSP.h.

References osg::ParticleBSPTree::copyToBin().

00264     {
00265        oObject.copyToBin(pMem);
00266     }

static void osg::FieldDataTraits< ParticleBSPTree >::copyFromBin BinaryDataHandler pMem,
ParticleBSPTree oObject
[inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< ParticleBSPTree >.

Definition at line 268 of file OSGParticleBSP.h.

References osg::ParticleBSPTree::copyFromBin().

00270     {
00271         oObject.copyFromBin(pMem);
00272     }

static UInt32 osg::FieldTraitsRecurseBase< ParticleBSPTree >::getBinSize const ParticleBSPTree pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 141 of file OSGFieldDataType.h.

00143     {
00144         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00145 
00146         UInt32 size = 0;
00147 
00148         for(UInt32 i = 0; i < uiNumObjects; ++i)
00149         {
00150             size += MappedTrait::getBinSize(pObjectStore[i]);
00151         }
00152 
00153         return size;
00154     }

static void osg::FieldTraitsRecurseBase< ParticleBSPTree >::copyToBin BinaryDataHandler pMem,
const ParticleBSPTree pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 169 of file OSGFieldDataType.h.

00172     {
00173         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00174 
00175         // defaut: copy each element
00176         for(UInt32 i = 0; i < uiNumObjects; ++i)
00177         {
00178             MappedTrait::copyToBin(pMem, pObjectStore[i]);
00179         }
00180     }

static void osg::FieldTraitsRecurseBase< ParticleBSPTree >::copyFromBin BinaryDataHandler pMem,
ParticleBSPTree pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 196 of file OSGFieldDataType.h.

00199     {
00200         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00201 
00202         // defaut: copy each element
00203         for(UInt32 i = 0; i < uiNumObjects; ++i)
00204         {
00205             MappedTrait::copyFromBin(pMem, pObjectStore[i]);
00206         }
00207     }

static bool osg::FieldTraitsRecurseBase< ParticleBSPTree >::getFromString ParticleBSPTree outVal,
const Char8 inVal
[inline, static, inherited]
 

Definition at line 209 of file OSGFieldDataType.h.

00211     {
00212         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00213 
00214         return MappedTrait::getFromString(outVal, inVal);
00215     }

static const Char8* osg::FieldTraits::getPName void   )  [inline, static, inherited]
 

Definition at line 75 of file OSGFieldDataType.h.

00075 { return "Field"; }


Member Data Documentation

DataType osg::FieldDataTraits< ParticleBSPTree >::_type [static]
 

const UInt32 osg::FieldTraitsRecurseBase< ParticleBSPTree >::uiTest [static, inherited]
 

Definition at line 117 of file OSGFieldDataType.h.


The documentation for this struct was generated from the following files:
Generated on Thu Aug 25 04:15:43 2005 for OpenSG by  doxygen 1.4.3