2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 * @brief definition header file for sample navigation application
15 #ifndef SAMPLENAVI_DEFINE_H_
16 #define SAMPLENAVI_DEFINE_H_
19 //#define _USE_CAMERA_
20 //#define _USE_OPENCV_
21 //#define _E3D_H_OUTPUT_PRINT_
23 #define _USE_Z_LIMIT_FIX_
25 /* Default data (for samplenavi.conf) */
26 #define DEF_USB_CAMERA_ID (0)
27 #define DEF_LANDMARK_POSITION (-80)
28 #define DEF_LANDMARK_ROTATION (90)
31 #define ROUTE_PLANE_HEIGHT (-190)
32 #define ROUTE_PLANE_WIDTH (100)
34 #define FRONT_SIDE_Z (-190)
35 #define Z0_POSITION (0)
36 #define FOCUS_LENGTH (512)
38 #define Z_LIMIT (-150)
39 #define COORD_CONVERT_COEFFICIENT (20)
41 #define CULLING_LENGTH_LANDMARKS (5000)
42 #define CULLING_LENGTH_ROUTE (20000)
44 #define GOAL_MESSAGE_LENGTH (3500)
47 #define MAX_DRAW_ROUTE_POINTS (500)
48 #define ROUTE_DIVISION_NUMBER (10)
49 #define BOX_FIXED_LENGTH (150)
52 #define MAX_LANDMARK_POINTS (1000)
53 #define LANDMARK_WIDTH (100)
56 #define TIME_INTERVAL_CAMERA (0.10)
57 #define TIME_INTERVAL_AR (0.066)
58 #define TIME_INTERVAL_MAP (1.0)
61 #define W_WIDTH (1920)
62 #define W_HEIGHT (1080-64) /* StatusBar window height:64 */
64 #define W_NAVI_WIDTH (W_WIDTH / 2)
65 #define W_NAVI_HEIGHT (W_HEIGHT - W_TEXTAREA_HEIGHT)
67 #define W_NAVI_ORIGINE_X (0)
68 #define W_NAVI_ORIGINE_Y (0)
70 #define W_MAP_WIDTH (W_WIDTH / 2)
71 #define W_MAP_HEIGHT (W_HEIGHT - W_TEXTAREA_HEIGHT)
72 #define W_MAP_ORIGINE_X (W_WIDTH / 2)
73 #define W_MAP_ORIGINE_Y (0)
75 #define W_TEXTAREA_X (0)
76 #define W_TEXTAREA_Y (W_HEIGHT - W_TEXTAREA_HEIGHT)
77 #define W_TEXTAREA_HEIGHT (64)
78 #define W_TEXTAREA_WIDTH (W_WIDTH)
80 #define W_NAVIBUTTON_HEIGHT (44)
81 #define W_NAVIBUTTON_WIDTH (146)
82 #define W_NAVIBUTTON_X (W_WIDTH - 10 - W_NAVIBUTTON_WIDTH)
83 #define W_NAVIBUTTON_Y (W_TEXTAREA_Y + 10)
85 #define W_GOALMESSAGE_HEIGHT (50)
86 #define W_GOALMESSAGE_WIDTH (478)
87 #define W_GOALMESSAGE_X (75)
88 #define W_GOALMESSAGE_Y (566)
90 #define W_ADDRESS_HEIGHT (50)
91 #define W_ADDRESS_WIDTH (570)
92 #define W_ADDRESS_X (32)
93 #define W_ADDRESS_Y (437)
95 #define MAX_ROUTE_POINTS (500)
96 #define LON_CONVERT (90550.8)
97 #define LAT_CONVERT (111240)
99 #define W_METER_HEIGHT (300)
100 #define W_METER_WIDTH (320)
101 #define W_METER_X (0)
102 #define W_METER_Y (W_HEIGHT - 180)
104 #define W_METER_UNIT_HEIGHT (45)
105 #define W_METER_UNIT_WIDTH (478)
106 #define W_METER_UNIT_X (180)
107 #define W_METER_UNIT_Y (W_HEIGHT - W_METER_UNIT_HEIGHT)
110 #define RESOURCE_DIR "/opt/apps/org.tizen.ico.app-samplenavi/res"
111 #define IMAGES_DIR "/opt/apps/org.tizen.ico.app-samplenavi/res/images"
118 #define LAYER_CAMERA (0)
119 #define LAYER_ROUTE (5)
120 #define LAYER_LANDMARK (10)
121 #define LAYER_MAP (30)
122 #define LAYER_UI (30)
124 #endif /* SAMPLENAVI_DEFINE_H_ */