branch | gui |
changeset 76 | 76f4f2ae0e7d |
parent 53 | e73d7540bd24 |
child 87 | b44281e4cca7 |
1:ebc936751b45 | 2:11390e85cbce |
---|---|
1 #include "graph_displayer_canvas.h" |
1 #include "graph_displayer_canvas.h" |
2 #include "broken_edge.h" |
2 #include "broken_edge.h" |
3 #include <math.h> |
3 #include <cmath> |
4 |
4 |
5 void GraphDisplayerCanvas::zoomIn() |
5 void GraphDisplayerCanvas::zoomIn() |
6 { |
6 { |
7 set_pixels_per_unit( |
7 set_pixels_per_unit( |
8 (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit()); |
8 (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit()); |