summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 19:15:31 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 19:15:31 +0100
commit2bb6b0766cbc941fa3bfc1b5ed17cf530c841ba3 (patch)
treed3a96ad10b7d51ebf75c3b466a51a0d16356b569
parentfaf5dff31fcbafb5cfa8575b85ffaf2408ff5d39 (diff)
add get_distortion_parms()
-rw-r--r--src/GipfelWidget.H2
-rw-r--r--src/GipfelWidget.cxx5
-rw-r--r--src/Panorama.H2
-rw-r--r--src/Panorama.cxx6
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;