Changeset 156:c5cdf6690cdf in glemon-0.x for graph_displayer_canvas.cc
- Timestamp:
- 09/28/06 16:32:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2961
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.cc
r154 r156 6 6 nodetextmap(mainw.mapstorage.graph), displayed_graph(*(root()), 0, 0), 7 7 isbutton(0), active_item(NULL), target_item(NULL), nodemap_to_edit(""), 8 edgemap_to_edit(""), autoscale(true), radius_min(10), radius_max(40), radius_unit(1), mytab(mainw)8 edgemap_to_edit(""), autoscale(true), zoomtrack(false), radius_min(10), radius_max(40), radius_unit(1), mytab(mainw) 9 9 { 10 10 //base event handler is move tool … … 228 228 } 229 229 230 void GraphDisplayerCanvas::setNodeView(bool autoscale_p, double min_p, double max_p, double unit_p)230 void GraphDisplayerCanvas::setNodeView(bool autoscale_p, bool zoomtrack_p, double min_p, double max_p, double unit_p) 231 231 { 232 232 autoscale=autoscale_p; … … 234 234 radius_max=max_p; 235 235 radius_unit=unit_p; 236 237 if((!zoomtrack) && zoomtrack_p) 238 { 239 fixed_zoom_factor=get_pixels_per_unit(); 240 } 241 242 zoomtrack=zoomtrack_p; 243 236 244 propertyChange(false, N_RADIUS); 237 245 } 238 246 239 void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, double& min_p, double& max_p, double& unit_p)247 void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, bool & zoomtrack_p, double& min_p, double& max_p, double& unit_p) 240 248 { 241 249 autoscale_p=autoscale; 250 zoomtrack_p=zoomtrack; 242 251 min_p=radius_min; 243 252 max_p=radius_max;
Note: See TracChangeset
for help on using the changeset viewer.