All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Config.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/se/Config.h
22 
23  \brief Configuration flags for the Symbology Encoding support of TerraLib.
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_CONFIG_H
27 #define __TERRALIB_SE_INTERNAL_CONFIG_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 #define TE_SE_MODULE_NAME "te.symbology_encoding"
33 
34 /** @name General Defines
35  * General defines for Symbology Encoding
36  */
37 //@{
38 
39 /*!
40  \def TE_SE_DEFAULT_UOM
41 
42  \brief It specifies the default unit-of-measurement used by OGC Symbology Encoding.
43 */
44 #define TE_SE_DEFAULT_UOM 3
45 
46 /*!
47  \def TE_SE_DEFAULT_TEXT_COLOR
48 
49  \brief It specifies the default color used to show texts.
50 */
51 #define TE_SE_DEFAULT_TEXT_COLOR 0, 0, 0
52 
53 /*!
54  \def TE_SE_DEFAULT_FONT_SIZE
55 
56  \brief It specifies the default font size.
57 */
58 #define TE_SE_DEFAULT_FONT_SIZE 10
59 
60 /*!
61  \def TE_SE_DEFAULT_HALO_COLOR
62 
63  \brief It specifies the default color used to show text halo.
64 */
65 #define TE_SE_DEFAULT_HALO_COLOR 255, 255, 255
66 
67 /*!
68  \def TE_SE_DEFAULT_HALO_RADIUS
69 
70  \brief It specifies the default halo radius (in pixels).
71 */
72 #define TE_SE_DEFAULT_HALO_RADIUS 1
73 
74 /*!
75  \def TE_SE_DEFAULT_FILL_BASIC_COLOR
76 
77  \brief It specifies the default color used by basic fill (solid colors).
78 */
79 #define TE_SE_DEFAULT_FILL_BASIC_COLOR 128, 128, 128
80 
81 /*!
82  \def TE_SE_DEFAULT_STROKE_BASIC_COLOR
83 
84  \brief It specifies the default color used by stroke basic (solid colors).
85 */
86 #define TE_SE_DEFAULT_STROKE_BASIC_COLOR 0, 0, 0
87 
88 /*!
89  \def TE_SE_DEFAULT_STROKE_BASIC_WIDTH
90 
91  \brief It specifies the default width used by stroke basic (solid colors).
92 */
93 #define TE_SE_DEFAULT_STROKE_BASIC_WIDTH 1
94 
95 /*!
96  \def TE_SE_DEFAULT_GRAPHIC_SIZE
97 
98  \brief It specifies the default graphic size.
99 */
100 #define TE_SE_DEFAULT_GRAPHIC_SIZE 16
101 
102 /*!
103  \def TE_SE_DEFAULT_GAMMA_VALUE
104 
105  \brief It specifies the default gamma value.
106 */
107 #define TE_SE_DEFAULT_GAMMA_VALUE 1.0
108 
109 /*!
110  \def TE_SE_DEFAULT_VERSION
111 
112  \brief It specifies the default version used by OGC Symbology Encoding.
113 */
114 #define TE_SE_DEFAULT_VERSION "1.1.0"
115 
116 /*!
117  \def TE_SE_BUTT_CAP
118 
119  \brief It specifies the value "butt" for stroke-linecap parameter.
120 */
121 #define TE_SE_BUTT_CAP "butt"
122 
123 /*!
124  \def TE_SE_ROUND_CAP
125 
126  \brief It specifies the value "round" for stroke-linecap parameter.
127 */
128 #define TE_SE_ROUND_CAP "round"
129 
130 /*!
131  \def TE_SE_SQUARE_CAP
132 
133  \brief It specifies the value "square" for stroke-linecap parameter.
134 */
135 #define TE_SE_SQUARE_CAP "square"
136 
137 /*!
138  \def TE_SE_MITRE_JOIN
139 
140  \brief It specifies the value "mitre" for stroke-linejoin parameter.
141 */
142 #define TE_SE_MITRE_JOIN "mitre"
143 
144 /*!
145  \def TE_SE_ROUND_JOIN
146 
147  \brief It specifies the value "round" for stroke-linejoin parameter.
148 */
149 #define TE_SE_ROUND_JOIN "round"
150 
151 /*!
152  \def TE_SE_BEVEL_JOIN
153 
154  \brief It specifies the value "bevel" for stroke-linejoin parameter.
155 */
156 #define TE_SE_BEVEL_JOIN "bevel"
157 
158 //@}
159 
160 /** @name Internationalization Defines
161  * Flags for TerraLib code internationalization.
162  */
163 //@{
164 
165 /*!
166  \def TE_SE_TEXT_DOMAIN
167 
168  \brief It contains the name of the text domain used in the translation of messages in TerraLib Symbology module.
169 */
170 #define TE_SE_TEXT_DOMAIN "tlse"
171 
172 /*!
173  \def TE_SE_TEXT_DOMAIN_DIR
174 
175  \brief It contains the translation catalog directory.
176 */
177 #define TE_SE_TEXT_DOMAIN_DIR "locale"
178 
179 /*!
180  \def TR_SE
181 
182  \brief It marks a string in order to get translated. This is a special mark used in the Symbology module of TerraLib.
183 */
184 #define TR_SE(message) TR(message, TE_SE_TEXT_DOMAIN)
185 
186 /*!
187  \def TR_PLURAL_SE
188 
189  \brief This mark can be used when you have a plural phrase to be translated. This is a special mark used in the Symbology module of TerraLib.
190 */
191 #define TR_PLURAL_SE(message1, message2, n) TR_PLURAL(TE_SE_TEXT_DOMAIN, message1, message2, n)
192 
193 //@}
194 
195 /** @name DLL/LIB Module
196  * Flags for building TerraLib as a DLL or as a Static Library
197  */
198 //@{
199 
200 /*!
201  \def TESEEXPORT
202 
203  \brief You can use this macro in order to export/import classes and functions from this module.
204 
205  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESEDLL into the project's list of defines.
206 
207  \note If you want to compile TerraLib as an Static Library under Windows, remember to insert the TESESTATIC flag into the project list of defines.
208 */
209 #ifdef WIN32
210 
211  #ifdef _MSC_VER
212  #pragma warning( disable : 4251 )
213  #pragma warning( disable : 4275 )
214  #endif
215 
216  #ifdef TESESTATIC
217  #define TESEEXPORT // Don't need to export/import... it is a static library
218  #elif TESEDLL
219  #define TESEEXPORT __declspec(dllexport) // export DLL information
220  #else
221  #define TESEEXPORT __declspec(dllimport) // import DLL information
222  #endif
223 #else
224  #define TESEEXPORT
225 #endif
226 
227 //@}
228 
229 #endif // __TERRALIB_SE_INTERNAL_CONFIG_H