Utils.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/qt/plugins/terralib5/Utils.h
22 
23  \brief
24 */
25 
26 #ifndef __TERRALIB_QT_TERRALIB4_INTERNAL_UTILS_H
27 #define __TERRALIB_QT_TERRALIB4_INTERNAL_UTILS_H
28 
29 // TerraLib
30 #include "Config.h"
31 
32 struct TeColor;
33 struct TeGrouping;
34 class TeRasterTransform;
35 class TeTheme;
36 class TeVisual;
37 
38 namespace te
39 {
40  namespace color
41  {
42  class RGBAColor;
43  }
44 
45  namespace map
46  {
47  class Grouping;
48  }
49 
50  namespace se
51  {
52  class Fill;
53  class LineSymbolizer;
54  class PointSymbolizer;
55  class PolygonSymbolizer;
56  class Style;
57  class Stroke;
58  class Symbolizer;
59  }
60 
61  namespace qt
62  {
63  namespace plugins
64  {
65  namespace terralib4
66  {
67 
69 
70  std::string GetLineStyle(int type);
71 
72  std::string GetPointStyle(int type);
73 
74  bool IsHollow(int type);
75 
76  te::se::Style* Convert2TerraLib5(int geometryType, TeTheme* theme, bool isRaster = false);
77 
78  te::map::Grouping* GetGrouping(TeTheme* theme);
79 
80  te::se::ColorMap* GetRasterGrouping(TeTheme* theme);
81 
82  te::se::Symbolizer* GetSymbolizer(int geometryType, TeVisual* visual);
83 
85 
86  te::se::LineSymbolizer* GetLineSymbolizer(TeVisual* visual);
87 
89 
90  te::se::RasterSymbolizer* GetRasterSymbolizer(TeRasterTransform* visual);
91 
92  } // end namespace terralib4
93  } // end namespace plugins
94  } // end namespace qt
95 } // end namespace te
96 
97 #endif // __TERRALIB_QT_TERRALIB4_INTERNAL_UTILS_H
te::color::RGBAColor Convert2TerraLib5(TeColor color)
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
Definition: Style.h:65
A PolygonSymbolizer is used to draw a polygon (or other area-type geometries), including filling its ...
te::se::ColorMap * GetRasterGrouping(TeTheme *theme)
te::se::RasterSymbolizer * GetRasterSymbolizer(TeRasterTransform *visual)
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:80
te::se::PointSymbolizer * GetPointSymbolizer(TeVisual *visual)
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
te::se::LineSymbolizer * GetLineSymbolizer(TeVisual *visual)
te::se::Symbolizer * GetSymbolizer(int geometryType, TeVisual *visual)
Definition: Band.h:34
This class contains the parameters needed for grouping the values of a Property.
Definition: Grouping.h:59
URI C++ Library.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
te::se::PolygonSymbolizer * GetPolygonSymbolizer(TeVisual *visual)
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Definition: RGBAColor.h:57
std::string GetLineStyle(int type)
A LineSymbolizer is used to style a stroke along a linear geometry type, such as a string of line seg...
te::map::Grouping * GetGrouping(TeTheme *theme)
std::string GetPointStyle(int type)
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...
Definition: ColorMap.h:61