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

#include <OSGVecFieldDataType.h>

Inheritance diagram for osg::FieldDataTraits< Vec4us >:
osg::FieldTraitsRecurseVecStore2Base< Vec4us > osg::FieldTraitsRecurseVecStoreBase< Vec4us > osg::FieldTraits

List of all members.

Public Types

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

Static Public Member Functions

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

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits< Vec4us >

Definition at line 595 of file OSGVecFieldDataType.h.


Member Typedef Documentation

Definition at line 599 of file OSGVecFieldDataType.h.

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

Definition at line 78 of file OSGVecFieldDataType.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
StringConvertable 

Definition at line 602 of file OSGVecFieldDataType.h.

00602                      { StringConvertable = Self::ToStringConvertable   | 
00603                                            Self::FromStringConvertable };

anonymous enum
Enumerator:
bHasParent 

Definition at line 605 of file OSGVecFieldDataType.h.

00605 { bHasParent        = 0x01                        };

anonymous enum [inherited]

Definition at line 139 of file OSGVecFieldDataType.h.

00139 { bHasParent = 0x00 };

anonymous enum [inherited]

Definition at line 70 of file OSGVecFieldDataType.h.

00070 { bHasParent = 0x00 };

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

Definition at line 607 of file OSGVecFieldDataType.h.

00607 { return _type;               }

static const Char8* osg::FieldDataTraits< Vec4us >::getSName ( void   )  [inline, static]

Definition at line 609 of file OSGVecFieldDataType.h.

00609 { return "SFVec4us";           }

static const Char8* osg::FieldDataTraits< Vec4us >::getMName ( void   )  [inline, static]

Definition at line 610 of file OSGVecFieldDataType.h.

00610 { return "MFVec4us";           }

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

Definition at line 612 of file OSGVecFieldDataType.h.

00612 { return Vec4us();             }

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

Definition at line 614 of file OSGVecFieldDataType.h.

References osg::Point< ValueTypeT, SizeI >::setValueFromCString().

00616     {
00617         outVal.setValueFromCString(inVal);
00618         
00619         return true;
00620     }

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

Definition at line 622 of file OSGVecFieldDataType.h.

References osg::Point< ValueTypeT, SizeI >::getValues().

00624     {
00625         typedef TypeTraits<Vec4us::ValueType> TypeTrait;
00626         
00627         outStr.assign(TypeTrait::putToString((inVal.getValues())[0]));
00628         outStr.append("  ");
00629         outStr.append(TypeTrait::putToString((inVal.getValues())[1]));
00630         outStr.append("  ");
00631         outStr.append(TypeTrait::putToString((inVal.getValues())[2]));
00632         outStr.append("  ");
00633         outStr.append(TypeTrait::putToString((inVal.getValues())[3]));
00634     }

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

Definition at line 86 of file OSGVecFieldDataType.h.

00087     {
00088         return sizeof(ValueTypeT);
00089     }

static UInt32 osg::FieldTraitsRecurseVecStoreBase< Vec4us >::getBinSize ( const Vec4us ,
UInt32  uiNumObjects 
) [inline, static, inherited]

Definition at line 91 of file OSGVecFieldDataType.h.

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

static void osg::FieldTraitsRecurseVecStoreBase< Vec4us >::copyToBin ( BinaryDataHandler pMem,
const Vec4us 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< Vec4us >::copyToBin ( BinaryDataHandler pMem,
const Vec4us 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< Vec4us >::copyFromBin ( BinaryDataHandler pMem,
Vec4us 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< Vec4us >::copyFromBin ( BinaryDataHandler pMem,
Vec4us 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

Definition at line 598 of file OSGVecFieldDataType.h.

Definition at line 73 of file OSGVecFieldDataType.h.


The documentation for this struct was generated from the following files:

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1