1.1 --- a/graph_displayer_canvas.h Mon Oct 09 08:06:31 2006 +0000
1.2 +++ b/graph_displayer_canvas.h Thu Oct 12 11:39:29 2006 +0000
1.3 @@ -268,6 +268,10 @@
1.4 ///event handler for the case when map editor tool is active
1.5 bool mapEditEventHandler(GdkEvent*);
1.6
1.7 +private:
1.8 + ///moves node according to the given parameters
1.9 + void moveNode(double, double, Gnome::Canvas::Item * item=NULL, Node node=INVALID);
1.10 +
1.11 public:
1.12 ///Moves the text to new place
1.13 void textReposition(XY);
1.14 @@ -314,6 +318,13 @@
1.15 ///\param mapname name of new map
1.16 int addNewEdgeMap(double init,std::string mapname);
1.17
1.18 + void reDesignGraph();
1.19 +
1.20 + void get_design_data(double &, double &, int &);
1.21 + void set_attraction(double);
1.22 + void set_propulsation(double);
1.23 + void set_iteration(int);
1.24 +
1.25 private:
1.26 ///Deletes the given element.
1.27 void deleteItem(Node);
1.28 @@ -398,6 +409,15 @@
1.29 ///Edge width
1.30 double edge_width;
1.31
1.32 + ///Iteration number during graph design
1.33 + int iterations;
1.34 +
1.35 + ///Attraction factor during graph design
1.36 + double attraction;
1.37 +
1.38 + ///Propulsation factor during graph design
1.39 + double propulsation;
1.40 +
1.41 private:
1.42
1.43 ///reference to the container, in which the canvas is