gtkdatabox  1.0.0
About: GtkDatabox is a Gtk+-widget for live display of large amounts of fluctuating numerical data.
  Fossies Dox: gtkdatabox-1.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gtkdatabox_xyc_graph.h File Reference
#include <gtkdatabox_graph.h>
Include dependency graph for gtkdatabox_xyc_graph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _GtkDataboxXYCGraph
 
struct  _GtkDataboxXYCGraphClass
 

Macros

#define GTK_DATABOX_TYPE_XYC_GRAPH   (gtk_databox_xyc_graph_get_type ())
 
#define GTK_DATABOX_XYC_GRAPH(obj)
 
#define GTK_DATABOX_XYC_GRAPH_CLASS(klass)
 
#define GTK_DATABOX_IS_XYC_GRAPH(obj)
 
#define GTK_DATABOX_IS_XYC_GRAPH_CLASS(klass)
 
#define GTK_DATABOX_XYC_GRAPH_GET_CLASS(obj)
 

Typedefs

typedef struct _GtkDataboxXYCGraph GtkDataboxXYCGraph
 
typedef struct _GtkDataboxXYCGraphClass GtkDataboxXYCGraphClass
 

Functions

GType gtk_databox_xyc_graph_get_type (void)
 
guint gtk_databox_xyc_graph_get_length (GtkDataboxXYCGraph *xyc_graph)
 
guint gtk_databox_xyc_graph_get_maxlen (GtkDataboxXYCGraph *xyc_graph)
 
gfloat * gtk_databox_xyc_graph_get_X (GtkDataboxXYCGraph *xyc_graph)
 
gfloat * gtk_databox_xyc_graph_get_Y (GtkDataboxXYCGraph *xyc_graph)
 
guint gtk_databox_xyc_graph_get_xstart (GtkDataboxXYCGraph *xyc_graph)
 
guint gtk_databox_xyc_graph_get_ystart (GtkDataboxXYCGraph *xyc_graph)
 
guint gtk_databox_xyc_graph_get_xstride (GtkDataboxXYCGraph *xyc_graph)
 
guint gtk_databox_xyc_graph_get_ystride (GtkDataboxXYCGraph *xyc_graph)
 
GType gtk_databox_xyc_graph_get_xtype (GtkDataboxXYCGraph *xyc_graph)
 
GType gtk_databox_xyc_graph_get_ytype (GtkDataboxXYCGraph *xyc_graph)
 
void gtk_databox_xyc_graph_set_X_Y_length (GtkDataboxXYCGraph *xyc_graph, gfloat *X, gfloat *Y, guint len)
 

Macro Definition Documentation

◆ GTK_DATABOX_IS_XYC_GRAPH

#define GTK_DATABOX_IS_XYC_GRAPH (   obj)
Value:
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
#define GTK_DATABOX_TYPE_XYC_GRAPH

Definition at line 45 of file gtkdatabox_xyc_graph.h.

◆ GTK_DATABOX_IS_XYC_GRAPH_CLASS

#define GTK_DATABOX_IS_XYC_GRAPH_CLASS (   klass)
Value:
(G_TYPE_CHECK_CLASS_TYPE ((klass), \

Definition at line 47 of file gtkdatabox_xyc_graph.h.

◆ GTK_DATABOX_TYPE_XYC_GRAPH

#define GTK_DATABOX_TYPE_XYC_GRAPH   (gtk_databox_xyc_graph_get_type ())

SECTION:gtkdatabox_xyc_graph @short_description: An abstract anchestor for all graphs which display xy-values in one color. gtkdatabox_xyc_graph.h @see_also: GtkDatabox, GtkDataboxGraph, GtkDataboxPoints, GtkDataboxLines, GtkDataboxBars

GtkDataboxXYCGraphs are an abstract class for displaying XY-data in one color. The values for the data are represented as an array of X values and a second array of Y values. In order to actually display data, you should use one of the derived classes.

Definition at line 38 of file gtkdatabox_xyc_graph.h.

◆ GTK_DATABOX_XYC_GRAPH

#define GTK_DATABOX_XYC_GRAPH (   obj)
Value:
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \

Definition at line 39 of file gtkdatabox_xyc_graph.h.

◆ GTK_DATABOX_XYC_GRAPH_CLASS

#define GTK_DATABOX_XYC_GRAPH_CLASS (   klass)
Value:

Definition at line 42 of file gtkdatabox_xyc_graph.h.

◆ GTK_DATABOX_XYC_GRAPH_GET_CLASS

#define GTK_DATABOX_XYC_GRAPH_GET_CLASS (   obj)
Value:
(G_TYPE_INSTANCE_GET_CLASS ((obj), \

Definition at line 49 of file gtkdatabox_xyc_graph.h.

Typedef Documentation

◆ GtkDataboxXYCGraph

GtkDataboxXYCGraph:

GtkDataboxXYCGraphs are an abstract class for displaying XY-data in one color. The values for the data are represented as an array of X values and a second array of Y values. In order to actually display data, you should use one of the derived classes.

Definition at line 37 of file gtkdatabox_xyc_graph.h.

◆ GtkDataboxXYCGraphClass

GtkDataboxXYCGraphClass

The object class of GtkDataboxXYCGraph.

Definition at line 37 of file gtkdatabox_xyc_graph.h.

Function Documentation

◆ gtk_databox_xyc_graph_get_length()

guint gtk_databox_xyc_graph_get_length ( GtkDataboxXYCGraph xyc_graph)

◆ gtk_databox_xyc_graph_get_maxlen()

guint gtk_databox_xyc_graph_get_maxlen ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_maxlen: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the maxlen of the X and Y values arrays.

Return value: Size of X/Y arrays.

Definition at line 290 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::maxlen.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_type()

GType gtk_databox_xyc_graph_get_type ( void  )

◆ gtk_databox_xyc_graph_get_X()

gfloat* gtk_databox_xyc_graph_get_X ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_X: @xyc_graph: A GtkDataboxXYCGraph object

Gets the X values of the @xzc_graph.

Return value: Pointer to X values

Definition at line 242 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::X.

Referenced by G_DEFINE_TYPE(), gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_xstart()

guint gtk_databox_xyc_graph_get_xstart ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_xstart: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the start offset of the X values array. This is the element in the array pointed to by X that will be the first element plotted. If X is a pointer to a gfloat array, and xstart is 5, then x[5] will be the first data element. If Xstride is 1, then x[6] will be the second element. x[5 + len - 1] will be last element. Usually, xstart will be 0. It can be nonzero to allow for interleaved X/Y samples, or if the data is stored as a matrix, then X can point to the start of the matrix, xstart can be the column number, and xstride the number of columns.

Return value: The xstart value.

Definition at line 310 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::xstart.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_xstride()

guint gtk_databox_xyc_graph_get_xstride ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_xstride: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the stride offset of the X values array. This is the element in the array pointed to by X that will be the first element plotted. If X is a pointer to a gfloat array, and xstart is 5, then x[5] will be the first data element. If Xstride is 1, then x[6] will be the second element. x[5 + len - 1] will be last element. Usually, xstride will be 1. It can be nonzero to allow for interleaved X/Y samples, or if the data is stored as a matrix, then X can point to the start of the matrix, xstart can be the column number, and xstride the number of columns.

Return value: The xstride value.

Definition at line 350 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::xstride.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_xtype()

GType gtk_databox_xyc_graph_get_xtype ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_xtype: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the GType of the X array elements. This may be G_TYPE_FLOAT, G_TYPE_DOUBLE, or similar.

Return value: A GType, usually this is G_TYPE_FLOAT.

Definition at line 386 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::xtype.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_Y()

gfloat* gtk_databox_xyc_graph_get_Y ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_Y: @xyc_graph: A GtkDataboxXYCGraph object

Gets the Y values of the @xzc_graph.

Return value: Pointer to Y values

Definition at line 258 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::Y.

Referenced by G_DEFINE_TYPE(), gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_ystart()

guint gtk_databox_xyc_graph_get_ystart ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_ystart: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the start offset of the Y values array. This is the element in the array pointed to by Y that will be the first element plotted. If Y is a pointer to a gfloat array, and ystart is 5, then y[5] will be the first data element. If Ystride is 1, then y[6] will be the second element. y[5 + len - 1] will be last element. Usually, ystart will be 0. It can be nonzero to allow for interleaved X/Y samples, or if the data is stored as a matrix, then Y can point to the start of the matrix, ystart can be the column number, and ystride the number of columns.

Return value: The ystart value.

Definition at line 330 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::ystart.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_ystride()

guint gtk_databox_xyc_graph_get_ystride ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_ystride: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the stride offset of the Y values array. This is the element in the array pointed to by Y that will be the first element plotted. If Y is a pointer to a gfloat array, and ystart is 5, then y[5] will be the first data element. If Ystride is 1, then y[6] will be the second element. y[5 + len - 1] will be last element. Usually, ystride will be 1. It can be nonzero to allow for interleaved X/Y samples, or if the data is stored as a matrix, then Y can point to the start of the matrix, ystart can be the column number, and ystride the number of columns.

Return value: The ystride value.

Definition at line 370 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::ystride.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_get_ytype()

GType gtk_databox_xyc_graph_get_ytype ( GtkDataboxXYCGraph xyc_graph)

gtk_databox_xyc_graph_get_ytype: @xyc_graph: A GtkDataboxXYCGraph object

Gets the the GType of the Y array elements. This may be G_TYPE_FLOAT, G_TYPE_DOUBLE, or similar.

Return value: A GType, usually this is G_TYPE_FLOAT.

Definition at line 402 of file gtkdatabox_xyc_graph.c.

References GTK_DATABOX_IS_XYC_GRAPH, and _GtkDataboxXYCGraphPrivate::ytype.

Referenced by gtk_databox_bars_real_draw(), gtk_databox_lines_real_draw(), gtk_databox_markers_real_draw(), gtk_databox_points_real_draw(), and gtk_databox_xyc_graph_get_property().

◆ gtk_databox_xyc_graph_set_X_Y_length()

void gtk_databox_xyc_graph_set_X_Y_length ( GtkDataboxXYCGraph xyc_graph,
gfloat *  X,
gfloat *  Y,
guint  len 
)