eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_graph.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define D4D_GRAPH_BORDER_OFF
 This is offset of graph area from object borders. If not defined, it sets to 5 pixel as a default. More...
 
#define D4D_GRAPH_VALUE_OFF
 This is offset of value text from graph area borders. If not defined, it sets to 2 pixel as a default. More...
 
#define D4D_COLOR_GRAPH_GRID
 This is default graph grid color definition. If not defined, it sets to D4D_COLOR_LIGHT_GREY as a default. More...
 
#define D4D_GRAPH_F_MODE_MASK
 Mask of graph mode (it's used internaly by driver) More...
 
#define D4D_GRAPH_F_MODE_NORMAL
 The graph runs in normal mode, this means that a graph adds new data to the screen. When it fills up the whole graph area, the object clears all the shown points and draws a new graph on a screen from new data. More...
 
#define D4D_GRAPH_F_MODE_ROLLOVER
 The graph runs in roll-over mode, this means the graph adds new data to the screen. When it fills up the whole graph area, the graph clears only the latest sample and draws a new one instead of the cleared one. More...
 
#define D4D_GRAPH_F_VALUE_X_NONE
 Mask of graph value enable from axis X (it's used internaly by driver) More...
 
#define D4D_GRAPH_F_VALUE_X_BOTT
 Enables a label for axis X on the bottom side of the graph. More...
 
#define D4D_GRAPH_F_VALUE_X_TOP
 Enables the label for axis X on the top side of the graph. More...
 
#define D4D_GRAPH_F_VALUE_Y_NONE
 Mask of graph value enable from axis Y (it's used internaly by driver) More...
 
#define D4D_GRAPH_F_VALUE_Y_LEFT
 Enables the label for axis Y on the left side of the graph. More...
 
#define D4D_GRAPH_F_VALUE_Y_RIGHT
 Enables the label for axis Y on the right side of the graph. More...
 
#define D4D_GRAPH_F_DEFAULT
 This is graph init flags. If not defined, it sets to (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_BEVEL_RAISED | D4D_GRAPH_F_MODE_ROLLOVER | D4D_GRAPH_F_VALUE_X_BOTT | D4D_GRAPH_F_VALUE_Y_RIGHT ) as a default. More...
 
#define D4D_GRAPH_TXT_PRTY_DEFAULT
 This is graph init text properties. If not defined, it sets to (D4D_ALIGN_H_CENTER_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_GRAPH_FNT_PRTY_DEFAULT
 This is graph init font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_GRAPH_LBL_FNT_PRTY_DEFAULT
 This is graph labels init font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_GRAPH_TRACE_TYPE_MASK
 Just mask of type range (it's used internaly by driver) More...
 
#define D4D_GRAPH_TRACE_TYPE_LINE
 The trace looks like a normal line, all individual sample points are connected by the lines. More...
 
#define D4D_GRAPH_TRACE_TYPE_DOT
 The trace is drawn only from measured points. More...
 
#define D4D_GRAPH_TRACE_TYPE_AREA
 The trace fills up the area under measured samples. More...
 
#define D4D_GRAPH_TRACE_TYPE_AREA_INV
 The trace fills up the area of measured samples. More...
 
#define D4D_GET_GRAPH(pObj)
 
#define _D4D_DECLARE_GRAPH_BEGIN(type, name, text, x, y, cx, cy, radius, pMargin, pRelations, gx, gy, dataLen, flags, pScheme, fontId, lblFontId, pOnNeedLblTxt, pUser, pOnValch, pOnUsrMsg)
 Macro that create the Graph object structure in memory including all substructures. More...
 
#define D4D_DECLARE_GRAPH_TRACE(pData, clr, line, type)
 Macro that is used to add trace to graph definition. More...
 
#define D4D_DECLARE_GRAPH_END()
 Macro that is used to end of graph definition. More...
 
#define D4D_DECLARE_GRAPH_BEGIN(name, text, x, y, cx, cy, gx, gy, dataLen, flags, pScheme, fontId, lblFontId, pOnNeedLblTxt, pUser, pOnValch, pOnUsrMsg)
 Macro that create the Graph object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_GRAPH_BEGIN(name, text, x, y, cx, cy, gx, gy, dataLen, fontId, lblFontId)
 Macro that create the Graph object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_RGRAPH_BEGIN(name, text, x, y, cx, cy, radius, gx, gy, dataLen, flags, pScheme, fontId, lblFontId, pOnNeedLblTxt, pUser, pOnValch, pOnUsrMsg)
 Macro that create the rounded Graph object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_RGRAPH_BEGIN(name, text, x, y, cx, cy, radius, gx, gy, dataLen, fontId, lblFontId)
 Macro that create the rounded Graph object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_GRAPH_BEGIN_INRAM(name, text, x, y, cx, cy, gx, gy, dataLen, flags, pScheme, fontId, lblFontId, pOnNeedLblTxt, pUser, pOnValch, pOnUsrMsg)
 Same as D4D_DECLARE_GRAPH_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_GRAPH_BEGIN_INRAM(name, text, x, y, cx, cy, gx, gy, dataLen, fontId, lblFontId)
 Same as D4D_DECLARE_STD_GRAPH_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_RGRAPH_BEGIN_INRAM(name, text, x, y, cx, cy, radius, gx, gy, dataLen, flags, pScheme, fontId, lblFontId, pOnNeedLblTxt, pUser, pOnValch, pOnUsrMsg)
 Same as D4D_DECLARE_RGRAPH_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_RGRAPH_BEGIN_INRAM(name, text, x, y, cx, cy, radius, gx, gy, dataLen, fontId, lblFontId)
 Same as D4D_DECLARE_STD_RGRAPH_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_GraphSetText
 

Typedefs

typedef Byte D4D_GRAPH_VALUE
 Type definition of graph value type - this is standard type used for graph data input. More...
 
typedef LWord D4D_GRAPH_SAMPLE_IX
 Type definition of graph dat asample type. More...
 
typedef void(* D4D_GRAPH_ON_CHANGE )(D4D_OBJECT *pThis)
 Type definition of graph on change callback function. More...
 
typedef D4D_TCHAR *(* D4D_GRAPH_ON_NEED_LABEL )(D4D_OBJECT_PTR pThis, D4D_BOOL axisX, D4D_INDEX gridIx, D4D_GRAPH_SAMPLE_IX sampleIx)
 Type definition of graph on need label call back function. More...
 
typedef Word D4D_GRAPH_DATA_LEN
 

Functions

D4D_BOOL D4D_GraphAddTraceData (D4D_OBJECT_PTR pObj, D4D_INDEX trace_ix, D4D_GRAPH_VALUE value)
 The function add new data to one trace. More...
 
void D4D_GraphAddTracesData (D4D_OBJECT_PTR pObj, D4D_GRAPH_VALUE *pValues)
 The function add new data to all traces. More...
 
void D4D_GraphClearAll (D4D_OBJECT_PTR pObj)
 The function clears all internal data of graph object. More...
 
D4D_GRAPH_SAMPLE_IX D4D_GraphGetSampleIndex (D4D_OBJECT_PTR pObj)
 The function returns the current data sample index. More...
 
D4D_COOR D4D_GraphGetSizeX (D4D_OBJECT_PTR pObj)
 The function returns the size of graph traces in axis X. More...
 
D4D_BOOL D4D_GraphSetScaleX (D4D_OBJECT_PTR pObj, Byte mul, Byte div)
 Function sets the new scale of axis X of the graph. More...
 
D4D_BOOL D4D_GraphSetDataWidth (D4D_OBJECT_PTR pObj, D4D_INDEX samples)
 Function sets the new scale of the axis X of the graph. More...
 

Variables

const D4D_OBJECT_SYS_FUNCTION d4d_graphSysFunc
 

Detailed Description

D4D Driver graph object header file.

Author
Petr Gargulak
Version
0.0.29.0
Date
Jan-14-2014

Definition in file d4d_graph.h.

Macro Definition Documentation

#define D4D_GET_GRAPH (   pObj)

Definition at line 234 of file d4d_graph.h.

#define D4D_GraphSetText

Definition at line 483 of file d4d_graph.h.

Typedef Documentation

Definition at line 186 of file d4d_graph.h.

Variable Documentation

const D4D_OBJECT_SYS_FUNCTION d4d_graphSysFunc

Definition at line 53 of file d4d_graph.c.