23 #include "DecoratorPrimitives.h" 39 :
Gauge(left,top,width,height),_axis(axis)
44 _barColor = Color::Red;
58 dc->SetFont(SmallFont);
68 int dc_level = bottom -
_value*saling_factor;
74 dc->SetColor(_barColor);
80 int dc_level =
_value*saling_factor;
86 dc->SetColor(_barColor);
void SetBarColor(Color color)
Set Bar color.
Definition: GaugeBar.h:47
DecoratorList * GetDecorators()
Returns window decorators list.
Definition: Window.h:81
int GetLength()
Returns axis length.
Definition: DecoratorPrimitives.h:206
Implements definition and operations with color.
Definition: Color.h:27
int EstimateLeft(DC *dc)
Estimates decorator left coordinate.
Definition: DecoratorPrimitives.h:215
Vertcal axis with the labels left to the axis.
Definition: DecoratorPrimitives.h:152
void OnDraw(DC *dc)
Implements drawing code.
Definition: GaugeBar.h:55
Color _fillColor
Gauge fill color.
Definition: Gauge.h:27
Axis decorator primitive. It is shared between gauge and chart objects. Overriden members description...
Definition: DecoratorPrimitives.h:145
Gauge window class, that allows visualisaion of data in form of bar or radial pointer.
Definition: Gauge.h:24
Device context. Abstraction layer to the device specific drawing code. Coordinates in drawing functio...
Definition: DC.h:29
Orientation
Definition: DecoratorPrimitives.h:148
float _value
Current gauge value.
Definition: Gauge.h:28
int Height()
Returns window height.
Definition: Window.h:189
DecoratorAxis * _axis
Definition: GaugeBar.h:29
float _minValue
Gauge min limit.
Definition: Gauge.h:30
bool _drawOnlyPointer
Defines whether only pointer (not scale has to be drawn)
Definition: Gauge.h:32
float _maxValue
Gauge max limit.
Definition: Gauge.h:31
Vertcal axis with the labels right to the axis.
Definition: DecoratorPrimitives.h:153
int EstimateBottom(DC *dc)
Estimates decorator bottom coordinate.
Definition: DecoratorPrimitives.h:236
void AddDecorator(Decorator *decorator)
Adds decorator to the decaorator list.
Definition: Window.h:86
float _oldValue
Previos gauge value.
Definition: Gauge.h:29
int EstimateTop(DC *dc)
Estimates decorator top coordinate.
Definition: DecoratorPrimitives.h:232
virtual void SetDecorators(DecoratorList *decorators)
Sets window decorators list.
Definition: Window.h:76
void DrawRoundRect(int left, int top, int right, int bottom)
Draws rounded rectangle. Input coordinates have to be defined in the window coordinate system...
Definition: DC.h:156
GaugeBar(DecoratorAxis *axis, int left, int top, int width, int height)
Constructor.
Definition: GaugeBar.h:38
void FillRoundRect(int left, int top, int right, int bottom)
Fills rounded rectangle. Input coordinates have to be defined in the window coordinate system...
Definition: DC.h:151
Bar gauge class.
Definition: GaugeBar.h:25