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

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

#include <OSGVecFieldDataType.h>

Inheritance diagram for osg::FieldDataTraits< Pnt2ld >:

osg::FieldTraitsRecurseVecStore2Base< Pnt2ld > osg::FieldTraitsRecurseVecStoreBase< Pnt2ld > osg::FieldTraits List of all members.

Public Types

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

Static Public Member Functions

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

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits< Pnt2ld >

Definition at line 2231 of file OSGVecFieldDataType.h.


Member Typedef Documentation

typedef FieldDataTraits<Pnt2ld> osg::FieldDataTraits< Pnt2ld >::Self
 

Definition at line 2235 of file OSGVecFieldDataType.h.

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

Definition at line 78 of file OSGVecFieldDataType.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
StringConvertable 

Definition at line 2238 of file OSGVecFieldDataType.h.

02238                      { StringConvertable = Self::ToStringConvertable   | 
02239                                            Self::FromStringConvertable };

anonymous enum
 

Enumerator:
bHasParent 

Definition at line 2241 of file OSGVecFieldDataType.h.

02241 { bHasParent        = 0x01                        };

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< Pnt2ld >::getType void   )  [inline, static]
 

Definition at line 2243 of file OSGVecFieldDataType.h.

02243 { return _type;               }

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

Definition at line 2245 of file OSGVecFieldDataType.h.

02245 { return "SFPnt2ld";           }

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

Definition at line 2246 of file OSGVecFieldDataType.h.

02246 { return "MFPnt2ld";           }

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

Definition at line 2248 of file OSGVecFieldDataType.h.

02248 { return Pnt2ld();             }

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

Definition at line 2250 of file OSGVecFieldDataType.h.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::setValueFromCString().

02252     {
02253         outVal.setValueFromCString(inVal);
02254         
02255         return true;
02256     }

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

Definition at line 2258 of file OSGVecFieldDataType.h.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::getValues().

02260     {
02261         typedef TypeTraits<Pnt2ld::ValueType> TypeTrait;
02262         
02263         outStr.assign(TypeTrait::putToString((inVal.getValues())[0]));
02264         outStr.append("  ");
02265         outStr.append(TypeTrait::putToString((inVal.getValues())[1]));
02266     }

static UInt32 osg::FieldTraitsRecurseVecStoreBase< Pnt2ld >::getBinSize const Pnt2ld  )  [inline, static, inherited]
 

Definition at line 86 of file OSGVecFieldDataType.h.

00087     {
00088         return sizeof(ValueTypeT);
00089     }

static UInt32 osg::FieldTraitsRecurseVecStoreBase< Pnt2ld >::getBinSize const Pnt2ld ,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 91 of file OSGVecFieldDataType.h.

00093     {
00094         return sizeof(ValueTypeT) * uiNumObjects;
00095     }

static void osg::FieldTraitsRecurseVecStoreBase< Pnt2ld >::copyToBin BinaryDataHandler pMem,
const Pnt2ld oObject
[inline, static, inherited]
 

Definition at line 97 of file OSGVecFieldDataType.h.

00099     {
00100         pMem.putValues(&oObject[0], ValueTypeT::_iSize);
00101     }

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

Definition at line 103 of file OSGVecFieldDataType.h.

00106     {
00107         pMem.putValues(&pObjectStore[0][0], ValueTypeT::_iSize*uiNumObjects);
00108     }

static void osg::FieldTraitsRecurseVecStoreBase< Pnt2ld >::copyFromBin BinaryDataHandler pMem,
Pnt2ld oObject
[inline, static, inherited]
 

Definition at line 110 of file OSGVecFieldDataType.h.

00112     {
00113         pMem.getValues(&oObject[0], ValueTypeT::_iSize);
00114     }

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

Definition at line 116 of file OSGVecFieldDataType.h.

00119     {
00120         pMem.getValues(&pObjectStore[0][0], ValueTypeT::_iSize*uiNumObjects);
00121     }

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< Pnt2ld >::_type [static]
 

const UInt32 osg::FieldTraitsRecurseVecStoreBase< Pnt2ld >::uiTest [static, inherited]
 

Definition at line 73 of file OSGVecFieldDataType.h.


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