00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00032
00033 #ifndef ARMAGETRON_CGAUGES_H
00034 #define ARMAGETRON_CGAUGES_H
00035
00036 #include "cockpit/cWidgetBase.h"
00037
00038 #ifndef DEDICATED
00039
00040 namespace cWidget {
00041
00043 class BarGauge : public WithSingleData, public WithBackground, public WithForeground, public WithLineColor, public WithCoordinates, public WithShowSettings, public WithCaption, public WithReverse, public WithAngles {
00044 public:
00045 virtual ~BarGauge() { };
00046 void Render();
00047 virtual bool Process(tXmlParser::node cur);
00048 protected:
00049 virtual void RenderGraph(float min, float max, float val, float factor, tValue::Base const &val_s);
00050 virtual void RenderMinMax(tValue::Base const &min_s, tValue::Base const &max_s);
00051 virtual void RenderCaption(void);
00052 };
00053
00055 class VerticalBarGauge : public BarGauge {
00056 public:
00057 virtual ~VerticalBarGauge() { };
00058 protected:
00059 virtual void RenderGraph(float min, float max, float val, float factor, tValue::Base const &val_s);
00060 void RenderCaption(void);
00061 };
00062
00064 class NeedleGauge : public BarGauge {
00065 public:
00066 virtual ~NeedleGauge() { };
00067 protected:
00068 virtual void RenderGraph(float min, float max, float val, float factor, tValue::Base const &val_s);
00069 };
00070
00071 }
00072
00073 #endif
00074 #endif