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

Public Types | |
| enum | { StringConvertable } |
| typedef osgIF< uiTest==1, const Color4f, const Color4f & >::_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 Color4f | getDefault (void) |
| static bool | getFromString (Color4f &outVal, const Char8 *&inVal) |
| static void | putToString (const Color4f &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const Color4f &) |
| static UInt32 | getBinSize (const Color4f *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color4f &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color4f &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const Color4f *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, Color4f *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (Color4f &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 160 of file OSGBaseFieldDataType.h.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Definition at line 165 of file OSGBaseFieldDataType.h. 00165 { StringConvertable = ToStringConvertable | 00166 FromStringConvertable };
|
|
|
Definition at line 69 of file OSGFieldDataType.h. 00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
|
|
|
Definition at line 168 of file OSGBaseFieldDataType.h. 00168 { return _type; }
|
|
|
Definition at line 170 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 172 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 174 of file OSGBaseFieldDataType.h. 00174 { return Color4f(); }
|
|
||||||||||||
|
Definition at line 176 of file OSGBaseFieldDataType.h. References osg::Color4< ValueTypeT >::setValue().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 184 of file OSGBaseFieldDataType.h. References osg::Color4< ValueTypeT >::alpha(), osg::Color4< ValueTypeT >::blue(), osg::Color4< ValueTypeT >::green(), and osg::Color4< ValueTypeT >::red(). 00186 { 00187 typedef TypeTraits<Color4f::ValueType> TypeTrait; 00188 00189 outStr.assign(TypeTrait::putToString(inVal.red() )); 00190 outStr.append(" "); 00191 outStr.append(TypeTrait::putToString(inVal.green())); 00192 outStr.append(" "); 00193 outStr.append(TypeTrait::putToString(inVal.blue() )); 00194 outStr.append(" "); 00195 outStr.append(TypeTrait::putToString(inVal.alpha())); 00196 }
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 198 of file OSGBaseFieldDataType.h. 00199 { 00200 return sizeof(Real32) * 4; 00201 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 203 of file OSGBaseFieldDataType.h. 00205 { 00206 return sizeof(Real32) * 4 * uiNumObjects; 00207 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 209 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 216 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 223 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValues().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< Color4f >. Definition at line 230 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