]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/threedee/ThreeDModel.java
Version 8, September 2009
[GpsPrune.git] / tim / prune / threedee / ThreeDModel.java
index 5123f7c83bf65d6ad557b49a96f5065da2ef262e..65f1152e913861555bd10a8f5786415bbe9ce15e 100644 (file)
@@ -18,11 +18,12 @@ public class ThreeDModel
        private int _altitudeCap = -1;
        private double _scaleFactor = 1.0;
        private double _altFactor = 1.0;
-       // TODO: How to store rods (lifts) in data?
+       // MAYBE: How to store rods (lifts) in data?
        private byte[] _pointTypes = null;
        private byte[] _pointHeights = null;
 
        private static final double DEFAULT_MODEL_SIZE = 10.0;
+       /** Minimum altitude cap */
        public static final int MINIMUM_ALTITUDE_CAP = 100;
 
        // Constants for point types
@@ -138,7 +139,7 @@ public class ThreeDModel
                {
                        DataPoint point = _track.getPoint(i);
                        _pointTypes[i] = (point.isWaypoint()?POINT_TYPE_WAYPOINT:(point.getSegmentStart()?POINT_TYPE_SEGMENT_START:POINT_TYPE_NORMAL_POINT));
-                       _pointHeights[i] = (byte) (point.getAltitude().getValue(Altitude.FORMAT_METRES) / 500);
+                       _pointHeights[i] = (byte) (point.getAltitude().getValue(Altitude.Format.METRES) / 500);
                }
        }