summaryrefslogtreecommitdiff
path: root/src/Panorama.H
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-08-06 19:40:26 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2005-08-06 19:40:26 +0100
commitd5fb89e3c35bd2e568329ac229f104a271e1bb4c (patch)
tree4bfc17c91248e7c63986db6d0fda63c7e9adf6e8 /src/Panorama.H
parent955cc1ac466200b2c92ef161c049cd222192d56f (diff)
major refactoring:
break out projection specific stuff from Panorama into own class. Unfortunately the performance is much worse...
Diffstat (limited to 'src/Panorama.H')
-rw-r--r--src/Panorama.H19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/Panorama.H b/src/Panorama.H
index 3e247d2..4981bcb 100644
--- a/src/Panorama.H
+++ b/src/Panorama.H
@@ -23,11 +23,8 @@
#define PANORAMA_H
#include "Hill.H"
-
-typedef enum {
- PROJECTION_NORMAL = 0,
- PROJECTION_PANORAMIC = 1
-} Projection_t;
+#include "Projection.H"
+#include "ViewParams.H"
class Panorama {
private:
@@ -37,12 +34,8 @@ class Panorama {
Hills *mountains;
Hills *close_mountains;
Hills *visible_mountains;
- int x1, y1, x2, y2;
- double a_center;
- double scale;
- double a_nick;
- double a_tilt;
- Projection_t projection;
+ ViewParams parms;
+ Projection *proj;
int get_pos(const char *name, double *phi, double *lam, double *height);
@@ -74,9 +67,7 @@ class Panorama {
double get_value(Hills *p);
- void set_projection(Projection_t mode);
-
- Projection_t get_projection();
+ double pi_d, deg2rad;
public:
Panorama();