GwyGraphCurveModel

GwyGraphCurveModel — Representation of a one graph curve.

Synopsis




enum        GwyGraphCurveType;
struct      GwyGraphCurveModel;
struct      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);

Object Hierarchy


  GObject
   +----GwyGraphCurveModel

Implemented Interfaces

GwyGraphCurveModel implements GwySerializable and GwyWatchable.

Description

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.

Details

enum GwyGraphCurveType

typedef enum {
    GWY_GRAPH_CURVE_HIDDEN      = 0,
    GWY_GRAPH_CURVE_POINTS      = 1,
    GWY_GRAPH_CURVE_LINE        = 2,
    GWY_GRAPH_CURVE_LINE_POINTS = 3
} GwyGraphCurveType;


struct GwyGraphCurveModel

struct GwyGraphCurveModel;


struct GwyGraphCurveModelClass

struct GwyGraphCurveModelClass {

    GObjectClass parent_class;

    void (*value_changed)(GwyGraphCurveModel *gcmodel);  /* XXX: only formal */

    gpointer reserved1;
    gpointer reserved2;
    gpointer reserved3;
};


gwy_graph_curve_model_new ()

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.

gwy_graph_curve_model_save_curve ()

gboolean    gwy_graph_curve_model_save_curve
                                            (GwyGraphCurveModel *gcmodel,
                                             GwyGraph *graph,
                                             gint index_);

gcmodel :
graph :
index_ :
Returns :

gwy_graph_add_curve_from_model ()

void        gwy_graph_add_curve_from_model  (GwyGraph *graph,
                                             GwyGraphCurveModel *gcmodel);

graph :
gcmodel :