Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoPerfAccumCounter Class Reference

Performance Accumulation Counter. More...

#include <Inventor/stats/SoPerfAccumCounter.h>

+ Inheritance diagram for SoPerfAccumCounter:

Public Member Functions

 SoPerfAccumCounter (const SbString &name, const SbString &description, const SbString &module="no module", const LevelEnum level=MEDIUM, bool custom=false)
 Constructor with SbString.
 
SoNONUNICODE SoPerfAccumCounter (const char *name, const char *description)
 Constructor with char*.
 
virtual ~SoPerfAccumCounter ()
 Destructor.
 
virtual void reset ()
 Reset the counter.
 
- Public Member Functions inherited from SoPerfCounter
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 ()
 

Additional Inherited Members

- Public Types inherited from SoPerfCounter
enum  LevelEnum {
  LOW = 0 ,
  MEDIUM = 1 ,
  HIGH = 2
}
 Various levels for a counter. More...
 
typedef double SoPerfCounterValue
 
- Static Public Member Functions inherited from SoPerfCounter
static SoType getClassTypeId ()
 Returns the Type of current class.
 

Detailed Description

Performance Accumulation Counter.

Defines a performance counter of type accumulation. A counter is "custom" when its values are the result of an operation between the values of other counters. This counter is reset once a second.

SEE ALSO

SoPerfCounter, SoPerfStateCounter, SoPerfCounterManager

Definition at line 46 of file SoPerfAccumCounter.h.

Constructor & Destructor Documentation

◆ SoPerfAccumCounter() [1/2]

SoPerfAccumCounter::SoPerfAccumCounter ( const SbString name,
const SbString description,
const SbString module = "no module",
const LevelEnum  level = MEDIUM,
bool  custom = false 
)

Constructor with SbString.

Creates a counter of type "accumulation".

Parameters
nameName of the counter.
descriptionWhat the counter does.
moduleThe module in which it is relevant to use this counter.
levelThe qualification level required to use this counter.
customTRUE if the counter results of an operation between other counters. If it is the case, you will have to set the names of the two parents and the operation with the appropriate methods.

◆ SoPerfAccumCounter() [2/2]

SoNONUNICODE SoPerfAccumCounter::SoPerfAccumCounter ( const char *  name,
const char *  description 
)

Constructor with char*.

Creates a counter of type "accumulation".

Parameters
nameName of the counter.
descriptionWhat the counter does.

Non Unicode: This function should not be used in a Unicode application.

◆ ~SoPerfAccumCounter()

virtual SoPerfAccumCounter::~SoPerfAccumCounter ( )
virtual

Destructor.

Member Function Documentation

◆ reset()

virtual void SoPerfAccumCounter::reset ( )
virtual

Reset the counter.

Implements SoPerfCounter.


The documentation for this class was generated from the following file: