Changeset 1581:9bb83c7f479b in lemon-0.x
- Timestamp:
- 07/22/05 13:04:27 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2083
- Location:
- gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/all_include.h
r1550 r1581 23 23 #define WIN_WIDTH 900 24 24 #define WIN_HEIGHT 600 25 25 #define ALMOST_ONE 0.99999999999999 26 26 27 27 #ifndef MAIN_PART -
gui/graph_displayer_canvas-edge.cc
r1579 r1581 137 137 if(j!=length) 138 138 { 139 if((number-(int)number)>ALMOST_ONE) 140 { 141 number=round(number); 142 } 139 143 int digit=(int)(number/maxpos); 140 144 str[j]=(digit+'0'); … … 175 179 if(j!=length) 176 180 { 181 if((number-(int)number)>ALMOST_ONE) 182 { 183 number=round(number); 184 } 177 185 int digit=(int)(number/maxpos); 178 186 str[j]=(digit+'0'); -
gui/graph_displayer_canvas-node.cc
r1579 r1581 136 136 //that is the deleter map 137 137 138 Graph::NodeMap<double> * actual_map ;138 Graph::NodeMap<double> * actual_map=NULL; 139 139 if(mapname!="Default") 140 140 { … … 166 166 if(j!=length) 167 167 { 168 int digit=(int)round(number/maxpos); 168 // std::cout << (number) << "-" << (int)number << "=" << (number)-(int)number << std::endl; 169 if((number-(int)number)>ALMOST_ONE) 170 { 171 // std::cout<<"rounding: " <<number<<std::endl; 172 number=round(number); 173 } 174 int digit=(int)(number/maxpos); 175 // std::cout << number << "/" << maxpos << "=" << digit << std::endl; 169 176 str[j]=(digit+'0'); 170 177 number-=digit*maxpos; … … 203 210 if(j!=length) 204 211 { 212 if((number-(int)number)>ALMOST_ONE) 213 { 214 number=round(number); 215 } 205 216 int digit=(int)(number/maxpos); 206 217 str[j]=(digit+'0'); -
gui/graph_displayer_canvas.cc
r1579 r1581 3 3 #include <math.h> 4 4 5 GraphDisplayerCanvas::GraphDisplayerCanvas(Graph & gr, CoordinatesMap & cm, MapStorage & ms, MapWin * mw):g(gr),nodesmap(g),edgesmap(g),edgetextmap(g),nodetextmap(g),displayed_graph(*(root()), 0, 0),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL), edgemap_to_edit(""),nodemap_to_edit(""),mapwin(mw)5 GraphDisplayerCanvas::GraphDisplayerCanvas(Graph & gr, CoordinatesMap & cm, MapStorage & ms, MapWin * mw):g(gr),nodesmap(g),edgesmap(g),edgetextmap(g),nodetextmap(g),displayed_graph(*(root()), 0, 0),canvasentrywidget(NULL),mapstorage(ms),isbutton(0),active_item(NULL),target_item(NULL),nodemap_to_edit(""),edgemap_to_edit(""),mapwin(mw) 6 6 { 7 7 -
gui/graphocska.lgf
r1579 r1581 2 2 id coordinates_x coordinates_y data 3 3 1 230 -80 1.123 4 2 230 100 3 5 3 120 -80 5 6 4 120 100 7 7 5 20 100 9 8 6 20 -80 11 9 7 -40 10 13 10 8 -100 100 15 11 9 -100 10 17 12 10 -100 -80 19 13 11 -200 -80 21 14 12 -200 10 23 15 13 -200 100 25 16 14 -300 100 27 17 15 -300 -80 29 4 2 230 100 3.234 5 3 120 -80 5.345 6 4 120 100 7.456 7 5 20 100 9.567 8 6 20 -80 11.678 9 7 -40 10 13.789 10 8 -100 100 15.890 11 9 -100 10 17.901 12 10 -100 -80 19.012 13 11 -200 -80 21.000 14 12 -200 10 23.001 15 13 -200 100 25.003 16 14 -300 100 27.004 17 15 -300 -80 29.9999 18 18 19 19 @edgeset
Note: See TracChangeset
for help on using the changeset viewer.