#include <OSGBaseTypeTraits.h>
Inheritance diagram for osg::TypeTraits< Real32 >:

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 825 of file OSGBaseTypeTraits.h.
|
|
Definition at line 827 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 833 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 838 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 843 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 848 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 854 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 855 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 858 of file OSGBaseTypeTraits.h. 00859 { 00860 if(szString != NULL) 00861 { 00862 #if defined(__sgi) || defined(WIN32) 00863 return Real32(atof (szString)); 00864 #else 00865 return Real32(strtof(szString, NULL)); 00866 #endif 00867 } 00868 else 00869 { 00870 return getZeroElement(); 00871 } 00872 }
|
|
|
Definition at line 874 of file OSGBaseTypeTraits.h. 00875 { 00876 Char8 buffer[20]; 00877 00878 sprintf(buffer, "%e", val); 00879 00880 return std::string(buffer); 00881 }
|
|
|
Definition at line 830 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 831 of file OSGBaseTypeTraits.h. |
1.4.3