1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#ifndef GLAYOUT_H
#include "plugin.h"
typedef struct {
GGobiData *d, *e;
gint nnodes; /*-- nrows, not nrows_in_plot --*/
gint nedges;
vector_i *inEdges; /*-- one vector per node, each element an integer --*/
vector_i *outEdges; /*-- one vector per node, each element an integer --*/
/*
vector_i nInEdgesVisible;
vector_i nOutEdgesVisible;
*/
GtkWidget *window;
/*-- finding neighborhoods --*/
gboolean neighbors_find_p;
gint neighborhood_depth;
} graphactd;
void graphact_init (graphactd *ga);
void init_edge_vectors (gboolean reinit, PluginInstance *inst);
graphactd * graphactFromInst (PluginInstance *inst);
void ga_leaf_hide_cb (GtkWidget *btn, PluginInstance *inst);
void ga_orphans_hide_cb (GtkWidget *btn, PluginInstance *inst);
void ga_nodes_show_cb (GtkWidget *btn, PluginInstance *inst);
void count_visible_edges (PluginInstance *inst);
void show_neighbors_toggle_cb (GtkToggleButton *button, PluginInstance *inst);
void neighborhood_depth_cb (GtkWidget *w, gpointer cbd);
void ga_edge_tidy_cb (GtkWidget *, PluginInstance *);
#define GLAYOUT_H
#endif
|