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_FILL_BASIC_COLOR
73 
74  \brief It specifies the default color used by basic fill (solid colors).
75 */
76 #define TE_SE_DEFAULT_FILL_BASIC_COLOR 128, 128, 128
77 
78 /*!
79  \def TE_SE_DEFAULT_STROKE_BASIC_COLOR
80 
81  \brief It specifies the default color used by stroke basic (solid colors).
82 */
83 #define TE_SE_DEFAULT_STROKE_BASIC_COLOR 0, 0, 0
84 
85 /*!
86  \def TE_SE_DEFAULT_STROKE_BASIC_WIDTH
87 
88  \brief It specifies the default width used by stroke basic (solid colors).
89 */
90 #define TE_SE_DEFAULT_STROKE_BASIC_WIDTH 1
91 
92 /*!
93  \def TE_SE_DEFAULT_GRAPHIC_SIZE
94 
95  \brief It specifies the default graphic size.
96 */
97 #define TE_SE_DEFAULT_GRAPHIC_SIZE 16
98 
99 /*!
100  \def TE_SE_DEFAULT_GAMMA_VALUE
101 
102  \brief It specifies the default gamma value.
103 */
104 #define TE_SE_DEFAULT_GAMMA_VALUE 1.0
105 
106 /*!
107  \def TE_SE_DEFAULT_VERSION
108 
109  \brief It specifies the default version used by OGC Symbology Encoding.
110 */
111 #define TE_SE_DEFAULT_VERSION "1.1.0"
112 
113 /*!
114  \def TE_SE_BUTT_CAP
115 
116  \brief It specifies the value "butt" for stroke-linecap parameter.
117 */
118 #define TE_SE_BUTT_CAP "butt"
119 
120 /*!
121  \def TE_SE_ROUND_CAP
122 
123  \brief It specifies the value "round" for stroke-linecap parameter.
124 */
125 #define TE_SE_ROUND_CAP "round"
126 
127 /*!
128  \def TE_SE_SQUARE_CAP
129 
130  \brief It specifies the value "square" for stroke-linecap parameter.
131 */
132 #define TE_SE_SQUARE_CAP "square"
133 
134 /*!
135  \def TE_SE_MITRE_JOIN
136 
137  \brief It specifies the value "mitre" for stroke-linejoin parameter.
138 */
139 #define TE_SE_MITRE_JOIN "mitre"
140 
141 /*!
142  \def TE_SE_ROUND_JOIN
143 
144  \brief It specifies the value "round" for stroke-linejoin parameter.
145 */
146 #define TE_SE_ROUND_JOIN "round"
147 
148 /*!
149  \def TE_SE_BEVEL_JOIN
150 
151  \brief It specifies the value "bevel" for stroke-linejoin parameter.
152 */
153 #define TE_SE_BEVEL_JOIN "bevel"
154 
155 //@}
156 
157 
158 /** @name DLL/LIB Module
159  * Flags for building TerraLib as a DLL or as a Static Library
160  */
161 //@{
162 
163 /*!
164  \def TESEEXPORT
165 
166  \brief You can use this macro in order to export/import classes and functions from this module.
167 
168  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESEDLL into the project's list of defines.
169 
170  \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.
171 */
172 #ifdef WIN32
173 
174  #ifdef _MSC_VER
175  #pragma warning( disable : 4251 )
176  #pragma warning( disable : 4275 )
177  #endif
178 
179  #ifdef TESESTATIC
180  #define TESEEXPORT // Don't need to export/import... it is a static library
181  #elif TESEDLL
182  #define TESEEXPORT __declspec(dllexport) // export DLL information
183  #else
184  #define TESEEXPORT __declspec(dllimport) // import DLL information
185  #endif
186 #else
187  #define TESEEXPORT
188 #endif
189 
190 //@}
191 
192 #endif // __TERRALIB_SE_INTERNAL_CONFIG_H