This control can be used to visualize multiple data-sources in line- or bar-charts. More...
#include <GUIChart.h>
Classes | |
struct | Data_t |
Public Types | |
enum | AxisRepresentation_t { NONE , LINE , LINE_AND_SCALING , LINE_SCALING_AND_TEXT } |
enum how the axis are displayed More... | |
enum | DataRepresentation_t { POINTS , POINTS_AND_LINES , LINES , BARS , PIE , RING , STACKED_LINES , STACKED_BARS } |
enum how to disply values More... | |
![]() | |
enum | FourWayFocus_t { FOCUS_LEFT , FOCUS_RIGHT , FOCUS_UP , FOCUS_DOWN } |
Public Member Functions | |
CGUIChart () | |
CGUIChart (CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE) | |
CGUIChart (CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, eC_Int iScalingXAxis, eC_Int iScalingYAxis, eC_Value vMaxShownNumberY, eC_Value vMinShownNumberY, const ObjectHandle_t &eID=NO_HANDLE) | |
CGUIChart (CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, eC_UInt iAxisColor, eC_UInt TextLabelColor, eC_UInt DrawLineColor, eC_UInt DrawPointColor, eC_UInt BarColor, eC_Value AxisLineWidth, eC_Value DrawLineWidth, eC_Value vScaleLength, eC_Value vPointSize, eC_UInt uiScalingXAxis, eC_UInt uiScalingYAxis, eC_Value vMaxShownNumberY, eC_Value vMinShownNumberY, eC_Value vZoomFactorY, eC_UInt uiZoomFactorX, const ObjectHandle_t &eID=NO_HANDLE) | |
virtual | ~CGUIChart () |
void | AddData (eC_Value vDataValue, eC_UInt uiDimension=0) |
virtual eC_Bool | DoButtonDown (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoClick (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoDrag (const eC_Value &vDeltaX, const eC_Value &vDeltaY, const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoDragEnd (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | DoDraw () |
eC_UInt | GetAxisColor () const |
eC_Value | GetAxisLineWidth () const |
eC_UInt | GetBarColor (const eC_UInt &uiIndex) const |
DataRepresentation_t | GetDataRepresentation () const |
eC_Value | GetDrawLineWidth () const |
CGUIRect | GetFocusArea () const |
CGUICommonEnums::AxisAlignment_t | GetHelperLineRepresentation () const |
eC_UInt | GetHorizontalHelperLineColor () const |
eC_UInt | GetLineColor (const eC_UInt &uiIndex) const |
eC_UInt | GetPointColor (const eC_UInt &uiIndex) const |
eC_Value | GetPointSize () const |
void | GetRangeX (eC_Int &iMinNumber, eC_Int &iMaxNumber) const |
void | GetRangeY (eC_Value &vMinValue, eC_Value &vMaxValue) const |
AxisRepresentation_t | GetRepresentationXAxis () const |
AxisRepresentation_t | GetRepresentationYAxis () const |
eC_Value | GetScaleLength () const |
eC_UInt | GetScalingXAxis () const |
eC_UInt | GetScalingYAxis () const |
eC_UInt | GetSelectionColor () const |
eC_Bool | GetShowBarData () const |
eC_Int | GetStartLabelValue () const |
eC_UInt | GetTextLabelColor () const |
eC_UInt | GetVerticalHelperLineColor () const |
eC_Value | GetZoomFactorX () const |
eC_Value | GetZoomFactorY () const |
virtual eC_Bool | IsHighlightable () const |
void | JumpToDataPoint (const eC_Int &iMinShownData) |
void | JumpToTheEnd () |
void | KeepLastXElemenets (const eC_UInt &uiDataAmountToKepp) |
virtual void | ReadFromStream () |
void | SetAxisColor (const eC_UInt &uiAxisColor) |
void | SetAxisColor (const GlobalProperty_t &eAxisColor) |
void | SetAxisLineWidth (const eC_Value &vAxisLineWidth) |
void | SetBarColor (const eC_UInt &uiIndex, const eC_UInt &uiBarColor) |
void | SetBarColor (const eC_UInt &uiIndex, const GlobalProperty_t &eBarColor) |
void | SetDataRepresentation (const DataRepresentation_t &eDataRepresentation) |
void | SetDrawLineWidth (const eC_Value &vDrawLineWidth) |
void | SetFont (const FontResource_t &eFontId) |
virtual void | SetHeight (const eC_Value &vY) |
void | SetHelperLineRepresentation (const CGUICommonEnums::AxisAlignment_t &eRepresentation) |
void | SetHorizontalHelperLineColor (const eC_UInt &uiColor) |
void | SetHorizontalHelperLineColor (const GlobalProperty_t &eColor) |
void | SetImages (const ImageResource_t &eImageBG) |
void | SetLineColor (const eC_UInt &uiIndex, const eC_UInt &uiLineColor) |
void | SetLineColor (const eC_UInt &uiIndex, const GlobalProperty_t &eLineColor) |
void | SetMaxValueY (const eC_Value &vMaxNumber) |
void | SetMinValueY (const eC_Value &vMinNumber) |
void | SetPointColor (const eC_UInt &uiIndex, const eC_UInt &uiPointColor) |
void | SetPointColor (const eC_UInt &uiIndex, const GlobalProperty_t &ePointColor) |
void | SetPointSize (const eC_Value &vPointSize) |
void | SetRangeX (const eC_Int &iMinNumber, const eC_Int &iMaxNumber) |
void | SetRangeY (const eC_Value &vMinValue, const eC_Value &vMaxValue) |
void | SetRepresentationXAxis (const AxisRepresentation_t &eXAxis) |
void | SetRepresentationYAxis (const AxisRepresentation_t &eYAxis) |
void | SetScaleLength (const eC_Value &vScaleLength) |
void | SetScalingXAxis (const eC_UInt &uiScalingXAxis) |
void | SetScalingYAxis (const eC_UInt &uiScalingYAxis) |
void | SetSelectionColor (const eC_UInt &uiSelectionColor) |
void | SetSelectionColor (const GlobalProperty_t &eSelectionColor) |
void | SetShowBarData (const eC_Bool &bShowBarData) |
void | SetStandardImages () |
void | SetStartLabelValue (const eC_Int &iStartValue) |
void | SetTextLabelColor (const eC_UInt &uiTextLabelColor) |
void | SetTextLabelColor (const GlobalProperty_t &eTextLabelColor) |
virtual eC_Bool | SetValue (CDataPoolEntry &rkValue) |
void | SetVerticalHelperLineColor (const eC_UInt &uiColor) |
void | SetVerticalHelperLineColor (const GlobalProperty_t &eColor) |
virtual void | SetWidth (const eC_Value &vX) |
void | SetZoomFactorX (const eC_Value &vZoomFactorX) |
void | SetZoomFactorY (const eC_Value &vZoomFactorY) |
void | WipeAllData () |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
void | ZoomInX () |
void | ZoomInY () |
void | ZoomOutX () |
void | ZoomOutY () |
![]() | |
CGUIObject () | |
CGUIObject (CGUICompositeObject *const pkParent, const CGUIRect &kRect, const ObjectHandle_t &eID=NO_HANDLE) | |
CGUIObject (CGUICompositeObject *const pkParent, const eC_Value &vX, const eC_Value &vY, const eC_Value &vWidth, const eC_Value &vHeight, const ObjectHandle_t &eID=NO_HANDLE) | |
CGUIObject (const CGUIObject &kSource) | |
virtual | ~CGUIObject () |
void | AddValueObserver (CGUIObserver *pkObserver) |
eC_Bool | CalculateInvalidatedRect (CGUIRect &rRect) const |
virtual eC_Bool | ClaimFocus () |
virtual void | CreateSnapshot (eC_UInt uiBackColor=0x00) |
eC_Bool | DataPoolConnectorExists () const |
void | DeleteSnapshot () |
virtual void | DisableSnapshotDrawing (eC_Bool bDeleteSnapshot=true) |
virtual eC_Bool | DoDraw () |
virtual eC_Bool | DoDrawSnapshot () |
virtual void | EnableSnapshotDrawing () |
virtual CGUIObject * | FindObject (const eC_Value &vAbsX, const eC_Value &vAbsY) |
virtual eC_Bool | FocusAny () |
virtual eC_Bool | FocusNext (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
virtual eC_Bool | FocusPrevious (CGUIObject *const pRefObj=NULL, const eC_Bool &bSubTreeOfRefObjDone=false) |
CGUIRect | GetAbsRect () const |
eC_Value | GetAbsXPos () const |
eC_Value | GetAbsXPosCenter () const |
eC_Value | GetAbsXPosREdge () const |
eC_Value | GetAbsYPos () const |
eC_Value | GetAbsYPosBEdge () const |
eC_Value | GetAbsYPosCenter () const |
eC_UByte | GetAlpha () const |
CGUIBehaviourDecorator * | GetBehaviour () |
const CGUIBehaviourDecorator * | GetBehaviour () const |
GUIBitmapPlaneID_t | GetBitmapID () const |
CGUIBitmapPlane & | GetBitmapPlane () const |
CGUIRect | GetCurrentAbsRect () const |
eC_Value | GetCurrentAbsXPos () const |
eC_Value | GetCurrentAbsXPosCenter () const |
eC_Value | GetCurrentAbsXPosREdge () const |
eC_Value | GetCurrentAbsYPos () const |
eC_Value | GetCurrentAbsYPosBEdge () const |
eC_Value | GetCurrentAbsYPosCenter () const |
CDataPoolConnector & | GetDataPoolConnector () |
eC_Value | GetDistanceBottom () const |
eC_Value | GetDistanceRight () const |
eC_Value | GetHalfHeight () const |
eC_Value | GetHalfWidth () const |
eC_Value | GetHeight () const |
ObjectHandle_t | GetID () const |
CGUILayouter * | GetLayouter () |
const CGUILayouter * | GetLayouter () const |
ObjectHandle_t | GetNeighborBottomID () const |
ObjectHandle_t | GetNeighborLeftID () const |
ObjectHandle_t | GetNeighborRightID () const |
ObjectHandle_t | GetNeighborTopID () const |
CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) |
const CGUIObject * | GetObjectByID (const ObjectHandle_t &eID, const eC_Bool &bOnlyVisible=false) const |
CGUIRect | GetOriginRect () const |
CGUICompositeObject * | GetParent () |
const CGUICompositeObject * | GetParent () const |
CGUIRect | GetRelRect () const |
eC_Value | GetRelXPos () const |
eC_Value | GetRelXPosCenter () const |
eC_Value | GetRelXPosREdge () const |
eC_Value | GetRelYPos () const |
eC_Value | GetRelYPosBEdge () const |
eC_Value | GetRelYPosCenter () const |
UUID_t | GetUUID () const |
eC_Value | GetWidth () const |
void | InvalidateArea () |
eC_Bool | IsClickable () const |
eC_Bool | IsClickThrough () const |
virtual eC_Bool | IsCompositeObject () const |
eC_Bool | IsDescendantOf (const CGUIObject *const pAncestor) const |
eC_Bool | IsDisabled () const |
eC_Bool | IsDragable () const |
eC_Bool | IsDragged () const |
eC_Bool | IsDrawingSnapshot () const |
eC_Bool | IsFocussable () const |
eC_Bool | IsFocussed () const |
eC_Bool | IsGrayedOut () const |
virtual eC_Bool | IsHighlightable () const |
eC_Bool | IsHighlighted () const |
eC_Bool | IsInvisible () const |
eC_Bool | IsPressed () const |
eC_Bool | IsStopFocus () const |
void | NotifyValueObservers (const CGUIValue &kValue, const eC_UInt uiX=0, const eC_UInt uiY=0) |
CGUIObject & | operator= (const CGUIObject &kSource) |
virtual void | ReadFromStream () |
virtual void | RefreshLayout (CGUILayouter::eMovedEdges_t eMovedEdges) const |
void | RemoveValueObserver (CGUIObserver *pkObserver) |
void | RenderToBitmap (eC_UInt uiBitmapID, eC_Value vXOffset=eC_FromInt(0), eC_Value vYOffset=eC_FromInt(0)) |
eC_Bool | RequestFocus () |
void | SetAlpha (eC_UByte ubAlpha) |
void | SetBehaviour (CGUIBehaviourDecorator *pkBehaviour) |
void | SetClickThrough (const eC_Bool &bClickThrough) |
virtual void | SetDisabled (const eC_Bool &bDisabled) |
virtual void | SetFocussable (const eC_Bool &bFocussable) |
virtual void | SetGrayedOut (const eC_Bool &bGrayOut) |
virtual void | SetHeight (const eC_Value &vY) |
void | SetID (const ObjectHandle_t &eID) |
virtual void | SetInvisible (const eC_Bool &bInvisible) |
void | SetLayouter (CGUILayouter *pLayouter) |
void | SetNeighborBottomID (const ObjectHandle_t eNewNeighborBottomID) |
void | SetNeighborIDs (const ObjectHandle_t eNewNeighborLeftID, const ObjectHandle_t eNewNeighborRightID, const ObjectHandle_t eNewNeighborTopID, const ObjectHandle_t eNewNeighborBottomID) |
void | SetNeighborLeftID (const ObjectHandle_t eNewNeighborLeftID) |
void | SetNeighborRightID (const ObjectHandle_t eNewNeighborRightID) |
void | SetNeighborTopID (const ObjectHandle_t eNewNeighborTopID) |
virtual void | SetParent (CGUICompositeObject *const pkParent) |
void | SetRelRect (const CGUIRect &kNewRect) |
virtual void | SetRelXPos (const eC_Value &vX) |
void | SetRelXPosCenter (const eC_Value &vXCenter) |
void | SetRelXPosREdge (const eC_Value &vX) |
virtual void | SetRelYPos (const eC_Value &vY) |
void | SetRelYPosBEdge (const eC_Value &vY) |
void | SetRelYPosCenter (const eC_Value &vYCenter) |
void | SetStopFocus (const eC_Bool &bDontFocusToParent) |
void | SetUUID (const UUID_t &kUUID) |
virtual eC_Bool | SetValue (CDataPoolEntry &rkValue) |
virtual eC_Bool | SetValue (const CGUIValue &rkValue) |
virtual void | SetWidth (const eC_Value &vX) |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
![]() | |
virtual eC_Bool | DoScale (const eC_Value &vDelta) |
virtual eC_Bool | DoUserEvent (CGUIEvent *const pEvent) |
virtual void | OnCreate () |
virtual void | OnDataPool (const DataPoolResource_t &eID) |
virtual void | OnDelete () |
virtual void | OnHide () |
virtual void | OnShow () |
virtual eC_Bool | DoLongClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoDoubleClick (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoButtonUp (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseEnter (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseLeave (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual eC_Bool | DoMouseMove (const eC_Value &vAbsX=eC_FromInt(-1), const eC_Value &vAbsY=eC_FromInt(-1)) |
virtual void | GetFocus () |
virtual void | LoseFocus () |
virtual eC_Bool | Decrease () |
virtual eC_Bool | Increase () |
virtual eC_Bool | DoKeyDown (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoKeyUp (const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoChar (const eC_UInt &uiKey, const GUIKeyIdentifier_t &eKeyIdentifier, const eC_UInt &uiModifiers) |
virtual eC_Bool | DoScroll (const eC_Value &vAbsX, const eC_Value &vAbsY, const eC_Value &vDelta, const eC_Bool &bModifierActive) |
![]() | |
const eC_String & | GetXMLTag () const |
virtual void | ReadFromStream () |
void | SetXMLTag (const eC_String &kXMLTag) |
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
![]() | |
virtual | ~CGUIAnimatable () |
Destructor. Removes all existing animation callbacks. | |
virtual void | DoAnimate (const eC_Value &vTimes=eC_FromInt(1)) |
virtual eC_Bool | IsAnimating () const |
virtual void | StartAnimation () |
virtual void | StopAnimation () |
Additional Inherited Members | |
![]() | |
static UUID_t | GenerateUUID () |
![]() | |
static const eC_Char | XMLTAG_ALPHA [] |
XML tag to be used writing alpha-value into a stream. | |
static const eC_Char | XMLTAG_CLICKTHROUGH [] |
XML tag to be used writing clickthrough-state into a stream. | |
static const eC_Char | XMLTAG_CONTROLCLASSID [] |
XML tag to be used when writing a control class ID into a stream. | |
static const eC_Char | XMLTAG_DISABLED [] |
XML tag to be used writing disabled-state into a stream. | |
static const eC_Char | XMLTAG_FOCUSSABLE [] |
XML tag to be used writing focussable-state into a stream. | |
static const eC_Char | XMLTAG_GRAYEDOUT [] |
XML tag to be used writing grayedout-state into a stream. | |
static const eC_Char | XMLTAG_HEIGHT [] |
XML tag to be used writing height into a stream. | |
static const eC_Char | XMLTAG_INVISIBLE [] |
XML tag to be used writing invisible-state into a stream. | |
static const eC_Char | XMLTAG_OBJECTID [] |
XML tag to be used writing object id into a stream. | |
static const eC_Char | XMLTAG_OVERRIDDENNEIGHBORS [] |
XML tag to be used writing overridden neighbors into a stream. | |
static const eC_Char | XMLTAG_UUID [] |
XML tag to be used when writing a UUID into a stream. | |
static const eC_Char | XMLTAG_WIDTH [] |
XML tag to be used writing width into a stream. | |
static const eC_Char | XMLTAG_XPOS [] |
XML tag to be used writing x-position into a stream. | |
static const eC_Char | XMLTAG_YPOS [] |
XML tag to be used writing y-position into a stream. | |
![]() | |
static const eC_Char | XMLTAG_BEHAVIOURCLASSID [] |
XML tag to be used when writing a behaviour class ID into a stream. | |
static const eC_Char | XMLTAG_BEHAVIOURCOUNT [] |
XML tag for count. | |
![]() | |
static const eC_Char | XMLTAG_CLASSVERSION [] |
![]() | |
virtual eC_Bool | CreateBitmapPlane () |
virtual eC_Bool | FourWayNext (FourWayFocus_t eFocusDirection) |
![]() | |
eC_UInt | ReadStreamingHeader (const eC_UInt &uiClassVersion, const eC_UInt &uiClassMinVersion=0) const |
void | WriteStreamingFooter (const eC_Bool &bWriteClassID) const |
void | WriteStreamingHeader (const eC_Bool &bWriteClassID, const eC_Char *const pkClassIDTag, const eC_Int &iClassID, const eC_UInt &uiClassVersion) const |
![]() | |
UUID_t | m_kUUID |
UUID of object. | |
This control can be used to visualize multiple data-sources in line- or bar-charts.
enum how to disply values
CGUIChart::CGUIChart | ( | CGUICompositeObject *const | pkParent, |
const eC_Value & | vX, | ||
const eC_Value & | vY, | ||
const eC_Value & | vWidth, | ||
const eC_Value & | vHeight, | ||
eC_UInt | iAxisColor, | ||
eC_UInt | TextLabelColor, | ||
eC_UInt | DrawLineColor, | ||
eC_UInt | DrawPointColor, | ||
eC_UInt | BarColor, | ||
eC_Value | AxisLineWidth, | ||
eC_Value | DrawLineWidth, | ||
eC_Value | vScaleLength, | ||
eC_Value | vPointSize, | ||
eC_UInt | uiScalingXAxis, | ||
eC_UInt | uiScalingYAxis, | ||
eC_Value | vMaxShownNumberY, | ||
eC_Value | vMinShownNumberY, | ||
eC_Value | vZoomFactorY, | ||
eC_UInt | uiZoomFactorX, | ||
const ObjectHandle_t & | eID = NO_HANDLE |
||
) |
Constructor Please use the SetImages method to set the correct images.
pkParent | Pointer to the designated parent object |
vX | X-position relative to its parent object |
vY | Y-position relative to its parent object |
vWidth | Width of the geometry object |
vHeight | Height of the geometry object |
iAxisColor | Color of the axis Ex(0xff000000) |
TextLabelColor | Color of the Text Lables Ex(0xff000000) |
DrawLineColor | Color of the Line that connects data points Ex(0xff000000) |
DrawPointColor | Color of the Data Points Ex(0xff123456) |
BarColor | Color of the Bars Ex(0xff000000) |
AxisLineWidth | Witdh of axis lines |
DrawLineWidth | Witdh of lines that connect Data Points |
vScaleLength | Length of the lines that go thru X and Y axis |
vPointSize | Size of the point to be drawn |
uiScalingXAxis | Number of parts in X axis (lines that cross X axis) |
uiScalingYAxis | Number of parts in Y axis (lines that cross Y axis) |
vMaxShownNumberY | Maximum lable number on Y axis (is not a constant AND changes dinamically depending on user interaction) |
vMinShownNumberY | Minimum lable number on Y axis (is not a constant AND changes dinamically depending on user interaction) |
vZoomFactorY | How much zoom will enlarge Y axis (best choice 2) |
uiZoomFactorX | How much zoom will enlarge X axis (best choice 2) |
eID | Object identifier of this object (choose NO_HANDLE if none is required) |
CGUIChart::CGUIChart | ( | CGUICompositeObject *const | pkParent, |
const eC_Value & | vX, | ||
const eC_Value & | vY, | ||
const eC_Value & | vWidth, | ||
const eC_Value & | vHeight, | ||
const ObjectHandle_t & | eID = NO_HANDLE |
||
) |
Constructor Please use the SetImages method to set the correct images.
pkParent | Pointer to the designated parent object |
vX | X-position relative to its parent object |
vY | Y-position relative to its parent object |
vWidth | Width of the geometry object |
vHeight | Height of the geometry object |
eID | Object-ID Parameters that will set up automatically: (iAxisColor, TextLabelColor, DrawLineColor, DrawPointColor, BarColor, AxisLineWidth, DrawLineWidth, vScaleLength, vPointSize uiScalingXAxis, uiScalingYAxis, vMaxShownNumberY, vMinShownNumberY, vZoomFactorY, uiZoomFactorX) |
CGUIChart::CGUIChart | ( | CGUICompositeObject *const | pkParent, |
const eC_Value & | vX, | ||
const eC_Value & | vY, | ||
const eC_Value & | vWidth, | ||
const eC_Value & | vHeight, | ||
eC_Int | iScalingXAxis, | ||
eC_Int | iScalingYAxis, | ||
eC_Value | vMaxShownNumberY, | ||
eC_Value | vMinShownNumberY, | ||
const ObjectHandle_t & | eID = NO_HANDLE |
||
) |
Constructor Please use the SetImages method to set the correct images.
pkParent | Pointer to the designated parent object |
vX | X-position relative to its parent object |
vY | Y-position relative to its parent object |
vWidth | Width of the geometry object |
vHeight | Height of the geometry object |
iScalingXAxis | initial scaling of x-axis |
iScalingYAxis | initial scaling of y-axis |
vMaxShownNumberY | Maximum lable number on Y axis (is not a constant AND changes dinamically depending on user interaction) |
vMinShownNumberY | Minimum lable number on Y axis (is not a constant AND changes dinamically depending on user interaction) |
eID | Object-ID Parameters that will set up automatically: (iAxisColor, TextLabelColor, DrawLineColor, DrawPointColor, BarColor, AxisLineWidth, DrawLineWidth, vScaleLength, vPointSize uiScalingXAxis, uiScalingYAxis, vZoomFactorY, uiZoomFactorX) |
|
virtual |
Destructor
CGUIChart::CGUIChart | ( | ) |
Standard constructor. Only to be called by factory. No user code should call this constructor, not even in streaming mode (that is, when GUILIANI_STREAM_GUI is defined)!
void CGUIChart::AddData | ( | eC_Value | vDataValue, |
eC_UInt | uiDimension = 0 |
||
) |
AddData Adds data to the array. Note that the dimension starts at 0. For example if only one line of data is displayed then its dimension is 0. If user wish to display two lines of data, then the user needs to append second dimension (1) and so on.
vDataValue | eC_Value |
uiDimension | eC_UInt |
|
virtual |
Called when the mouse button or finger is pressed down over an object.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
virtual |
Called when the object receives a click event. A click can e.g., be the result of a mouse click, a finger press/release sequence on touchscreens, or be triggered by a GK_ACTION keyboard event.
vAbsX | X-position in screen coordinates where the click occurred |
vAbsY | Y-position in screen coordinates where the click occurred |
Reimplemented from CGUIBehaviour.
|
virtual |
Called when the object receives a Drag event. Drags are typically created if the mouse is being used while a mouse-button is being pressed, or if the user moves his finger over a touchscreen.
vDeltaX | relative movement in x-direction since the last call of DoDrag/ButtonDown |
vDeltaY | relative movement in y-direction since the last call of DoDrag/ButtonDown |
vAbsX | current X-position in screen coordinates of the mouse |
vAbsY | current Y-position in screen coordinates of the mouse |
Reimplemented from CGUIBehaviour.
|
virtual |
Called on the dragged object (=the object on which the initial ButtonDown-event occurred) when the mouse button is released after a drag event.
vAbsX | current X-position in screen coordinates of the mouse |
vAbsY | current Y-position in screen coordinates of the mouse |
Reimplemented from CGUIBehaviour.
|
virtual |
Visualizes the object. It is forbidden to call SetRelXPos, SetRelYPos, SetWidth or SetHeight in DoDraw, i.e., it is not allowed to change the layout.
Reimplemented from CGUIObject.
eC_UInt CGUIChart::GetAxisColor | ( | ) | const |
GetAxisColor This method returns the color of the x- and y-axis (scaling color is also included).
eC_Value CGUIChart::GetAxisLineWidth | ( | ) | const |
GetAxisLineWidth This method returns the visual width of the axis lines (scaling lines are also included)
eC_UInt CGUIChart::GetBarColor | ( | const eC_UInt & | uiIndex | ) | const |
GetBarColor This method returns the color of the bar (bar-chart representation) depending on the dymensions. Default is 0 (first data array)
uiIndex | eC_UInt |
DataRepresentation_t CGUIChart::GetDataRepresentation | ( | ) | const |
This method returns the currently set representation of data points. It can be points, points and lines, lines or bars.
eC_Value CGUIChart::GetDrawLineWidth | ( | ) | const |
GetDrawLineWidth This method returns the visual width of the draw lines (line-chart representation)
CGUIRect CGUIChart::GetFocusArea | ( | ) | const |
Get the currently focussed area of data
CGUICommonEnums::AxisAlignment_t CGUIChart::GetHelperLineRepresentation | ( | ) | const |
This method returns the representation type of the helper lines
eC_UInt CGUIChart::GetHorizontalHelperLineColor | ( | ) | const |
This method returns the color of the horizontal helper lines
eC_UInt CGUIChart::GetLineColor | ( | const eC_UInt & | uiIndex | ) | const |
GetLineColor This method returns the color of the line (line-chart representation) depending on the dymensions. Default is 0 (first data array)
uiIndex |
eC_UInt CGUIChart::GetPointColor | ( | const eC_UInt & | uiIndex | ) | const |
GetPointColor This method returns the color of the point (point-chart representation) depending on the dymensions. Default is 0 (first data array)
uiIndex | eC_UInt |
eC_Value CGUIChart::GetPointSize | ( | ) | const |
GetPointSize This method returns the visual size of the datapoints
void CGUIChart::GetRangeX | ( | eC_Int & | iMinNumber, |
eC_Int & | iMaxNumber | ||
) | const |
Get the range for shown datapoints
iMinNumber | is the data point to be shown first |
iMaxNumber | is the data point to be shown last |
void CGUIChart::GetRangeY | ( | eC_Value & | vMinValue, |
eC_Value & | vMaxValue | ||
) | const |
Get the range for y-axis
vMinValue | minimum value |
vMaxValue | maximum value |
AxisRepresentation_t CGUIChart::GetRepresentationXAxis | ( | ) | const |
This method return the currently set representation of x-axis. (invisible, only-axis, axis and scaling, axis scaling and labels)
AxisRepresentation_t CGUIChart::GetRepresentationYAxis | ( | ) | const |
This method return the currently set representation of y-axis. (invisible, only-axis, axis and scaling, axis scaling and labels)
eC_Value CGUIChart::GetScaleLength | ( | ) | const |
GetScaleLength This method returns the visual lenght of the scales (x- and y-axis scaling)
eC_UInt CGUIChart::GetScalingXAxis | ( | ) | const |
GetScalingXAxis This method returns the scaling of X-axis.
eC_UInt CGUIChart::GetScalingYAxis | ( | ) | const |
GetScalingYAxis This method returns the scaling of Y-axis.
eC_UInt CGUIChart::GetSelectionColor | ( | ) | const |
GetBarColor This method returns the color of the selection Default is 0 (first data array)
eC_Bool CGUIChart::GetShowBarData | ( | ) | const |
Return if bar-data is currently shown
eC_Int CGUIChart::GetStartLabelValue | ( | ) | const |
Get the starting value for x-axis
eC_UInt CGUIChart::GetTextLabelColor | ( | ) | const |
GetDrawLineColor This method returns the color of the text that is used to draw all labels.
eC_UInt CGUIChart::GetVerticalHelperLineColor | ( | ) | const |
This method returns the color of the horizontal helper lines
eC_Value CGUIChart::GetZoomFactorX | ( | ) | const |
GetZoomFactorX This method returns the zoom factor of X-axis.
eC_Value CGUIChart::GetZoomFactorY | ( | ) | const |
GetZoomFactorY This method returns the zoom factor of Y-axis.
|
inlinevirtual |
This method checks if an object is highlightable. This refers to whether it can be highlighted via the event handler. If true the event handler may mark this object as the currently highlighted one. Thus, there is no special flag in CGUIObject that determines if an object is highlightable. The default determination is that the control is in none of the following states:
Reimplemented from CGUIObject.
void CGUIChart::JumpToDataPoint | ( | const eC_Int & | iMinShownData | ) |
Sets the minimum data point as first datapoint of the x axis For example - 100 data points and scaling of x axis is 10 SetMinShownData(20) will make it so that the x axis will display 20th data point first and 29th data point last
iMinShownData | is the data point to be shown first |
void CGUIChart::JumpToTheEnd | ( | ) |
JumpToTheEnd Whenever this method will be called the data-point view will jump to the end. That means that only the last datapoints will be displayed.
void CGUIChart::KeepLastXElemenets | ( | const eC_UInt & | uiDataAmountToKepp | ) |
KeepLastXElemenets This method keeps x amount of data points that are saved in this class. Note, if you are using DataPool then when the DataPool will notify this class again, all data points will come back.
uiDataAmountToKepp | eC_UInt |
|
virtual |
Reads all object attributes from streaming file. Only for use with GUIFactory. GUIStreamingFileReader has to be set in CGUI::Init().
Reimplemented from CGUIObject.
void CGUIChart::SetAxisColor | ( | const eC_UInt & | uiAxisColor | ) |
SetAxisColor
uiAxisColor |
void CGUIChart::SetAxisColor | ( | const GlobalProperty_t & | eAxisColor | ) |
SetAxisColor
eAxisColor |
void CGUIChart::SetAxisLineWidth | ( | const eC_Value & | vAxisLineWidth | ) |
SetAxisLineWidth This method sets the with of axis lines (that also includes the width of scaling lines)
vAxisLineWidth | eC_Value |
void CGUIChart::SetBarColor | ( | const eC_UInt & | uiIndex, |
const eC_UInt & | uiBarColor | ||
) |
SetBarColor
uiIndex | is the indes of the array of colors (starts from 0) |
uiBarColor |
void CGUIChart::SetBarColor | ( | const eC_UInt & | uiIndex, |
const GlobalProperty_t & | eBarColor | ||
) |
SetBarColor
uiIndex | is the indes of the array of colors (starts from 0) |
eBarColor |
void CGUIChart::SetDataRepresentation | ( | const DataRepresentation_t & | eDataRepresentation | ) |
This method changes the representation of data points. It can be points, points and lines, lines or bars.
eDataRepresentation | data representation |
void CGUIChart::SetDrawLineWidth | ( | const eC_Value & | vDrawLineWidth | ) |
SetDrawLineWidth This method sets the with of lines that are used to connect data points
vDrawLineWidth | eC_Value |
void CGUIChart::SetFont | ( | const FontResource_t & | eFontId | ) |
Sets the font used for the axis
eFontId | FontID |
|
virtual |
Sets this object's height to a new value.
vY | the new height |
Reimplemented from CGUIObject.
void CGUIChart::SetHelperLineRepresentation | ( | const CGUICommonEnums::AxisAlignment_t & | eRepresentation | ) |
This method sets display of helper-lines (none, hor, ver or both)
eRepresentation | type of helper-lines |
void CGUIChart::SetHorizontalHelperLineColor | ( | const eC_UInt & | uiColor | ) |
This method sets the color of the horizontal helper lines.
uiColor | color |
void CGUIChart::SetHorizontalHelperLineColor | ( | const GlobalProperty_t & | eColor | ) |
This method sets the color of the horizontal helper lines.
eColor | color |
void CGUIChart::SetImages | ( | const ImageResource_t & | eImageBG | ) |
SetImages Method to change the images used for the chart background. If the chart size varies from the supplied image's size, the image will automatically split into three portions. These are either a left/middle/right part for horizontal, or a top/middle/bottom part for vertical sliders. The left/top images will be constructed from the left/top half of the original image. Analogue, The right/bottom images will be constructor from the right/bottom half of the original image. The pixel row/column in the middle of the original image will be stretched to fill up the space, if the chart is to be displayed bigger than the original image.
eImageBG | ID of background image |
void CGUIChart::SetLineColor | ( | const eC_UInt & | uiIndex, |
const eC_UInt & | uiLineColor | ||
) |
SetLineColor
uiIndex | eC_Uint is the indes of the array of colors (starts from 0) |
uiLineColor |
void CGUIChart::SetLineColor | ( | const eC_UInt & | uiIndex, |
const GlobalProperty_t & | eLineColor | ||
) |
SetLineColor
uiIndex | eC_Uint is the indes of the array of colors (starts from 0) |
eLineColor |
void CGUIChart::SetMaxValueY | ( | const eC_Value & | vMaxNumber | ) |
Sets the maximum number of Y axis scaling
vMaxNumber | is the maximum number |
void CGUIChart::SetMinValueY | ( | const eC_Value & | vMinNumber | ) |
Sets the minimum number of Y axis scaling
vMinNumber | is the minimum number |
void CGUIChart::SetPointColor | ( | const eC_UInt & | uiIndex, |
const eC_UInt & | uiPointColor | ||
) |
SetPointColor
uiIndex | eC_Uint is the indes of the array of colors (starts from 0) |
uiPointColor |
void CGUIChart::SetPointColor | ( | const eC_UInt & | uiIndex, |
const GlobalProperty_t & | ePointColor | ||
) |
SetPointColor
uiIndex | eC_Uint is the indes of the array of colors (starts from 0) |
ePointColor |
void CGUIChart::SetPointSize | ( | const eC_Value & | vPointSize | ) |
SetPointSize This method sets the size of points that are used to draw data on the screen
vPointSize | eC_Value |
void CGUIChart::SetRangeX | ( | const eC_Int & | iMinNumber, |
const eC_Int & | iMaxNumber | ||
) |
Sets the range for shown data points It will start always from the first parameter, but if the last parameter will exceed normal scaling of x axis then the chart will display more datapoints than the input suggests.
iMinNumber | is the data point to be shown first |
iMaxNumber | is the data point to be shown last |
void CGUIChart::SetRangeY | ( | const eC_Value & | vMinValue, |
const eC_Value & | vMaxValue | ||
) |
Sets minimum and maximum value for y-axis
vMinValue | minimum value |
vMaxValue | maximum value |
void CGUIChart::SetRepresentationXAxis | ( | const AxisRepresentation_t & | eXAxis | ) |
This method changes the representation of x-axis. (invisible, only-axis, axis and scaling, axis scaling and labels)
eXAxis |
void CGUIChart::SetRepresentationYAxis | ( | const AxisRepresentation_t & | eYAxis | ) |
This method changes the representation of y-axis. (invisible, only-axis, axis and scaling, axis scaling and labels)
eYAxis |
void CGUIChart::SetScaleLength | ( | const eC_Value & | vScaleLength | ) |
SetScaleLength This method sets the lenght of scale lines (both x- and y-axis)
vScaleLength | eC_Value |
void CGUIChart::SetScalingXAxis | ( | const eC_UInt & | uiScalingXAxis | ) |
SetScalingXAxis This method sets the scaling of x-axis (amount of partitions - in how many parts will be x-axis divided) This dictetes how many datapoints (if datapoints > scaling) will be displayed in one chart frame
uiScalingXAxis | eC_UInt |
void CGUIChart::SetScalingYAxis | ( | const eC_UInt & | uiScalingYAxis | ) |
SetScalingYAxis This method sets the scaling of y-axis (amount of partitions - in how many parts will be y-axis divided) This dictetes how many labels will be on y-axis (not including the origin label)
uiScalingYAxis | eC_UInt |
void CGUIChart::SetSelectionColor | ( | const eC_UInt & | uiSelectionColor | ) |
SetSelectionColor
uiSelectionColor |
void CGUIChart::SetSelectionColor | ( | const GlobalProperty_t & | eSelectionColor | ) |
SetSelectionColor
eSelectionColor |
void CGUIChart::SetShowBarData | ( | const eC_Bool & | bShowBarData | ) |
This method turns on and off the value feedback method. ONLY works in bar-chart representation. Value feedback method shows the data value of the bar that is clicked by the user.
bShowBarData |
void CGUIChart::SetStandardImages | ( | ) |
SetStandardImages Sets standard images.
void CGUIChart::SetStartLabelValue | ( | const eC_Int & | iStartValue | ) |
SetStartLabelValue This method sets the value label at which x-axis starts
iStartValue | eC_Int |
void CGUIChart::SetTextLabelColor | ( | const eC_UInt & | uiTextLabelColor | ) |
SetTextLabelColor
uiTextLabelColor |
void CGUIChart::SetTextLabelColor | ( | const GlobalProperty_t & | eTextLabelColor | ) |
SetTextLabelColor
eTextLabelColor |
|
virtual |
Generic interface used by the DataPool for setting values in GUIObjects. By default, this maps directly onto the SetValue() API dealing with a single CGUIValue.
rkValue | Reference to the DataPoolEntry used for retrieving the value(s) |
Reimplemented from CGUIObject.
void CGUIChart::SetVerticalHelperLineColor | ( | const eC_UInt & | uiColor | ) |
This method sets the color of the horizontal helper lines
uiColor | color |
void CGUIChart::SetVerticalHelperLineColor | ( | const GlobalProperty_t & | eColor | ) |
This method sets the color of the horizontal helper lines
eColor | color |
|
virtual |
void CGUIChart::SetZoomFactorX | ( | const eC_Value & | vZoomFactorX | ) |
SetZoomFactorX This method sets the zoom factor of x-axis. That means that each time when the user zooms out the x-axis the ignore factor (data displayed per scale (default is 1)) will be multiplied by this number
vZoomFactorX | for x-axis |
void CGUIChart::SetZoomFactorY | ( | const eC_Value & | vZoomFactorY | ) |
SetZoomFactorY This method sets the zoom factor of y-axis. That means that each time when the user zooms out the y-axis the min and max numbers will be multiplied by this number.
vZoomFactorY | for y-axis |
void CGUIChart::WipeAllData | ( | ) |
WipeAllData This method deletes all data points that are saved in this class. Note, if you are using DataPool then when the DataPool will notify this class again, all data points will come back.
|
virtual |
Writes all object attributes to the streaming file. StreamWriter has to be initialized. Only for use with GUIStreamWriter.
bWriteClassID | This flag is used to select if writing of ControlID, leading and trailing tags is performed. Only GUIStreamWriter and GUICompositeObject have to set this flag true. |
Reimplemented from CGUIObject.
void CGUIChart::ZoomInX | ( | ) |
ZoomInX This method zooms in of x-axis (which means that less data points will be drawn in a single chart frame)
void CGUIChart::ZoomInY | ( | ) |
ZoomInY This method zooms out in y-axis (which means that the range between min and max is smaller)
void CGUIChart::ZoomOutX | ( | ) |
ZoomOutX This method zooms out of x-axis (which means that more data points will be drawn in a single chart frame)
void CGUIChart::ZoomOutY | ( | ) |
ZoomOutY This method zooms out of y-axis (which means that the range between min and max is bigger)