3 import tim.prune.correlate.PhotoCorrelator;
4 import tim.prune.function.AboutScreen;
5 import tim.prune.function.AddTimeOffset;
6 import tim.prune.function.CheckVersionScreen;
7 import tim.prune.function.HelpScreen;
8 import tim.prune.function.RearrangeWaypointsFunction;
9 import tim.prune.function.SetMapBgFunction;
10 import tim.prune.function.ShowThreeDFunction;
11 import tim.prune.function.charts.Charter;
12 import tim.prune.function.compress.CompressTrackFunction;
13 import tim.prune.function.distance.DistanceFunction;
14 import tim.prune.load.GpsLoader;
15 import tim.prune.save.GpsSaver;
16 import tim.prune.save.GpxExporter;
17 import tim.prune.save.KmlExporter;
18 import tim.prune.save.PovExporter;
21 * Class to provide access to functions
23 public abstract class FunctionLibrary
25 public static GenericFunction FUNCTION_GPXEXPORT = null;
26 public static GenericFunction FUNCTION_KMLEXPORT = null;
27 public static PovExporter FUNCTION_POVEXPORT = null;
28 public static GenericFunction FUNCTION_GPSLOAD = null;
29 public static GenericFunction FUNCTION_GPSSAVE = null;
30 public static RearrangeWaypointsFunction FUNCTION_REARRANGE_WAYPOINTS = null;
31 public static GenericFunction FUNCTION_COMPRESS = null;
32 public static GenericFunction FUNCTION_ADD_TIME_OFFSET = null;
33 public static GenericFunction FUNCTION_CORRELATE_PHOTOS = null;
34 public static GenericFunction FUNCTION_CHARTS = null;
35 public static GenericFunction FUNCTION_3D = null;
36 public static GenericFunction FUNCTION_DISTANCES = null;
37 public static GenericFunction FUNCTION_SET_MAP_BG = null;
38 public static GenericFunction FUNCTION_HELP = null;
39 public static GenericFunction FUNCTION_ABOUT = null;
40 public static GenericFunction FUNCTION_CHECK_VERSION = null;
44 * Initialise library of functions
45 * @param inApp App object to give to functions
47 public static void initialise(App inApp)
49 FUNCTION_GPXEXPORT = new GpxExporter(inApp);
50 FUNCTION_KMLEXPORT = new KmlExporter(inApp);
51 FUNCTION_POVEXPORT = new PovExporter(inApp);
52 FUNCTION_GPSLOAD = new GpsLoader(inApp);
53 FUNCTION_GPSSAVE = new GpsSaver(inApp);
54 FUNCTION_REARRANGE_WAYPOINTS = new RearrangeWaypointsFunction(inApp);
55 FUNCTION_COMPRESS = new CompressTrackFunction(inApp);
56 FUNCTION_ADD_TIME_OFFSET = new AddTimeOffset(inApp);
57 FUNCTION_CORRELATE_PHOTOS = new PhotoCorrelator(inApp);
58 FUNCTION_CHARTS = new Charter(inApp);
59 FUNCTION_3D = new ShowThreeDFunction(inApp);
60 FUNCTION_DISTANCES = new DistanceFunction(inApp);
61 FUNCTION_SET_MAP_BG = new SetMapBgFunction(inApp);
62 FUNCTION_HELP = new HelpScreen(inApp);
63 FUNCTION_ABOUT = new AboutScreen(inApp);
64 FUNCTION_CHECK_VERSION= new CheckVersionScreen(inApp);