#include <OSGBaseTypeTraits.h>

Public Types | |
| typedef Real32 | RealReturnType |
Static Public Member Functions | |
| static Real32 | getZeroElement (void) |
| static Real32 | getOneElement (void) |
| static Real32 | getMax (void) |
| static Real32 | getMin (void) |
| static Real32 | getFraction (Real32 rVal) |
| static Real32 | getPortion (Real32 rVal) |
| static Real32 | getFromString (const Char8 *szString) |
| static std::string | putToString (const Real32 val) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = RealValue |
Definition at line 847 of file OSGBaseTypeTraits.h.
| typedef Real32 osg::osg::TypeTraits< Real32 >::RealReturnType |
Definition at line 849 of file OSGBaseTypeTraits.h.
| static Real32 osg::osg::TypeTraits< Real32 >::getFromString | ( | const Char8 * | szString | ) | [inline, static] |
Definition at line 880 of file OSGBaseTypeTraits.h.
00881 { 00882 if(szString != NULL) 00883 { 00884 #if defined(__sgi) || defined(WIN32) || defined(__sun) 00885 return Real32(atof (szString)); 00886 #else 00887 return Real32(strtof(szString, NULL)); 00888 #endif 00889 } 00890 else 00891 { 00892 return getZeroElement(); 00893 } 00894 }
| static std::string osg::osg::TypeTraits< Real32 >::putToString | ( | const Real32 | val | ) | [inline, static] |
Definition at line 896 of file OSGBaseTypeTraits.h.
00897 { 00898 Char8 buffer[20]; 00899 00900 sprintf(buffer, "%e", val); 00901 00902 return std::string(buffer); 00903 }
Definition at line 852 of file OSGBaseTypeTraits.h.
const MathTypeProperties osg::osg::TypeTraits< Real32 >::MathProp = RealValue [static] |
Definition at line 853 of file OSGBaseTypeTraits.h.
1.5.5