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

Public Types | |
| typedef Real32 | RealReturnType |
Static Public Member Functions | |
| static Int8 | getZeroElement (void) |
| static Int8 | getOneElement (void) |
| static Int8 | getMin (void) |
| static Int8 | getMax (void) |
| static Real32 | getFraction (Int8 val) |
| static Int8 | getPortion (Real32 val) |
| static Int8 | getFromCString (const Char8 *pData, Char8 *&pDataEnd) |
| static Int8 | getFromCString (const Char8 *pData) |
| static void | putToString (const Int8 val, std::string &out) |
| static void | putToStream (const Int8 &val, OutStream &str) |
Static Public Attributes | |
| static const bool | IsPOD = true |
| static const MathTypeProperties | MathProp = IntValue |
| static const Int8 | BitsSet = -1 |
| static const Int8 | BitsClear = 0x00 |
Definition at line 319 of file OSGBaseTypeTraits.h.
|
|
Definition at line 321 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 352 of file OSGBaseTypeTraits.h. 00353 { 00354 return (Real32(val) / Real32(getMax())); 00355 };
|
|
|
Definition at line 376 of file OSGBaseTypeTraits.h. 00377 { 00378 Char8 *pDataEnd; 00379 00380 return getFromCString(pData, pDataEnd); 00381 }
|
|
||||||||||||
|
Definition at line 363 of file OSGBaseTypeTraits.h. 00365 { 00366 if(pData != NULL) 00367 { 00368 return Int8(strtol(pData, &pDataEnd, 0)); 00369 } 00370 else 00371 { 00372 return getZeroElement(); 00373 } 00374 }
|
|
|
Definition at line 346 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 341 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 336 of file OSGBaseTypeTraits.h.
|
|
|
Definition at line 357 of file OSGBaseTypeTraits.h. 00358 { 00359 return (Int8) (val * Real32(getMax())); 00360 };
|
|
|
Definition at line 331 of file OSGBaseTypeTraits.h.
|
|
||||||||||||
|
Reimplemented from osg::TypeTraitsTemplateBase< Int8 >. Definition at line 393 of file OSGBaseTypeTraits.h.
|
|
||||||||||||
|
Definition at line 383 of file OSGBaseTypeTraits.h. 00385 { 00386 Char8 buffer[10]; 00387 00388 sprintf(buffer, "%i", val); 00389 00390 out.append(buffer); 00391 }
|
|
|
Definition at line 328 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 327 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 324 of file OSGBaseTypeTraits.h. |
|
|
Definition at line 325 of file OSGBaseTypeTraits.h. |