COIN-OR::LEMON - Graph Library

Changeset 156:c5cdf6690cdf in glemon-0.x for graph_displayer_canvas-zoom.cc


Ignore:
Timestamp:
09/28/06 16:32:40 (13 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@2961
Message:

Zoom tracking of nodes is implemented and is switchable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graph_displayer_canvas-zoom.cc

    r89 r156  
    66  set_pixels_per_unit(
    77      (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit());
     8  if(zoomtrack)
     9    {
     10      propertyChange(false, N_RADIUS);
     11    }
    812}
    913
     
    1216  set_pixels_per_unit(
    1317      (1.0 - (double) zoom_step / 100.0) * get_pixels_per_unit());
     18  if(zoomtrack)
     19    {
     20      propertyChange(false, N_RADIUS);
     21    }
    1422}
    1523
     
    3240  double ppu2 = (double) ah / fabs(y2 - y1);
    3341  set_pixels_per_unit((ppu1 < ppu2) ? ppu1 : ppu2);
     42
     43  if(zoomtrack)
     44    {
     45      propertyChange(false, N_RADIUS);
     46    }
    3447}
    3548
     
    3851  updateScrollRegion();
    3952  set_pixels_per_unit(1.0);
     53
     54  if(zoomtrack)
     55    {
     56      propertyChange(false, N_RADIUS);
     57    }
    4058}
    4159
Note: See TracChangeset for help on using the changeset viewer.