Changeset 157:7e6ad28aeb9e in glemon-0.x for graph_displayer_canvas.cc
- Timestamp:
- 10/02/06 20:52:00 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2970
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas.cc
r156 r157 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), zoomtrack(false), radius_ min(10), radius_max(40), radius_unit(1), mytab(mainw)8 edgemap_to_edit(""), autoscale(true), zoomtrack(false), radius_size(20), edge_width(10), mytab(mainw) 9 9 { 10 10 //base event handler is move tool … … 228 228 } 229 229 230 void GraphDisplayerCanvas::set NodeView(bool autoscale_p, bool zoomtrack_p, double min_p, double max_p, double unit_p)230 void GraphDisplayerCanvas::setView(bool autoscale_p, bool zoomtrack_p, double width_p, double radius_p) 231 231 { 232 232 autoscale=autoscale_p; 233 radius_min=min_p; 234 radius_max=max_p; 235 radius_unit=unit_p; 233 edge_width=width_p; 234 radius_size=radius_p; 236 235 237 236 if((!zoomtrack) && zoomtrack_p) … … 243 242 244 243 propertyChange(false, N_RADIUS); 245 } 246 247 void GraphDisplayerCanvas::getNodeView(bool & autoscale_p, bool & zoomtrack_p, double& min_p, double& max_p, double& unit_p) 244 propertyChange(true, E_WIDTH); 245 } 246 247 void GraphDisplayerCanvas::getView(bool & autoscale_p, bool & zoomtrack_p, double& width_p, double& radius_p) 248 248 { 249 249 autoscale_p=autoscale; 250 250 zoomtrack_p=zoomtrack; 251 min_p=radius_min; 252 max_p=radius_max; 253 unit_p=radius_unit; 254 } 251 width_p=edge_width; 252 radius_p=radius_size; 253 }
Note: See TracChangeset
for help on using the changeset viewer.