Config.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 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 #define TE_SE_MODULE_NAME "te.symbology_encoding"
30 
31 /** @name General Defines
32  * General defines for Symbology Encoding
33  */
34 //@{
35 
36 /*!
37  \def TE_SE_DEFAULT_UOM
38 
39  \brief It specifies the default unit-of-measurement used by OGC Symbology Encoding.
40 */
41 #define TE_SE_DEFAULT_UOM 3
42 
43 /*!
44  \def TE_SE_DEFAULT_TEXT_COLOR
45 
46  \brief It specifies the default color used to show texts.
47 */
48 #define TE_SE_DEFAULT_TEXT_COLOR 0, 0, 0
49 
50 /*!
51  \def TE_SE_DEFAULT_FONT_SIZE
52 
53  \brief It specifies the default font size.
54 */
55 #define TE_SE_DEFAULT_FONT_SIZE 10
56 
57 /*!
58  \def TE_SE_DEFAULT_HALO_COLOR
59 
60  \brief It specifies the default color used to show text halo.
61 */
62 #define TE_SE_DEFAULT_HALO_COLOR 255, 255, 255
63 
64 /*!
65  \def TE_SE_DEFAULT_HALO_RADIUS
66 
67  \brief It specifies the default halo radius (in pixels).
68 */
69 #define TE_SE_DEFAULT_HALO_RADIUS 1
70 
71 /*!
72  \def TE_SE_DEFAULT_OPACITY
73 
74  \brief It specifies the default opacity(double value, 0.0 to 1.0 interval).
75 */
76 #define TE_SE_DEFAULT_OPACITY 1.0
77 
78 /*!
79  \def TE_SE_DEFAULT_ROTATION
80 
81  \brief It specifies the default rotation
82 */
83 #define TE_SE_DEFAULT_ROTATION 0.0
84 
85 /*!
86  \def TE_SE_DEFAULT_FILL_BASIC_COLOR
87 
88  \brief It specifies the default color used by basic fill (solid colors).
89 */
90 #define TE_SE_DEFAULT_FILL_BASIC_COLOR 128, 128, 128
91 
92 /*!
93  \def TE_SE_DEFAULT_STROKE_BASIC_COLOR
94 
95  \brief It specifies the default color used by stroke basic (solid colors).
96 */
97 #define TE_SE_DEFAULT_STROKE_BASIC_COLOR 0, 0, 0
98 
99 /*!
100  \def TE_SE_DEFAULT_STROKE_BASIC_WIDTH
101 
102  \brief It specifies the default width used by stroke basic (solid colors).
103 */
104 #define TE_SE_DEFAULT_STROKE_BASIC_WIDTH 1
105 
106 /*!
107  \def TE_SE_DEFAULT_GRAPHIC_SIZE
108 
109  \brief It specifies the default graphic size.
110 */
111 #define TE_SE_DEFAULT_GRAPHIC_SIZE 16
112 
113 /*!
114  \def TE_SE_DEFAULT_GAMMA_VALUE
115 
116  \brief It specifies the default gamma value.
117 */
118 #define TE_SE_DEFAULT_GAMMA_VALUE 1.0
119 
120 /*!
121  \def TE_SE_DEFAULT_VERSION
122 
123  \brief It specifies the default version used by OGC Symbology Encoding.
124 */
125 #define TE_SE_DEFAULT_VERSION "1.1.0"
126 
127 /*!
128  \def TE_SE_BUTT_CAP
129 
130  \brief It specifies the value "butt" for stroke-linecap parameter.
131 */
132 #define TE_SE_BUTT_CAP "butt"
133 
134 /*!
135  \def TE_SE_ROUND_CAP
136 
137  \brief It specifies the value "round" for stroke-linecap parameter.
138 */
139 #define TE_SE_ROUND_CAP "round"
140 
141 /*!
142  \def TE_SE_SQUARE_CAP
143 
144  \brief It specifies the value "square" for stroke-linecap parameter.
145 */
146 #define TE_SE_SQUARE_CAP "square"
147 
148 /*!
149  \def TE_SE_MITRE_JOIN
150 
151  \brief It specifies the value "mitre" for stroke-linejoin parameter.
152 */
153 #define TE_SE_MITRE_JOIN "mitre"
154 
155 /*!
156  \def TE_SE_ROUND_JOIN
157 
158  \brief It specifies the value "round" for stroke-linejoin parameter.
159 */
160 #define TE_SE_ROUND_JOIN "round"
161 
162 /*!
163  \def TE_SE_BEVEL_JOIN
164 
165  \brief It specifies the value "bevel" for stroke-linejoin parameter.
166 */
167 #define TE_SE_BEVEL_JOIN "bevel"
168 
169 //@}
170 
171 
172 /** @name DLL/LIB Module
173  * Flags for building TerraLib as a DLL or as a Static Library
174  */
175 //@{
176 
177 /*!
178  \def TESEEXPORT
179 
180  \brief You can use this macro in order to export/import classes and functions from this module.
181 
182  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESEDLL into the project's list of defines.
183 
184  \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.
185 */
186 #ifdef WIN32
187 
188  #ifdef _MSC_VER
189  #pragma warning( disable : 4251 )
190  #pragma warning( disable : 4275 )
191  #endif
192 
193  #ifdef TESESTATIC
194  #define TESEEXPORT // Don't need to export/import... it is a static library
195  #elif TESEDLL
196  #define TESEEXPORT __declspec(dllexport) // export DLL information
197  #else
198  #define TESEEXPORT __declspec(dllimport) // import DLL information
199  #endif
200 #else
201  #define TESEEXPORT
202 #endif
203 
204 //@}
205 
206 #endif // __TERRALIB_SE_INTERNAL_CONFIG_H