All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 // 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 
161 /** @name DLL/LIB Module
162  * Flags for building TerraLib as a DLL or as a Static Library
163  */
164 //@{
165 
166 /*!
167  \def TESEEXPORT
168 
169  \brief You can use this macro in order to export/import classes and functions from this module.
170 
171  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESEDLL into the project's list of defines.
172 
173  \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.
174 */
175 #ifdef WIN32
176 
177  #ifdef _MSC_VER
178  #pragma warning( disable : 4251 )
179  #pragma warning( disable : 4275 )
180  #endif
181 
182  #ifdef TESESTATIC
183  #define TESEEXPORT // Don't need to export/import... it is a static library
184  #elif TESEDLL
185  #define TESEEXPORT __declspec(dllexport) // export DLL information
186  #else
187  #define TESEEXPORT __declspec(dllimport) // import DLL information
188  #endif
189 #else
190  #define TESEEXPORT
191 #endif
192 
193 //@}
194 
195 #endif // __TERRALIB_SE_INTERNAL_CONFIG_H