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

Public Types | |
| enum | { StringConvertable } |
| typedef osgIF< uiTest==1, const Color3f, const Color3f & >::_IRet | ArgumentType |
Static Public Member Functions | |
| static DataType & | getType (void) |
| static const Char8 * | getSName (void) |
| static const Char8 * | getMName (void) |
| static const Color3f | getDefault (void) |
| static bool | getFromString (Color3f &outVal, const Char8 *&inVal) |
| static void | putToString (const Color3f &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const Color3f &) |
| static UInt32 | getBinSize (const Color3f *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color3f &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color3f &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color3f *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color3f *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (Color3f &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 72 of file OSGBaseFieldDataType.h.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Reimplemented from osg::FieldTraits. Definition at line 77 of file OSGBaseFieldDataType.h. 00077 { StringConvertable = ToStringConvertable | 00078 FromStringConvertable };
|
|
|
Definition at line 80 of file OSGBaseFieldDataType.h. 00080 { return _type; }
|
|
|
Definition at line 82 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 84 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 86 of file OSGBaseFieldDataType.h. 00086 { return Color3f(); }
|
|
||||||||||||
|
Definition at line 88 of file OSGBaseFieldDataType.h. References osg::Color3< ValueTypeT >::setValue().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 96 of file OSGBaseFieldDataType.h. References osg::Color3< ValueTypeT >::blue(), osg::Color3< ValueTypeT >::green(), and osg::Color3< ValueTypeT >::red(). 00098 { 00099 typedef TypeTraits<Color3f::ValueType> TypeTrait; 00100 00101 outStr.assign(TypeTrait::putToString(inVal.red() )); 00102 outStr.append(" "); 00103 outStr.append(TypeTrait::putToString(inVal.green())); 00104 outStr.append(" "); 00105 outStr.append(TypeTrait::putToString(inVal.blue() )); 00106 }
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 108 of file OSGBaseFieldDataType.h. 00109 { 00110 return sizeof(Real32) * 3; 00111 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 113 of file OSGBaseFieldDataType.h. 00115 { 00116 return sizeof(Real32)* 3 * uiNumObjects; 00117 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 119 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 125 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 131 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color3f >. Definition at line 138 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