diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-20 11:34:39 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2005-05-20 11:34:39 +0000 |
commit | f680b80a513c991f9afdb6c96566cfbb22a7f208 (patch) | |
tree | e466d7f7b8f06872dec5ef420c577b5b75d2d65b /src/GipfelWidget.cxx | |
parent | b957c92f76e834f7727c2bcf259566cbd78b8002 (diff) |
add viewpoint name to control window
add viewpoint name to control window
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r-- | src/GipfelWidget.cxx | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index c291685..85669b1 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -1,5 +1,5 @@ // -// "$Id: GipfelWidget.cxx,v 1.31 2005/05/17 09:20:38 hofmann Exp $" +// "$Id: GipfelWidget.cxx,v 1.32 2005/05/20 13:34:39 hofmann Exp $" // // GipfelWidget routines. // @@ -317,6 +317,26 @@ GipfelWidget::get_height_dist_ratio() { return pan->get_height_dist_ratio(); } +const char * +GipfelWidget::get_viewpoint() { + return pan->get_viewpoint(); +} + +double +GipfelWidget::get_view_lat() { + return pan->get_view_lat(); +} + +double +GipfelWidget::get_view_long() { + return pan->get_view_long(); +} + +double +GipfelWidget::get_view_height() { + return pan->get_view_height(); +} + void GipfelWidget::set_height_dist_ratio(double r) { pan->set_height_dist_ratio(r); @@ -324,6 +344,27 @@ GipfelWidget::set_height_dist_ratio(double r) { redraw(); } +void +GipfelWidget::set_view_lat(double v) { + pan->set_view_lat(v); + set_labels(pan->get_visible_mountains()); + redraw(); +} + +void +GipfelWidget::set_view_long(double v) { + pan->set_view_long(v); + set_labels(pan->get_visible_mountains()); + redraw(); +} + +void +GipfelWidget::set_view_height(double v) { + pan->set_view_height(v); + set_labels(pan->get_visible_mountains()); + redraw(); +} + int GipfelWidget::comp_params() { if (m1 == NULL || m2 == NULL) { |