#include <OSGBaseFieldDataType.h>
Public Types | |
| enum | { StringConvertable } |
| enum | |
| typedef osgIF< uiTest==1, const Color4ub, const Color4ub & > ::_IRet | ArgumentType |
| enum | { ToStringConvertable = 0x01, FromStringConvertable = 0x02 } |
Static Public Member Functions | |
| static DataType & | getType (void) |
| static const Char8 * | getSName (void) |
| static const Char8 * | getMName (void) |
| static Color4ub | getDefault (void) |
| static bool | getFromString (Color4ub &outVal, const Char8 *&inVal) |
| static void | putToString (const Color4ub &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const Color4ub &) |
| static UInt32 | getBinSize (const Color4ub *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color4ub &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color4ub &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color4ub *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color4ub *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (Color4ub &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 339 of file OSGBaseFieldDataType.h.
typedef osgIF<uiTest == 1, const Color4ub , const Color4ub & >::_IRet osg::FieldTraitsRecurseBase< Color4ub >::ArgumentType [inherited] |
Definition at line 122 of file OSGFieldDataType.h.
| anonymous enum |
Definition at line 344 of file OSGBaseFieldDataType.h.
00344 { StringConvertable = ToStringConvertable | 00345 FromStringConvertable };
anonymous enum [inherited] |
Definition at line 114 of file OSGFieldDataType.h.
00114 { bHasParent = 0x00 };
anonymous enum [inherited] |
Definition at line 69 of file OSGFieldDataType.h.
00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
| static DataType& osg::FieldDataTraits< Color4ub >::getType | ( | void | ) | [inline, static] |
Definition at line 347 of file OSGBaseFieldDataType.h.
00347 { return _type; }
| static const Char8* osg::FieldDataTraits< Color4ub >::getSName | ( | void | ) | [inline, static] |
Definition at line 349 of file OSGBaseFieldDataType.h.
| static const Char8* osg::FieldDataTraits< Color4ub >::getMName | ( | void | ) | [inline, static] |
Definition at line 351 of file OSGBaseFieldDataType.h.
| static Color4ub osg::FieldDataTraits< Color4ub >::getDefault | ( | void | ) | [inline, static] |
Definition at line 353 of file OSGBaseFieldDataType.h.
00353 { return Color4ub(); }
| static bool osg::FieldDataTraits< Color4ub >::getFromString | ( | Color4ub & | outVal, | |
| const Char8 *& | inVal | |||
| ) | [inline, static] |
Definition at line 355 of file OSGBaseFieldDataType.h.
References osg::Color4< ValueTypeT >::setValue().
| static void osg::FieldDataTraits< Color4ub >::putToString | ( | const Color4ub & | inVal, | |
| std::string & | outStr | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 363 of file OSGBaseFieldDataType.h.
References osg::Color4< ValueTypeT >::alpha(), osg::Color4< ValueTypeT >::blue(), osg::Color4< ValueTypeT >::green(), and osg::Color4< ValueTypeT >::red().
00365 { 00366 typedef TypeTraits<Color4ub::ValueType> TypeTrait; 00367 00368 outStr.assign(TypeTrait::putToString(inVal.red() )); 00369 outStr.append(" "); 00370 outStr.append(TypeTrait::putToString(inVal.green())); 00371 outStr.append(" "); 00372 outStr.append(TypeTrait::putToString(inVal.blue() )); 00373 outStr.append(" "); 00374 outStr.append(TypeTrait::putToString(inVal.alpha())); 00375 }
| static UInt32 osg::FieldDataTraits< Color4ub >::getBinSize | ( | const Color4ub & | ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 377 of file OSGBaseFieldDataType.h.
00378 { 00379 return sizeof(UInt8) * 4; 00380 }
| static UInt32 osg::FieldDataTraits< Color4ub >::getBinSize | ( | const Color4ub * | , | |
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 382 of file OSGBaseFieldDataType.h.
00384 { 00385 return sizeof(UInt8) * 4 * uiNumObjects; 00386 }
| static void osg::FieldDataTraits< Color4ub >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const Color4ub & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 388 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::putValues().
| static void osg::FieldDataTraits< Color4ub >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| Color4ub & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 395 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::getValues().
| static void osg::FieldDataTraits< Color4ub >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const Color4ub * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 402 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::putValues().
| static void osg::FieldDataTraits< Color4ub >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| Color4ub * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >.
Definition at line 409 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::getValues().
| static bool osg::FieldTraitsRecurseBase< Color4ub >::getFromString | ( | Color4ub & | outVal, | |
| const Char8 * | inVal | |||
| ) | [inline, static, inherited] |
Definition at line 209 of file OSGFieldDataType.h.
| static const Char8* osg::FieldTraits::getPName | ( | void | ) | [inline, static, inherited] |
Definition at line 75 of file OSGFieldDataType.h.
DataType osg::FieldDataTraits< Color4ub >::_type [static] |
Definition at line 342 of file OSGBaseFieldDataType.h.
const UInt32 osg::FieldTraitsRecurseBase< Color4ub >::uiTest [static, inherited] |
Definition at line 117 of file OSGFieldDataType.h.
1.6.1