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