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

Public Types | |
| enum | { StringConvertable } |
| typedef osgIF< uiTest==1, const Color3ub, const Color3ub & >::_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 Color3ub | getDefault (void) |
| static bool | getFromString (Color3ub &outVal, const Char8 *&inVal) |
| static void | putToString (const Color3ub &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const Color3ub &) |
| static UInt32 | getBinSize (const Color3ub *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color3ub &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color3ub &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color3ub *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color3ub *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (Color3ub &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 253 of file OSGBaseFieldDataType.h.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Definition at line 258 of file OSGBaseFieldDataType.h. 00258 { StringConvertable = ToStringConvertable | 00259 FromStringConvertable };
|
|
|
Definition at line 69 of file OSGFieldDataType.h. 00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
|
|
|
Definition at line 261 of file OSGBaseFieldDataType.h. 00261 { return _type; }
|
|
|
Definition at line 263 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 264 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 266 of file OSGBaseFieldDataType.h. 00266 { return Color3ub(); }
|
|
||||||||||||
|
Definition at line 268 of file OSGBaseFieldDataType.h. References osg::Color3< ValueTypeT >::setValue().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 276 of file OSGBaseFieldDataType.h. References osg::Color3< ValueTypeT >::blue(), osg::Color3< ValueTypeT >::green(), and osg::Color3< ValueTypeT >::red(). 00278 { 00279 typedef TypeTraits<Color3ub::ValueType> TypeTrait; 00280 00281 outStr.assign(TypeTrait::putToString(inVal.red() )); 00282 outStr.append(" "); 00283 outStr.append(TypeTrait::putToString(inVal.green())); 00284 outStr.append(" "); 00285 outStr.append(TypeTrait::putToString(inVal.blue() )); 00286 }
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 288 of file OSGBaseFieldDataType.h. 00289 { 00290 return sizeof(UInt8) * 3; 00291 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 293 of file OSGBaseFieldDataType.h. 00295 { 00296 return sizeof(UInt8)* 3 * uiNumObjects; 00297 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 299 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 306 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 312 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3ub >. Definition at line 319 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