GwyGraphModel

GwyGraphModel — Representation of a graph.

Synopsis




            GwyGraphModel;
            GwyGraphModelClass;
GObject*    gwy_graph_model_new             (GwyGraph *graph);
GtkWidget*  gwy_graph_new_from_model        (GwyGraphModel *gmodel);
gint        gwy_graph_model_get_n_curves    (GwyGraphModel *gmodel);
void        gwy_graph_model_add_curve       (GwyGraphModel *gmodel,
                                             GwyGraphCurveModel *curve);
void        gwy_graph_model_remove_all_curves
                                            (GwyGraphModel *gmodel);

Object Hierarchy


  GObject
   +----GwyGraphModel

Implemented Interfaces

GwyGraphModel implements GwySerializable and GwyWatchable.

Properties


  "n"                    gint                  : Read / Write
  "title"                gchararray            : Read / Write

Description

GwyGraphModel represents information about a graph 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

GwyGraphModel

typedef struct _GwyGraphModel GwyGraphModel;


GwyGraphModelClass

typedef struct {
    GObjectClass parent_class;

    void (*value_changed)(GwyGraphModel *gmodel);  /* XXX: only formal */

    gpointer reserved1;
    gpointer reserved2;
    gpointer reserved3;
    gpointer reserved4;
    gpointer reserved5;
} GwyGraphModelClass;


gwy_graph_model_new ()

GObject*    gwy_graph_model_new             (GwyGraph *graph);

Creates a new graph model.

graph : A graph to represent.
Returns : New graph model as a GObject.

gwy_graph_new_from_model ()

GtkWidget*  gwy_graph_new_from_model        (GwyGraphModel *gmodel);

gmodel :
Returns :

gwy_graph_model_get_n_curves ()

gint        gwy_graph_model_get_n_curves    (GwyGraphModel *gmodel);

gmodel :
Returns :

gwy_graph_model_add_curve ()

void        gwy_graph_model_add_curve       (GwyGraphModel *gmodel,
                                             GwyGraphCurveModel *curve);

gmodel :
curve :

gwy_graph_model_remove_all_curves ()

void        gwy_graph_model_remove_all_curves
                                            (GwyGraphModel *gmodel);

gmodel :

Property Details

The "n" property

  "n"                    gint                  : Read / Write

Changed number of curves in graph.

Allowed values: [0,100]

Default value: 0


The "title" property

  "title"                gchararray            : Read / Write

Changed title of graph.

Default value: "new graph"