![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyGraphCurveModelGwyGraphCurveModel — Representation of a one graph curve. |
enum GwyGraphCurveType; GwyGraphCurveModel; GwyGraphCurveModelClass; GObject* gwy_graph_curve_model_new (void); gboolean gwy_graph_curve_model_save_curve (GwyGraphCurveModel *gcmodel, GwyGraph *graph, gint index_); void gwy_graph_add_curve_from_model (GwyGraph *graph, GwyGraphCurveModel *gcmodel);
GwyGraphCurveModel represents information about a graph curve necessary to fully reconstruct it. It will be meaningfully used by the new generation of graph widgets and should be mostly ignored for now.
typedef enum { GWY_GRAPH_CURVE_HIDDEN = 0, GWY_GRAPH_CURVE_POINTS = 1, GWY_GRAPH_CURVE_LINE = 2, GWY_GRAPH_CURVE_LINE_POINTS = 3 } GwyGraphCurveType;
typedef struct { GObjectClass parent_class; void (*value_changed)(GwyGraphCurveModel *gcmodel); /* XXX: only formal */ gpointer reserved1; gpointer reserved2; gpointer reserved3; } GwyGraphCurveModelClass;
GObject* gwy_graph_curve_model_new (void);
Creates a new graph curve model.
With current generation of graph widgets it is useless without gwy_graph_curve_model_save_curve().
Returns : | New empty graph curve model as a GObject. |
gboolean gwy_graph_curve_model_save_curve (GwyGraphCurveModel *gcmodel, GwyGraph *graph, gint index_);
gcmodel : | |
graph : | |
index_ : | |
Returns : |
void gwy_graph_add_curve_from_model (GwyGraph *graph, GwyGraphCurveModel *gcmodel);
graph : | |
gcmodel : |
<< GwyGraphModel | 3D Widgets >> |