diff options
-rw-r--r-- | src/GipfelWidget.H | 2 | ||||
-rw-r--r-- | src/GipfelWidget.cxx | 5 | ||||
-rw-r--r-- | src/Panorama.H | 2 | ||||
-rw-r--r-- | src/Panorama.cxx | 6 |
4 files changed, 15 insertions, 0 deletions
diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 2210e07..a3f9ed7 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -113,6 +113,8 @@ class GipfelWidget : public Fl_Widget { void set_projection(ProjectionLSQ::Projection_t p); + void get_distortion_params(double *k0, double *k1); + void set_distortion_params(double k0, double k1); Hills *get_mountains(); diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 837a5fb..1c1ad92 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -477,6 +477,11 @@ GipfelWidget::set_projection(ProjectionLSQ::Projection_t p) { } void +GipfelWidget::get_distortion_params(double *k0, double *k1) { + pan->get_distortion_params(k0, k1); +} + +void GipfelWidget::set_distortion_params(double k0, double k1) { pan->set_distortion_params(k0, k1); redraw(); diff --git a/src/Panorama.H b/src/Panorama.H index fc27e43..1658da5 100644 --- a/src/Panorama.H +++ b/src/Panorama.H @@ -130,6 +130,8 @@ class Panorama { void set_projection(ProjectionLSQ::Projection_t p); + void get_distortion_params(double *k0, double *k1); + void set_distortion_params(double k0, double k1); int get_coordinates(double a_alph, double a_nick, double *x, double *y); diff --git a/src/Panorama.cxx b/src/Panorama.cxx index 32e5de2..32d96db 100644 --- a/src/Panorama.cxx +++ b/src/Panorama.cxx @@ -189,6 +189,12 @@ Panorama::set_scale(double s) { } void +Panorama::get_distortion_params(double *k0, double *k1) { + *k0 = parms.k0; + *k1 = parms.k1; +} + +void Panorama::set_distortion_params(double k0, double k1) { parms.k0 = k0; parms.k1 = k1; |