3 import tim.prune.correlate.AudioCorrelator;
4 import tim.prune.correlate.PhotoCorrelator;
5 import tim.prune.function.*;
6 import tim.prune.function.autoplay.AutoplayFunction;
7 import tim.prune.function.charts.Charter;
8 import tim.prune.function.compress.CompressTrackFunction;
9 import tim.prune.function.compress.DeleteMarkedPointsFunction;
10 import tim.prune.function.compress.MarkLiftsFunction;
11 import tim.prune.function.compress.MarkPointsInRectangleFunction;
12 import tim.prune.function.deletebydate.DeleteByDateFunction;
13 import tim.prune.function.distance.DistanceFunction;
14 import tim.prune.function.edit.PointNameEditor;
15 import tim.prune.function.estimate.EstimateTime;
16 import tim.prune.function.estimate.LearnParameters;
17 import tim.prune.function.gpsies.GetGpsiesFunction;
18 import tim.prune.function.gpsies.UploadGpsiesFunction;
19 import tim.prune.function.sew.SewTrackSegmentsFunction;
20 import tim.prune.function.sew.SplitSegmentsFunction;
21 import tim.prune.function.srtm.DownloadSrtmFunction;
22 import tim.prune.function.srtm.LookupSrtmFunction;
23 import tim.prune.function.weather.GetWeatherForecastFunction;
24 import tim.prune.load.AudioLoader;
25 import tim.prune.load.BabelLoadFromFile;
26 import tim.prune.load.BabelLoadFromGps;
27 import tim.prune.save.GpsSaver;
28 import tim.prune.save.GpxExporter;
29 import tim.prune.save.ImageExporter;
30 import tim.prune.save.KmlExporter;
31 import tim.prune.save.PovExporter;
32 import tim.prune.save.SvgExporter;
35 * Class to provide access to functions
37 public abstract class FunctionLibrary
39 public static GenericFunction FUNCTION_GPXEXPORT = null;
40 public static GenericFunction FUNCTION_KMLEXPORT = null;
41 public static PovExporter FUNCTION_POVEXPORT = null;
42 public static SvgExporter FUNCTION_SVGEXPORT = null;
43 public static GenericFunction FUNCTION_IMAGEEXPORT = null;
44 public static GenericFunction FUNCTION_GPSLOAD = null;
45 public static GenericFunction FUNCTION_GPSSAVE = null;
46 public static GenericFunction FUNCTION_IMPORTBABEL = null;
47 public static GenericFunction FUNCTION_SAVECONFIG = null;
48 public static GenericFunction FUNCTION_EDIT_WAYPOINT_NAME = null;
49 public static GenericFunction FUNCTION_REARRANGE_WAYPOINTS = null;
50 public static GenericFunction FUNCTION_SELECT_SEGMENT = null;
51 public static GenericFunction FUNCTION_SPLIT_SEGMENTS = null;
52 public static GenericFunction FUNCTION_SEW_SEGMENTS = null;
53 public static GenericFunction FUNCTION_REARRANGE_PHOTOS = null;
54 public static GenericFunction FUNCTION_COMPRESS = null;
55 public static GenericFunction FUNCTION_MARK_LIFTS = null;
56 public static DeleteMarkedPointsFunction FUNCTION_DELETE_MARKED_POINTS = null;
57 public static GenericFunction FUNCTION_DELETE_RANGE = null;
58 public static GenericFunction FUNCTION_CROP_TRACK = null;
59 public static GenericFunction FUNCTION_MARK_IN_RECTANGLE = null;
60 public static GenericFunction FUNCTION_DELETE_BY_DATE = null;
61 public static SingleNumericParameterFunction FUNCTION_INTERPOLATE = null;
62 public static GenericFunction FUNCTION_LOOKUP_SRTM = null;
63 public static GenericFunction FUNCTION_DOWNLOAD_SRTM = null;
64 public static GenericFunction FUNCTION_NEARBY_WIKIPEDIA = null;
65 public static GenericFunction FUNCTION_SEARCH_WIKIPEDIA = null;
66 public static GenericFunction FUNCTION_DOWNLOAD_OSM = null;
67 public static GenericFunction FUNCTION_ADD_TIME_OFFSET = null;
68 public static GenericFunction FUNCTION_ADD_ALTITUDE_OFFSET = null;
69 public static GenericFunction FUNCTION_CONVERT_NAMES_TO_TIMES = null;
70 public static GenericFunction FUNCTION_DELETE_FIELD_VALUES = null;
71 public static GenericFunction FUNCTION_PASTE_COORDINATES = null;
72 public static GenericFunction FUNCTION_FIND_WAYPOINT = null;
73 public static GenericFunction FUNCTION_DUPLICATE_POINT = null;
74 public static GenericFunction FUNCTION_CONNECT_TO_POINT = null;
75 public static GenericFunction FUNCTION_DISCONNECT_PHOTO = null;
76 public static GenericFunction FUNCTION_REMOVE_PHOTO = null;
77 public static GenericFunction FUNCTION_DISCONNECT_AUDIO = null;
78 public static GenericFunction FUNCTION_CORRELATE_PHOTOS = null;
79 public static GenericFunction FUNCTION_ROTATE_PHOTO_LEFT = null;
80 public static GenericFunction FUNCTION_ROTATE_PHOTO_RIGHT = null;
81 public static GenericFunction FUNCTION_PHOTO_POPUP = null;
82 public static GenericFunction FUNCTION_IGNORE_EXIF_THUMB = null;
83 public static GenericFunction FUNCTION_CHARTS = null;
84 public static GenericFunction FUNCTION_3D = null;
85 public static GenericFunction FUNCTION_DISTANCES = null;
86 public static GenericFunction FUNCTION_FULL_RANGE_DETAILS = null;
87 public static GenericFunction FUNCTION_AUTOPLAY_TRACK = null;
88 public static GenericFunction FUNCTION_ESTIMATE_TIME = null;
89 public static GenericFunction FUNCTION_LEARN_ESTIMATION_PARAMS = null;
90 public static GenericFunction FUNCTION_GET_GPSIES = null;
91 public static GenericFunction FUNCTION_UPLOAD_GPSIES = null;
92 public static GenericFunction FUNCTION_GET_WEATHER_FORECAST = null;
93 public static GenericFunction FUNCTION_LOAD_AUDIO = null;
94 public static GenericFunction FUNCTION_REMOVE_AUDIO = null;
95 public static GenericFunction FUNCTION_CORRELATE_AUDIOS = null;
96 public static GenericFunction FUNCTION_PLAY_AUDIO = null;
97 public static GenericFunction FUNCTION_STOP_AUDIO = null;
98 public static GenericFunction FUNCTION_SET_MAP_BG = null;
99 public static GenericFunction FUNCTION_SET_DISK_CACHE = null;
100 public static GenericFunction FUNCTION_SET_PATHS = null;
101 public static GenericFunction FUNCTION_SET_COLOURS = null;
102 public static SingleNumericParameterFunction FUNCTION_SET_LINE_WIDTH = null;
103 public static GenericFunction FUNCTION_SET_LANGUAGE = null;
104 public static SingleNumericParameterFunction FUNCTION_SET_ALTITUDE_TOLERANCE = null;
105 public static GenericFunction FUNCTION_HELP = null;
106 public static GenericFunction FUNCTION_SHOW_KEYS = null;
107 public static GenericFunction FUNCTION_ABOUT = null;
108 public static GenericFunction FUNCTION_CHECK_VERSION = null;
112 * Initialise library of functions
113 * @param inApp App object to give to functions
115 public static void initialise(App inApp)
117 FUNCTION_GPXEXPORT = new GpxExporter(inApp);
118 FUNCTION_KMLEXPORT = new KmlExporter(inApp);
119 FUNCTION_POVEXPORT = new PovExporter(inApp);
120 FUNCTION_SVGEXPORT = new SvgExporter(inApp);
121 FUNCTION_IMAGEEXPORT = new ImageExporter(inApp);
122 FUNCTION_GPSLOAD = new BabelLoadFromGps(inApp);
123 FUNCTION_GPSSAVE = new GpsSaver(inApp);
124 FUNCTION_IMPORTBABEL = new BabelLoadFromFile(inApp);
125 FUNCTION_SAVECONFIG = new SaveConfig(inApp);
126 FUNCTION_EDIT_WAYPOINT_NAME = new PointNameEditor(inApp);
127 FUNCTION_REARRANGE_WAYPOINTS = new RearrangeWaypointsFunction(inApp);
128 FUNCTION_SELECT_SEGMENT = new SelectSegmentFunction(inApp);
129 FUNCTION_SPLIT_SEGMENTS = new SplitSegmentsFunction(inApp);
130 FUNCTION_SEW_SEGMENTS = new SewTrackSegmentsFunction(inApp);
131 FUNCTION_REARRANGE_PHOTOS = new RearrangePhotosFunction(inApp);
132 FUNCTION_COMPRESS = new CompressTrackFunction(inApp);
133 FUNCTION_MARK_LIFTS = new MarkLiftsFunction(inApp);
134 FUNCTION_DELETE_MARKED_POINTS = new DeleteMarkedPointsFunction(inApp);
135 FUNCTION_DELETE_RANGE = new DeleteSelectedRangeFunction(inApp);
136 FUNCTION_CROP_TRACK = new CropToSelection(inApp);
137 FUNCTION_MARK_IN_RECTANGLE = new MarkPointsInRectangleFunction(inApp);
138 FUNCTION_DELETE_BY_DATE = new DeleteByDateFunction(inApp);
139 FUNCTION_INTERPOLATE = new InterpolateFunction(inApp);
140 FUNCTION_LOOKUP_SRTM = new LookupSrtmFunction(inApp);
141 FUNCTION_DOWNLOAD_SRTM = new DownloadSrtmFunction(inApp);
142 FUNCTION_NEARBY_WIKIPEDIA = new GetWikipediaFunction(inApp);
143 FUNCTION_SEARCH_WIKIPEDIA = new SearchWikipediaNames(inApp);
144 FUNCTION_DOWNLOAD_OSM = new DownloadOsmFunction(inApp);
145 FUNCTION_ADD_TIME_OFFSET = new AddTimeOffset(inApp);
146 FUNCTION_ADD_ALTITUDE_OFFSET = new AddAltitudeOffset(inApp);
147 FUNCTION_CONVERT_NAMES_TO_TIMES = new ConvertNamesToTimes(inApp);
148 FUNCTION_DELETE_FIELD_VALUES = new DeleteFieldValues(inApp);
149 FUNCTION_PASTE_COORDINATES = new PasteCoordinates(inApp);
150 FUNCTION_FIND_WAYPOINT = new FindWaypoint(inApp);
151 FUNCTION_DUPLICATE_POINT = new DuplicatePoint(inApp);
152 FUNCTION_CONNECT_TO_POINT = new ConnectToPointFunction(inApp);
153 FUNCTION_DISCONNECT_PHOTO = new DisconnectPhotoFunction(inApp);
154 FUNCTION_REMOVE_PHOTO = new RemovePhotoFunction(inApp);
155 FUNCTION_CORRELATE_PHOTOS = new PhotoCorrelator(inApp);
156 FUNCTION_ROTATE_PHOTO_LEFT = new RotatePhoto(inApp, false);
157 FUNCTION_ROTATE_PHOTO_RIGHT = new RotatePhoto(inApp, true);
158 FUNCTION_PHOTO_POPUP = new PhotoPopupFunction(inApp);
159 FUNCTION_IGNORE_EXIF_THUMB = new IgnoreExifThumb(inApp);
160 FUNCTION_CHARTS = new Charter(inApp);
161 FUNCTION_3D = new ShowThreeDFunction(inApp);
162 FUNCTION_DISTANCES = new DistanceFunction(inApp);
163 FUNCTION_FULL_RANGE_DETAILS = new FullRangeDetails(inApp);
164 FUNCTION_AUTOPLAY_TRACK = new AutoplayFunction(inApp);
165 FUNCTION_ESTIMATE_TIME = new EstimateTime(inApp);
166 FUNCTION_LEARN_ESTIMATION_PARAMS = new LearnParameters(inApp);
167 FUNCTION_GET_GPSIES = new GetGpsiesFunction(inApp);
168 FUNCTION_UPLOAD_GPSIES = new UploadGpsiesFunction(inApp);
169 FUNCTION_GET_WEATHER_FORECAST = new GetWeatherForecastFunction(inApp);
170 FUNCTION_LOAD_AUDIO = new AudioLoader(inApp);
171 FUNCTION_REMOVE_AUDIO = new RemoveAudioFunction(inApp);
172 FUNCTION_CORRELATE_AUDIOS = new AudioCorrelator(inApp);
173 FUNCTION_PLAY_AUDIO = new PlayAudioFunction(inApp);
174 FUNCTION_STOP_AUDIO = new StopAudioFunction(inApp);
175 FUNCTION_DISCONNECT_AUDIO = new DisconnectAudioFunction(inApp);
176 FUNCTION_SET_MAP_BG = new SetMapBgFunction(inApp);
177 FUNCTION_SET_DISK_CACHE = new DiskCacheConfig(inApp);
178 FUNCTION_SET_PATHS = new SetPathsFunction(inApp);
179 FUNCTION_SET_COLOURS = new SetColours(inApp);
180 FUNCTION_SET_LINE_WIDTH = new SetLineWidth(inApp);
181 FUNCTION_SET_LANGUAGE = new SetLanguage(inApp);
182 FUNCTION_SET_ALTITUDE_TOLERANCE = new SetAltitudeTolerance(inApp);
183 FUNCTION_HELP = new HelpScreen(inApp);
184 FUNCTION_SHOW_KEYS = new ShowKeysScreen(inApp);
185 FUNCTION_ABOUT = new AboutScreen(inApp);
186 FUNCTION_CHECK_VERSION= new CheckVersionScreen(inApp);