Loading...
Searching...
No Matches
PtMarker.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 PtMarker.h
22
23 \brief This file contains several utility routines for dealing with point markers.
24 */
25
26#ifndef __TERRALIB_MAPTOOLS_INTERNAL_PTMARKER_H
27#define __TERRALIB_MAPTOOLS_INTERNAL_PTMARKER_H
28
29// TerraLib
30#include "Config.h"
31#include "Enums.h"
32
33namespace te
34{
35// Forward declaration
36 namespace color { class RGBAColor; }
37
38 namespace map
39 {
40 /*!
41 \brief It creates a point marker.
42
43 \param type The marker type.
44 \param width The marker width.
45 \param color The marker color.
46
47 \return The marker: a square matrix of int's where each position corresponds to a RGBA color.
48
49 \note The caller of this method will take the ownership of the returned pointer.
50 */
52
53 /*!
54 \brief It creates a four rays marker.
55
56 \param width The marker width.
57 \param color The marker color.
58
59 \return The marker: a square matrix of int's where each position corresponds to a RGBA color.
60
61 \note The caller of this method will take the ownership of the returned pointer.
62 */
64
65 /*!
66 \brief It create a diamond marker.
67
68 \param width The marker width.
69 \param color The marker color.
70
71 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
72
73 \note The caller of this method will take the ownership of the returned pointer.
74 */
76
77 /*!
78 \brief It create a square marker.
79
80 \param width The marker width.
81 \param color The marker color.
82
83 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
84
85 \note The caller of this method will take the ownership of the returned pointer.
86 */
88
89 /*!
90 \brief It create a circle marker.
91
92 \param width The marker width.
93 \param color The marker color.
94
95 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
96
97 \note The caller of this method will take the ownership of the returned pointer.
98 */
100
101 /*!
102 \brief It create a colorssed circle marker.
103
104 \param width The marker width.
105 \param color The marker color.
106
107 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
108
109 \note The caller of this method will take the ownership of the returned pointer.
110 */
112
113 /*!
114 \brief It create a semi ellipse left marker.
115
116 \param width The marker width.
117 \param color The marker color.
118
119 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
120
121 \note The caller of this method will take the ownership of the returned pointer.
122 */
124
125 /*!
126 \brief It create a semi ellipse right marker.
127
128 \param width The marker width.
129 \param color The marker color.
130
131 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
132
133 \note The caller of this method will take the ownership of the returned pointer.
134 */
136
137 /*!
138 \brief It create a semi ellipse left marker.
139
140 \param width The marker width.
141 \param color The marker color.
142
143 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
144
145 \note The caller of this method will take the ownership of the returned pointer.
146 */
148
149 /*!
150 \brief It create a semi ellipse down marker.
151
152 \param width The marker width.
153 \param color The marker color.
154
155 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
156
157 \note The caller of this method will take the ownership of the returned pointer.
158 */
160
161 /*!
162 \brief It create a semi triangle left marker.
163
164 \param width The marker width.
165 \param color The marker color.
166
167 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
168
169 \note The caller of this method will take the ownership of the returned pointer.
170 */
172
173 /*!
174 \brief It create a semi triangle right marker.
175
176 \param width The marker width.
177 \param color The marker color.
178
179 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
180
181 \note The caller of this method will take the ownership of the returned pointer.
182 */
184
185 /*!
186 \brief It create a semi triangle up marker.
187
188 \param width The marker width.
189 \param color The marker color.
190
191 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
192
193 \note The caller of this method will take the ownership of the returned pointer.
194 */
196
197 /*!
198 \brief It create a semi triangle down marker.
199
200 \param width The marker width.
201 \param color The marker color.
202
203 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
204
205 \note The caller of this method will take the ownership of the returned pointer.
206 */
208
209 /*!
210 \brief It create a cross marker.
211
212 \param width The marker width.
213 \param color The marker color.
214
215 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
216
217 \note The caller of this method will take the ownership of the returned pointer.
218 */
220
221 /*!
222 \brief It create a x marker.
223
224 \param width The marker width.
225 \param color The marker color.
226
227 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
228
229 \note The caller of this method will take the ownership of the returned pointer.
230 */
232
233 /*!
234 \brief It create a dash marker.
235
236 \param width The marker width.
237 \param color The marker color.
238
239 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
240
241 \note The caller of this method will take the ownership of the returned pointer.
242 */
244
245 /*!
246 \brief It create a dot marker.
247
248 \param width The marker width.
249 \param color The marker color.
250
251 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
252
253 \note The caller of this method will take the ownership of the returned pointer.
254 */
256
257 /*!
258 \brief It create a pixel marker.
259
260 \param width The marker width.
261 \param color The marker color.
262
263 \return The The marker: a square matrix of int's where each position corresponds to a RGBA color.
264
265 \note The caller of this method will take the ownership of the returned pointer.
266 */
268
269 } // end namespace map
270} // end namespace te
271
272#endif // __TERRALIB_MAPTOOLS_INTERNAL_PTMARKER_H
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Definition: RGBAColor.h:58
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerTriangleDown(int width, const te::color::RGBAColor &color)
It create a semi triangle down marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerCross(int width, const te::color::RGBAColor &color)
It create a cross marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerSemiEllipseDown(int width, const te::color::RGBAColor &color)
It create a semi ellipse down marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerDot(int width, const te::color::RGBAColor &color)
It create a dot marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerTriangleRight(int width, const te::color::RGBAColor &color)
It create a semi triangle right marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerSemiEllipseUp(int width, const te::color::RGBAColor &color)
It create a semi ellipse left marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerSemiEllipseRight(int width, const te::color::RGBAColor &color)
It create a semi ellipse right marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerTriangleUp(int width, const te::color::RGBAColor &color)
It create a semi triangle up marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerCircle(int width, const te::color::RGBAColor &color)
It create a circle marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerTriangleLeft(int width, const te::color::RGBAColor &color)
It create a semi triangle left marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerPixel(int width, const te::color::RGBAColor &color)
It create a pixel marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarker(PtMarkerType type, int width, const te::color::RGBAColor &color)
It creates a point marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerDash(int width, const te::color::RGBAColor &color)
It create a dash marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerFourRays(int width, const te::color::RGBAColor &color)
It creates a four rays marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerX(int width, const te::color::RGBAColor &color)
It create a x marker.
PtMarkerType
Definition: Enums.h:97
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerDiamond(int width, const te::color::RGBAColor &color)
It create a diamond marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerSquare(int width, const te::color::RGBAColor &color)
It create a square marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerSemiEllipseLeft(int width, const te::color::RGBAColor &color)
It create a semi ellipse left marker.
TEMAPEXPORT te::color::RGBAColor ** CreateMarkerCrossedCircle(int width, const te::color::RGBAColor &color)
It create a colorssed circle marker.
TerraLib.
#define TEMAPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:60
Proxy configuration file for TerraView (see terraview_config.h).
Enumerations of XML module.