6 #ifndef GUI_GRAPH_SCENE_H_
7 #define GUI_GRAPH_SCENE_H_
10 #include <QGraphicsScene>
18 #include "node_widget.h"
19 #include "edge_widget.h"
20 #include "graph_model.h"
21 #include "graph_model_item.h"
131 std::map<QString, NodeWidget*> node_widgets_;
Definition: graph_model.h:36
GraphScene(GraphModel *graph, QObject *parent=0)
Definition: graph_scene.cc:3
void populateScene()
Definition: graph_scene.cc:20
NodeWidget * add_node_widget(QModelIndex item_index)
Definition: graph_scene.cc:162
void set_color_column(int color)
Definition: graph_scene.cc:142
Definition: graph_scene.h:24
GraphModel * model()
Definition: graph_scene.cc:129
void set_node_label_column(int column_idx)
Definition: graph_scene.cc:133
void del_node_widget(QModelIndex item_index)
Definition: graph_scene.cc:201
NodeWidget * get_node_widget(std::string item_name)
Definition: graph_scene.cc:146
void set_xy_columns(int x_idx, int y_idx)
Definition: graph_scene.cc:137
std::vector< std::string > get_names_of_all_nodes()
Definition: graph_scene.cc:217
void set_model(GraphModel *model)
Definition: graph_scene.cc:116
virtual ~GraphScene()
Definition: graph_scene.cc:12
int nodes()
Definition: graph_scene.cc:213