]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/function/Export3dFunction.java
Version 11, August 2010
[GpsPrune.git] / tim / prune / function / Export3dFunction.java
1 package tim.prune.function;
2
3 import tim.prune.App;
4 import tim.prune.GenericFunction;
5
6 /**
7  * Abstract superclass for pov and svg export functions
8  */
9 public abstract class Export3dFunction extends GenericFunction
10 {
11         /** altitude exaggeration factor */
12         protected double _altFactor = 50.0;
13
14         /**
15          * Required constructor
16          * @param inApp App object
17          */
18         public Export3dFunction(App inApp) {
19                 super(inApp);
20         }
21
22         /**
23          * Set the coordinates for the camera
24          * @param inX X coordinate of camera
25          * @param inY Y coordinate of camera
26          * @param inZ Z coordinate of camera
27          */
28         public abstract void setCameraCoordinates(double inX, double inY, double inZ);
29
30         /**
31          * @param inFactor exaggeration factor
32          */
33         public void setAltitudeExaggeration(double inFactor)
34         {
35                 if (inFactor >= 1.0) {
36                         _altFactor = inFactor;
37                 }
38         }
39 }