#include <OSGBaseFieldDataType.h>
Inheritance diagram for osg::FieldDataTraits< Color4ub >:

Public Types | |
| enum | { StringConvertable } |
| 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.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Definition at line 344 of file OSGBaseFieldDataType.h. 00344 { StringConvertable = ToStringConvertable | 00345 FromStringConvertable };
|
|
|
Definition at line 69 of file OSGFieldDataType.h. 00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
|
|
|
Definition at line 347 of file OSGBaseFieldDataType.h. 00347 { return _type; }
|
|
|
Definition at line 349 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 351 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 353 of file OSGBaseFieldDataType.h. 00353 { return Color4ub(); }
|
|
||||||||||||
|
Definition at line 355 of file OSGBaseFieldDataType.h. References osg::Color4< ValueTypeT >::setValue().
|
|
||||||||||||
|
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 }
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 377 of file OSGBaseFieldDataType.h. 00378 { 00379 return sizeof(UInt8) * 4; 00380 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 382 of file OSGBaseFieldDataType.h. 00384 { 00385 return sizeof(UInt8) * 4 * uiNumObjects; 00386 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 388 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 395 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 402 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4ub >. Definition at line 409 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValues().
|
|
||||||||||||
|
Definition at line 209 of file OSGFieldDataType.h. 00211 { 00212 typedef FieldDataTraits<FieldTypeT> MappedTrait; 00213 00214 return MappedTrait::getFromString(outVal, inVal); 00215 }
|
|
|
Definition at line 75 of file OSGFieldDataType.h.
|
|
|
|
|
|
Definition at line 117 of file OSGFieldDataType.h. |
1.4.3