24 #ifndef __HUD_STATISTICS_H
25 #define __HUD_STATISTICS_H
27 #include <selforg/statistictools.h>
76 virtual osgText::Text*
getText() {
return text; }
130 virtual double&
addMeasure(
double& observedValue,
const char* measureName,
MeasureMode mode,
long stepSpan,
double additionalParam =0);
145 virtual double&
addMeasureList(std::list<AbstractMeasure*> measureList);
153 virtual double&
addMeasureList(std::list<ComplexMeasure*> measureList);
162 virtual double&
addMeasureList(std::list<StatisticMeasure*> measureList);
193 virtual WindowStatistic*
getMeasureWS(
const std::string& measureName);
virtual double & addMeasure(double &observedValue, const char *measureName, MeasureMode mode, long stepSpan, double additionalParam=0)
adds a variable to observe (on the window) and measure the value
Definition: hudstatistics.cpp:86
std::list< WindowStatistic * > windowStatisticList
the struct list which holds the measures and the appropiate text
Definition: hudstatistics.h:202
Interface class for a class which wants to be callback on a certain action.
Definition: callbackable.h:39
MeasureMode
usage of the statistictools with different measure modes (examples):
Definition: measuremodes.h:53
virtual StatisticTools * getStatisticTools()
Definition: hudstatistics.h:187
virtual void doOnCallBack(BackCaller *source, BackCaller::CallbackableType type=BackCaller::DEFAULT_CALLBACKABLE_TYPE)
CALLBACKABLE INTERFACE.
Definition: hudstatistics.cpp:147
virtual void beginMeasureAt(long step)
starts the measure at a specific time.
Definition: hudstatistics.h:170
virtual ~HUDStatisticsManager()
Definition: hudstatistics.cpp:56
osgText::Font * font
Definition: hudstatistics.h:216
float zInitPosition
Definition: hudstatistics.h:209
manages all the stuff displaying statistics on the graphics window.
Definition: hudstatistics.h:60
virtual WindowStatistic * getMeasureWS(const std::string &measureName)
searches for the measure with the given name and returns it windowstatistics (measure and graphics to...
Definition: hudstatistics.cpp:137
Class used by StatisticTools.
Definition: statisticmeasure.h:34
virtual AbstractMeasure * getMeasure()
Definition: hudstatistics.h:74
static const CallbackableType DEFAULT_CALLBACKABLE_TYPE
This is the default Callbackable type.
Definition: backcaller.h:51
unsigned long CallbackableType
Definition: backcaller.h:45
virtual double & addMeasureList(std::list< AbstractMeasure * > measureList)
You can add another abstract measure you like.
Definition: hudstatistics.cpp:116
float yOffset
Definition: hudstatistics.h:210
virtual StatisticMeasure * getMeasure(double &observedValue, const char *measureName, MeasureMode mode, long stepSpan, double additionalParam=0)
adds a variable to observe (on the window) and measure the value
Definition: hudstatistics.cpp:61
int fontsize
Definition: hudstatistics.h:218
WindowStatistic(AbstractMeasure *measure, osgText::Text *text)
Definition: hudstatistics.h:69
virtual ~WindowStatistic()
Definition: hudstatistics.h:72
virtual osgText::Text * getText()
Definition: hudstatistics.h:76
virtual bool measureStarted()
Tells you wether the measures have already been started.
Definition: hudstatistics.h:175
virtual void setColor(const Color &color)
Definition: hudstatistics.h:196
osg::Geode * geode
Definition: hudstatistics.h:213
Nested class WindowStatistic, which puts the measure and the graphics text together.
Definition: hudstatistics.h:66
float yInitPosition
Definition: hudstatistics.h:208
float xInitPosition
Definition: hudstatistics.h:207
Class prototype which provides functions to handle callbackable classes.
Definition: backcaller.h:42
HUDStatisticsManager(osg::Geode *geode, osgText::Font *font, int ypos)
creates the HUDStatisticsManager, normally done by class Base.
Definition: hudstatistics.cpp:46
Color textColor
Definition: hudstatistics.h:217
StatisticTools * statTool
Definition: hudstatistics.h:204
virtual void setFontsize(int size)
Definition: hudstatistics.h:197
Class used by StatisticTools.
Definition: abstractmeasure.h:38