summaryrefslogtreecommitdiff
path: root/src/Panorama.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-13 20:24:53 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-04-13 20:24:53 +0000
commitcb69ce80f60b07e152ca464c2c08eaeb3b159ec6 (patch)
tree37ea856f254afca991650b75da93b3f1eeabbeed /src/Panorama.cxx
parent5e7c5bafd0828f09ca66d5311636700b51cc77ea (diff)
add h_d slider
add h_d slider
Diffstat (limited to 'src/Panorama.cxx')
-rw-r--r--src/Panorama.cxx14
1 files changed, 11 insertions, 3 deletions
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();
}