From cb69ce80f60b07e152ca464c2c08eaeb3b159ec6 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 13 Apr 2005 20:24:53 +0000 Subject: add h_d slider add h_d slider --- src/Panorama.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/Panorama.cxx') diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 7236d3e..995b5ec 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -1,5 +1,5 @@ // -// "$Id: Panorama.cxx,v 1.3 2005/04/13 21:58:31 hofmann Exp $" +// "$Id: Panorama.cxx,v 1.4 2005/04/13 22:24:53 hofmann Exp $" // // PSEditWidget routines. // @@ -33,7 +33,7 @@ Panorama::Panorama() { visible_mountains = NULL; m1 = NULL; m2 = NULL; - height_dist_ratio = 0.10; + height_dist_ratio = 0.07; pi = asin(1.0) * 2.0; deg2rad = pi / 180.0; a_center = 0.2*pi; @@ -140,13 +140,21 @@ Panorama::move_mountain(Mountain *m, int x, int y) { void Panorama::set_center_angle(double a) { a_center = a; - fprintf(stderr, "--> %f\n", a); + fprintf(stderr, "--> angle%f\n", a); update_visible_mountains(); } void Panorama::set_scale(double s) { scale = s; + fprintf(stderr, "-->scale %f\n", s); + update_visible_mountains(); +} + +void +Panorama::set_height_dist_ratio(double r) { + height_dist_ratio = r; + fprintf(stderr, "-->ratio %f\n", r); update_visible_mountains(); } -- cgit v1.2.3