#include <OSGStatRealElem.h>
Inheritance diagram for osg::StatRealElem:

Public Member Functions | |
instance | |
| *void | set (Real32 value) |
| Real32 | get (void) const |
| void | add (Real32 v) |
| void | sub (Real32 v) |
| virtual void | reset (void) |
| virtual void | putToString (std::string &str, const char *format=NULL) const |
| virtual bool | getFromString (const Char8 *&inVal) |
| virtual Real64 | getValue (void) const |
comparison | |
| *bool | operator< (const StatRealElem &other) const |
Creation | |
| *virtual StatElem * | clone (void) const |
Instance | |
| *bool | isOn (void) const |
| void | setOn (bool on) |
| StatElemDescBase * | getDesc (void) const |
Comparison | |
| *bool | operator< (const StatElem &other) const |
Static Public Member Functions | |
Class Get | |
| *static const char * | getClassname (void) |
your_category | |
| *static StatElem * | create (StatElemDescBase *desc) |
Protected Member Functions | |
Constructors | |
| * | StatRealElem (StatElemDescBase *desc) |
| virtual | ~StatRealElem (void) |
Private Types | |
| typedef StatElem | Inherited |
Private Member Functions | |
| StatRealElem (const StatRealElem &source) | |
| StatRealElem & | operator= (const StatRealElem &source) |
Private Attributes | |
| Real32 | _value |
Definition at line 59 of file OSGStatRealElem.h.
|
|
Definition at line 131 of file OSGStatRealElem.h. |
|
|
Definition at line 71 of file OSGStatRealElem.cpp. Referenced by clone(), and create().
|
|
|
Definition at line 81 of file OSGStatRealElem.cpp.
|
|
|
|
|
|
Reimplemented from osg::StatElem. Definition at line 69 of file OSGStatRealElem.h.
|
|
|
Definition at line 76 of file OSGStatRealElem.cpp. References StatRealElem(). 00077 { 00078 return new StatRealElem(desc); 00079 }
|
|
|
Definition at line 41 of file OSGStatRealElem.inl. References _value. Referenced by operator=().
|
|
|
Definition at line 46 of file OSGStatRealElem.inl. References _value. Referenced by getValue(), operator<(), and operator=(). 00047 { 00048 return _value; 00049 }
|
|
|
Definition at line 51 of file OSGStatRealElem.inl. References _value. 00052 { 00053 _value += v; 00054 }
|
|
|
Definition at line 56 of file OSGStatRealElem.inl. References _value. 00057 { 00058 _value -= v; 00059 }
|
|
|
Implements osg::StatElem. Definition at line 113 of file OSGStatRealElem.cpp. References _value. 00114 { 00115 _value = 0; 00116 }
|
|
||||||||||||
|
Implements osg::StatElem. Definition at line 87 of file OSGStatRealElem.cpp. References _value. 00088 { 00089 if(!format) 00090 { 00091 FieldDataTraits<Real32>::putToString(_value, str); 00092 } 00093 else 00094 { 00095 char *temp = new char [strlen(format) + 40]; 00096 sprintf(temp, format, _value); 00097 str = temp; 00098 delete [] temp; 00099 } 00100 }
|
|
|
Implements osg::StatElem. Definition at line 102 of file OSGStatRealElem.cpp. References _value. 00103 { 00104 return FieldDataTraits<Real32>::getFromString(_value, inVal); 00105 }
|
|
|
Implements osg::StatElem. Definition at line 107 of file OSGStatRealElem.cpp. References get(). 00108 { 00109 return static_cast<Real64>(get()); 00110 }
|
|
|
Definition at line 132 of file OSGStatRealElem.cpp. References get().
|
|
|
Implements osg::StatElem. Definition at line 139 of file OSGStatRealElem.cpp. References osg::StatElem::getDesc(), and StatRealElem(). 00140 { 00141 StatRealElem *e = new StatRealElem(getDesc()); 00142 00143 *e = *this; 00144 00145 return e; 00146 }
|
|
|
Definition at line 120 of file OSGStatRealElem.cpp. 00121 { 00122 if (this == &source) 00123 return *this; 00124 00125 set(source.get()); 00126 00127 return *this; 00128 }
|
|
|
Definition at line 41 of file OSGStatElem.inl. References osg::StatElem::_on. 00042 { 00043 return _on; 00044 }
|
|
|
Definition at line 46 of file OSGStatElem.inl. References osg::StatElem::_on. 00047 { 00048 _on = on; 00049 }
|
|
|
Definition at line 51 of file OSGStatElem.inl. References osg::StatElem::_desc. Referenced by osg::StatTimeElem::clone(), osg::StatStringElem::clone(), clone(), osg::StatIntOnceElem::clone(), osg::StatIntElem::clone(), and osg::SimpleStatisticsForeground::draw(). 00052 { 00053 return _desc; 00054 }
|
|
|
Comparison. This does not compare the actual values of the StatElem, as that may not be possible for all types. Definition at line 134 of file OSGStatElem.cpp.
|
|
|
Definition at line 133 of file OSGStatRealElem.h. Referenced by add(), get(), getFromString(), putToString(), reset(), set(), and sub(). |
1.4.3