NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
sdl.h
Go to the documentation of this file.
1 
10 #ifndef SDK_SDL_H_
11 #define SDK_SDL_H_
12 
13 #include <base/inc/base_types.h>
16 
17 namespace sdk {
18 namespace vis {
19 namespace sdl {
20 
21 const SDKUInt16 kSDL_version = 0x0100;
22 const float INCH_IN_MM = 25.4f;
23 const float k_Sprite_Enlarge_percent = 10.f;
24 const float k_Sprite_Enlarge_min = 2.f;
25 
26 const SDKUInt32 k_ColorID_Prefix = 0x00FF0000; // color identifier prefix
27 const SDKUInt32 k_ColorID_Mask = 0xFFFF0000;
28 
29 const SDKUInt16 kParameterLabelType = 0xFFFF;
30 const SDKUInt16 k_color_ref_mask = 0x00FF;
31 
32 typedef enum SDLComponentType
33 {
34  sdl_symbol_set = 0,
35  sdl_palette,
36  sdl_color,
37  sdl_symbol,
38 }SDLComponentType;
39 
40 const SDKUInt16 kColorPropertyUse = 1;
41 const SDKUInt16 kColorPropertyName = 2;
42 
43 const SDKUInt16 kSymbolPropertyInfo = 1;
44 
45 typedef enum FrameType
46 {
47  rect_frame,
48  circle_frame,
49  ellipse_frame,
50  top_frame,
51  bottom_frame,
52  left_frame,
53  right_frame,
54 } FrameType;
55 
56 typedef enum EffectKind
57 {
58  effect_none = 0,
59  effect_color_outlining,
60 } EffectKind;
61 
63 typedef enum FontWeight
64 {
65  FontWeight_Default = 0x0, // Default font weight
66  FontWeight_Thin = 0x1, // Thin font
67  FontWeight_ExtraLight = 0x2, // Extra light font
68  FontWeight_Light = 0x3, // Light font
69  FontWeight_Normal = 0x4, // Normal font
70  FontWeight_Medium = 0x5, // Medium font
71  FontWeight_SemiBold = 0x6, // Semi-bold font
72  FontWeight_Bold = 0x7, // Bold font
73  FontWeight_ExtraBold = 0x8, // Extra-bold font
74  FontWeight_Heavy = 0x9, // Heavy font
75 } FontWeight;
76 
78 typedef enum FontStretch
79 {
80  FontStretch_Default = 0x0, // Default font stretch
81  FontStretch_UltraCondensed = 0x1, // Ultra condensed font
82  FontStretch_ExtraCondensed = 0x2, // Extra condensed font
83  FontStretch_Condensed = 0x3, // Condensed font
84  FontStretch_SemiCondensed = 0x4, // Semi-condensed font
85  FontStretch_Normal = 0x5, // Normal font
86  FontStretch_SemiExpanded = 0x6, // Semi-expanded font
87  FontStretch_Expanded = 0x7, // Expanded font
88  FontStretch_ExtraExpanded = 0x8, // Extra expanded font
89  FontStretch_UltraExpanded = 0x9, // Ultra expanded font
90 } FontStretch;
91 
93 typedef enum FontStyle
94 {
95  FontStyle_Default = 0x0, // Default font style
96  FontStyle_Normal = 0x1, // Normal font
97  FontStyle_Italic = 0x2, // Italic font
98  FontStyle_Oblique = 0x3, // Oblique font
99 } FontStyle;
100 
101 typedef enum VertAlign
102 {
103  VertAlign_Bottom = 0,
104  VertAlign_Top = 1,
105  VertAlign_Center = 2,
106  VertAlign_BaseLine = 3,
107 } VertAlign;
108 
109 typedef enum HorzAlign
110 {
111  HorzAlign_Begin = 0,
112  HorzAlign_Center = 1,
113  HorzAlign_End = 2,
114 } HorzAlign;
115 
118 typedef enum AnchorType
119 {
121  anchor_E = 0x1,
122  anchor_W = 0x2,
123  anchor_N = 0x4,
124  anchor_S = 0x8,
125  anchor_NE = 0x5,
126  anchor_NW = 0x6,
127  anchor_SE = 0x9,
128  anchor_SW = 0xA
129 } AnchorType;
130 
131 typedef enum PathGeometryType
132 {
133  unknownPathGeometry = -1,
134  lineString = 0,
135  quadraticBezier,
136  cubicBezier
137 } PathGeometryType;
138 
139 typedef enum FillRule
140 {
141  evenodd = 0,
142  nonzero
143 } FillRule;
144 
145 typedef enum BrushPattern
146 {
147  staggered_pattern = 0,
148  linear_pattern
149 } BrushPattern;
150 
151 typedef enum LineCap
152 {
153  line_cap_flat = 0,
154  line_cap_round,
155  line_cap_square
156 } LineCap;
157 
158 typedef enum LineJoin
159 {
160  line_join_round = 0,
161  line_join_miter,
162  line_join_bevel
163 } LineJoin;
164 
165 typedef enum LinePlace
166 {
167  place_continuous = 0,
168  place_over,
169  place_segment_middle
170 } LinePlace;
171 
172 typedef enum LineOrient
173 {
174  orient_tangential = 0,
175  orient_text_tangential,
176  orient_not_tangential
177 } LineOrient;
178 
179 typedef enum LineAlign
180 {
181  line_align_fit = 0,
182  line_align_middle,
183  line_align_begin,
184  line_align_end
185 } LineAlign;
186 
187 typedef enum FileType
188 {
189  file_type_unknown = 0,
190  file_type_svg,
191  file_type_png,
192 } FileType;
193 
194 typedef enum ComponentType
195 {
196  ComponentType_Gap = 0,
197  ComponentType_Line,
198  ComponentType_Point,
199  ComponentType_Connect
200 } ComponentType;
201 
202 typedef enum ClipType
203 {
204  ClipType_ByEdge = 0,
205  ClipType_ByCenter,
206  ClipType_ByBounds,
207 } ClipType;
208 
209 typedef enum GeomUnits
210 {
211  GeomUnits_pels = 0,
212  GeomUnits_mm,
213  GeomUnits_m,
214 } GeomUnits;
215 
216 } // namespace sdl
217 } // namespace vis
218 } // namespace sdk
219 
220 #endif // SDK_SDL_H_
sdk::vis::sdl::anchor_W
@ anchor_W
West.
Definition: sdl.h:122
sdk::vis::sdl::FontStretch
FontStretch
Possible font stretches.
Definition: sdl.h:78
base_types.h
SDK base types.
sdk::vis::sdl::anchor_SW
@ anchor_SW
South-west.
Definition: sdl.h:128
sdk::vis::sdl::anchor_SE
@ anchor_SE
South-east.
Definition: sdl.h:127
sdk::vis::sdl::anchor_E
@ anchor_E
East.
Definition: sdl.h:121
sdk::vis::sdl::FontStyle
FontStyle
Possible font styles.
Definition: sdl.h:93
sdk::vis::sdl::anchor_S
@ anchor_S
South.
Definition: sdl.h:124
sdk::vis::sdl::anchor_NW
@ anchor_NW
North-west.
Definition: sdl.h:126
sdk::vis::sdl::anchor_N
@ anchor_N
North.
Definition: sdl.h:123
sdk_any_helpers.h
Helper functions for SDKAny type.
sdk::vis::sdl::anchor_none
@ anchor_none
None.
Definition: sdl.h:120
sdk::vis::sdl::anchor_NE
@ anchor_NE
North-east.
Definition: sdl.h:125
geometry_base_types.h
Geometry base types.
sdk::vis::sdl::FontWeight
FontWeight
Possible font weights.
Definition: sdl.h:63
sdk::vis::sdl::AnchorType
AnchorType
Anchor type enumeration.
Definition: sdl.h:118