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

Public Types | |
| typedef Real16 | RealReturnType |
Static Public Member Functions | |
| static Real16 | getZeroElement (void) |
| static Real16 | getOneElement (void) |
| static Real16 | getMax (void) |
| static Real16 | getMin (void) |
| static Real16 | getFraction (Real16 rVal) |
| static Real16 | getPortion (Real16 rVal) |
| static Real16 | getFromString (const Char8 *szString) |
| static std::string | putToString (const Real16 val) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = RealValue |
Definition at line 760 of file OSGBaseTypeTraits.h.
|
|
Definition at line 762 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 768 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 773 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 778 of file OSGBaseTypeTraits.h. References REAL16_MAX. 00779 { 00780 return REAL16_MAX; 00781 }
|
|
|
Definition at line 783 of file OSGBaseTypeTraits.h. References REAL16_MIN. 00784 { 00785 return REAL16_MIN; 00786 }
|
|
|
Definition at line 789 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 790 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 793 of file OSGBaseTypeTraits.h. 00794 { 00795 if(szString != NULL) 00796 { 00797 #if defined(__sgi) || defined(WIN32) 00798 return Real16(Real32(atof (szString))); 00799 #else 00800 return Real16(Real32(strtof(szString, NULL))); 00801 #endif 00802 } 00803 else 00804 { 00805 return getZeroElement(); 00806 } 00807 }
|
|
|
Definition at line 809 of file OSGBaseTypeTraits.h. 00810 { 00811 Char8 buffer[20]; 00812 00813 sprintf(buffer, "%e", (Real32) val); 00814 00815 return std::string(buffer); 00816 }
|
|
|
Definition at line 765 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 766 of file OSGBaseTypeTraits.h. |
1.4.3