Abstract base class for Performance Counter. More...
#include <Inventor/stats/SoPerfCounter.h>
Public Types | |
enum | LevelEnum { LOW = 0 , MEDIUM = 1 , HIGH = 2 } |
Various levels for a counter. More... | |
typedef double | SoPerfCounterValue |
Public Member Functions | |
virtual void | reset ()=0 |
Reset the counter. | |
virtual SoType | getTypeId () const |
Returns the type of current instance. | |
const char * | getName () |
Returns the name of current counter;. | |
SoNONUNICODE const char * | getDescription () |
Returns the description of current counter;. | |
SbString | getStringDescription () |
Returns the description of current counter;. | |
SoPerfCounterValue | getValue () |
Returns the value of the counter. | |
virtual void | setValue (SoPerfCounterValue value) |
Set the counter value. | |
void | setScale (SoPerfCounterValue scale) |
Sets the scale factor. | |
SoPerfCounterValue | getScale () const |
Returns the scale factor. | |
SbString | getType () const |
Returns the type of the counter. | |
SbString | getModule () const |
Returns the module of the counter. | |
SbString | getStringLevel () const |
Returns the level of the counter. | |
int | getLevel () const |
Returns the level of the counter. | |
bool | isCustom () const |
Returns TRUE if the counter results of an operation between other counters. | |
SbName | getFirstParent () const |
Returns the name of the first parent. | |
SbName | getSecondParent () const |
Returns the name of the second parent. | |
void | setFirstParent (SbName firstParent) |
Sets the name of the first parent. | |
void | setSecondParent (SbName secondParent) |
Sets the name of the second parent. | |
SbString | getOperation () const |
Returns the operation made between the two parents. | |
void | setOperation (SbString operation) |
Sets the operation made between the two parents. | |
virtual void | increment (SoPerfCounterValue value) |
Increments/Decrements counter value by 'value'. | |
virtual void | decrement (SoPerfCounterValue value) |
void | setID (int id) |
Sets/Gets counter id. | |
int | getID () |
void | setEnable (bool e) |
Sets/Gets the use state. | |
bool | isEnabled () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the Type of current class. | |
Abstract base class for Performance Counter.
Defines the basic methods to define a performance counter.
Definition at line 43 of file SoPerfCounter.h.
typedef double SoPerfCounter::SoPerfCounterValue |
Definition at line 47 of file SoPerfCounter.h.
Various levels for a counter.
Enumerator | |
---|---|
LOW | |
MEDIUM | |
HIGH |
Definition at line 191 of file SoPerfCounter.h.
|
inlinevirtual |
Definition at line 173 of file SoPerfCounter.h.
|
static |
Returns the Type of current class.
|
inline |
Returns the description of current counter;.
Non Unicode: This function should not be used in a Unicode application.
Definition at line 74 of file SoPerfCounter.h.
|
inline |
Returns the name of the first parent.
Definition at line 137 of file SoPerfCounter.h.
|
inline |
Definition at line 179 of file SoPerfCounter.h.
|
inline |
Returns the level of the counter.
Definition at line 125 of file SoPerfCounter.h.
|
inline |
Returns the module of the counter.
Definition at line 113 of file SoPerfCounter.h.
|
inline |
Returns the name of current counter;.
Definition at line 67 of file SoPerfCounter.h.
|
inline |
Returns the operation made between the two parents.
Definition at line 161 of file SoPerfCounter.h.
|
inline |
|
inline |
Returns the name of the second parent.
Definition at line 143 of file SoPerfCounter.h.
|
inline |
Returns the description of current counter;.
Definition at line 79 of file SoPerfCounter.h.
SbString SoPerfCounter::getStringLevel | ( | ) | const |
Returns the level of the counter.
|
inline |
Returns the type of the counter.
Definition at line 107 of file SoPerfCounter.h.
|
virtual |
Returns the type of current instance.
SoPerfCounterValue SoPerfCounter::getValue | ( | ) |
Returns the value of the counter.
|
inlinevirtual |
Increments/Decrements counter value by 'value'.
Definition at line 172 of file SoPerfCounter.h.
|
inline |
Returns TRUE if the counter results of an operation between other counters.
Definition at line 131 of file SoPerfCounter.h.
|
inline |
Definition at line 185 of file SoPerfCounter.h.
|
pure virtual |
Reset the counter.
Implemented in SoPerfAccumCounter, and SoPerfStateCounter.
|
inline |
Sets/Gets the use state.
Definition at line 184 of file SoPerfCounter.h.
|
inline |
Sets the name of the first parent.
Definition at line 149 of file SoPerfCounter.h.
|
inline |
Sets/Gets counter id.
Definition at line 178 of file SoPerfCounter.h.
|
inline |
Sets the operation made between the two parents.
Definition at line 167 of file SoPerfCounter.h.
|
inline |
|
inline |
Sets the name of the second parent.
Definition at line 155 of file SoPerfCounter.h.
|
inlinevirtual |
Set the counter value.
Definition at line 89 of file SoPerfCounter.h.