Fix internal bug and change the design of ico-app-samplenavi
[profile/ivi/ico-uxf-homescreen-sample-apps.git] / src / define.h
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  */
9 /**
10  * @brief   definition header file for sample navigation application
11  *
12  * @date    Apr-25-2013
13  */
14
15 #ifndef SAMPLENAVI_DEFINE_H_
16 #define SAMPLENAVI_DEFINE_H_
17
18 /* FUNCTION SELECT */
19 //#define _USE_CAMERA_
20 //#define _USE_OPENCV_
21 //#define _E3D_H_OUTPUT_PRINT_
22 #define _SHOW_FPS_
23 #define _USE_Z_LIMIT_FIX_
24
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)
29
30 /* for 3D Layer */
31 #define ROUTE_PLANE_HEIGHT          (-190)
32 #define ROUTE_PLANE_WIDTH           (100)
33
34 #define FRONT_SIDE_Z                (-190)
35 #define Z0_POSITION                 (0)
36 #define FOCUS_LENGTH                (512)
37
38 #define Z_LIMIT                     (-150)
39 #define COORD_CONVERT_COEFFICIENT   (20)
40
41 #define CULLING_LENGTH_LANDMARKS    (5000)
42 #define CULLING_LENGTH_ROUTE        (20000)
43
44 #define GOAL_MESSAGE_LENGTH         (3500)
45
46 /* For route point */
47 #define MAX_DRAW_ROUTE_POINTS       (500)
48 #define ROUTE_DIVISION_NUMBER       (10)
49 #define BOX_FIXED_LENGTH            (150)
50
51 /* For Landmarks */
52 #define MAX_LANDMARK_POINTS         (1000)
53 #define LANDMARK_WIDTH              (100)
54
55 /* Timers */
56 #define TIME_INTERVAL_CAMERA        (0.10)
57 #define TIME_INTERVAL_AR            (0.066)
58 #define TIME_INTERVAL_MAP           (1.0)
59
60 /* Window Size */
61 #define W_WIDTH                     (1920)
62 #define W_HEIGHT                    (1080-64)       /* StatusBar window height:64 */
63
64 #define W_NAVI_WIDTH                (W_WIDTH / 2)
65 #define W_NAVI_HEIGHT               (W_HEIGHT - W_TEXTAREA_HEIGHT)
66
67 #define W_NAVI_ORIGINE_X            (0)
68 #define W_NAVI_ORIGINE_Y            (0)
69
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)
74
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)
79
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)
84
85 #define W_GOALMESSAGE_HEIGHT        (50)
86 #define W_GOALMESSAGE_WIDTH         (478)
87 #define W_GOALMESSAGE_X             (75)
88 #define W_GOALMESSAGE_Y             (566)
89
90 #define W_ADDRESS_HEIGHT            (50)
91 #define W_ADDRESS_WIDTH             (570)
92 #define W_ADDRESS_X                 (32)
93 #define W_ADDRESS_Y                 (437)
94
95 #define MAX_ROUTE_POINTS            (500)
96 #define LON_CONVERT                 (90550.8)
97 #define LAT_CONVERT                 (111240)
98
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)
103
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)
108
109 /* Directory */
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"
112
113 /* Common */
114 #define TRUE                        (1)
115 #define FALSE                       (0)
116
117 /* Layer */
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)
123
124 #endif /* SAMPLENAVI_DEFINE_H_ */