13#include "GUIAbstractBar.h"
15#include "GUIColorPropertyObserver.h"
116 const eC_Value& vX,
const eC_Value& vY,
117 const eC_Value& vWidth,
const eC_Value& vHeight,
118 const eC_Int iMin,
const eC_Int iMax,
119 const eC_Value vMinAngle,
const eC_Value vMaxAngle,
121 const eC_Value& vNeedleLength,
140 const eC_Value& vX,
const eC_Value& vY,
141 const eC_Value& vWidth,
const eC_Value& vHeight,
142 const eC_Int iMin,
const eC_Int iMax,
143 const eC_Value vMinAngle,
const eC_Value vMaxAngle,
186 virtual void DoAnimate(
const eC_Value& vTimes = eC_FromInt(1));
264#ifdef GUILIANI_WRITE_GUI
267#ifdef GUILIANI_STREAM_GUI
280 void Init(
const eC_Int iMin,
const eC_Int iMax,
const eC_Value vMinAngle,
const eC_Value vMaxAngle,
const ImageResource_t eGaugeImage);
304 static const eC_UInt INDEX_COLOR_NEEDLE;
305 static const eC_UInt INDEX_COLOR_SHADOW;
308 eC_Value m_vMinAngle;
310 eC_Value m_vMaxAngle;
318 eC_Value m_vNeedleLength;
320 eC_Value m_vNeedleWidth;
Helper Macros in Guiliani
ImageResource_t
Enumeration of image resource ids.
Definition: GUIImageResource.h:126
ObjectHandle_t
List of object resource ids.
Definition: GUIObjectHandleResource.h:55
Helper Macros in Guiliani
GlobalProperty_t
List of property resource ids.
Definition: GUIPropertyResource.h:67
Base class for bars.
Definition: GUIAbstractBar.h:33
This observer provides the base-interface for controls when using color-properties.
Definition: GUIColorPropertyObserver.h:23
This is the Guiliani base class for all composite objects.
Definition: GUICompositeObject.h:70
Basic gauge control, which visualizes values on a meter using a needle.
Definition: GUIGauge.h:98
void SetShadowColor(const eC_UInt &uiShadowColor)
void SetNeedleLength(const eC_Value vLength)
CGUIGauge(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Int iMin, const eC_Int iMax, const eC_Value vMinAngle, const eC_Value vMaxAngle, const ImageResource_t eGaugeImage, const ImageResource_t eNeedleImage, const ObjectHandle_t &eID=NO_HANDLE)
eC_UInt GetNeedleColor() const
eC_UInt GetShadowColor() const
virtual eC_Bool OnValueChange()
void SmartInvalidation()
Improved invalidation method, which does not simply invalidate the entire object, but instead only th...
void SetShadowColor(const GlobalProperty_t &eShadowColor)
void SetMinAngle(const eC_Value vMinAngle)
ImageResource_t GetNeedleImage() const
void SetGaugeImage(const ImageResource_t eGaugeImageID)
void Init(const eC_Int iMin, const eC_Int iMax, const eC_Value vMinAngle, const eC_Value vMaxAngle, const ImageResource_t eGaugeImage)
virtual void ReadFromStream()
virtual void DoAnimate(const eC_Value &vTimes=eC_FromInt(1))
void SetNeedleImage(const ImageResource_t eNeedleImageID)
void SetNeedleColor(const GlobalProperty_t &eNeedleColor)
eC_Value GetNeedleWidth() const
void SetMaxAngle(const eC_Value vMaxAngle)
void SetNeedleWidth(const eC_Value vWidth)
eC_Value GetMinAngle() const
virtual eC_Bool IsHighlightable() const
Definition: GUIGauge.h:262
eC_Value GetMaxAngle() const
virtual void DrawGauge()
Helper method for drawing the gauge.
virtual void DrawNeedle()
Helper method for drawing the needle.
ImageResource_t GetGaugeImage() const
void CalculateEndpoint()
Calculates the endpoint of the needle's tip after rotation.
CGUIGauge(CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const eC_Int iMin, const eC_Int iMax, const eC_Value vMinAngle, const eC_Value vMaxAngle, const ImageResource_t eGaugeImage, const eC_Value &vNeedleLength, const ObjectHandle_t &eID=NO_HANDLE)
eC_Value GetNeedleLength() const
void SetNeedleColor(const eC_UInt &uiNeedleColor)
void SetSimulate(const eC_Bool bSimulate)
void UpdateNeedleAngle()
Updates the needle's rotationangle with respect to Min/Max Value and Min/Max Angle.
virtual void WriteToStream(const eC_Bool bWriteClassID)