MapToolsExamples.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 MapToolsExample.h
22 
23  \brief Several examples declarations.
24  */
25 
26 #ifndef __TERRALIB_EXAMPLES_MAPTOOLS_INTERNAL_MAPTOOLSEXAMPLES_H
27 #define __TERRALIB_EXAMPLES_MAPTOOLS_INTERNAL_MAPTOOLSEXAMPLES_H
28 
29 // TerraLib Examples
30 #include "../Config.h"
31 
32 // TerraLib
33 #include <terralib/dataaccess_fw.h>
34 #include <terralib/se_fw.h>
35 
36 // STL
37 #include <string>
38 
39 // Global Id
40 extern unsigned int G_ID;
41 
42 /*! \brief It loads the data source drivers. */
43 void LoadModules();
44 
45 /*! \brief It retrieves data from a data source, create a set of layer and show map display. */
46 void MapDisplay();
47 
48 /*! \brief It converts a OGC Filter Expression to TerraLib Expression. */
49 void Filter2Query();
50 
51 /*! \brief It draws a set of layers using styles encoded using OGC Symbology Enconding specification. */
52 void DrawStyledLayers();
53 
54 /*! \brief It draws a set of raster layers using styles encoded using OGC RasterSymbology Enconding specification. */
56 
57 /** @name Hard-coded styles
58  * Methods to build pre-defined styles.
59 */
60 //@{
61 
62 /* Polygon Styles */
66 te::se::Style* GraphicFillPolygonStyle(const std::string& markName);
68 te::se::Style* GraphicFillContourPolygonStyle(const std::string& markName);
69 
70 /* Line Styles */
76 
77 /* Point Styles */
78 te::se::Style* MarkPointStyle(const std::string& markName);
79 
80 //@}
81 
82 #endif // __TERRALIB_EXAMPLES_MAPTOOLS_INTERNAL_MAPTOOLSEXAMPLES_H
te::se::Style * MarkPointStyle(const std::string &markName)
Definition: Styling.cpp:244
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
Definition: Style.h:65
te::se::Style * RoadStyleTwo()
Definition: Styling.cpp:219
te::se::Style * DashedLineStyle()
Definition: Styling.cpp:165
void LoadModules()
It loads the data source drivers.
te::se::Style * GraphicFillPolygonStyle(const std::string &markName)
Definition: Styling.cpp:72
Forward declarations for the Data Access module.
void Filter2Query()
It converts a OGC Filter Expression to TerraLib Expression.
void DrawStyledLayers()
It draws a set of layers using styles encoded using OGC Symbology Enconding specification.
Definition: Styling.cpp:325
te::se::Style * TreePolygonStyle()
Definition: Styling.cpp:95
te::se::Style * SimpleLineStyle()
Definition: Styling.cpp:150
te::se::Style * SimplePolygonStyleWithStroke()
Definition: Styling.cpp:40
te::se::Style * TransparentPolygonStyle()
Definition: Styling.cpp:56
void DrawRasterStyledLayers()
It draws a set of raster layers using styles encoded using OGC RasterSymbology Enconding specificatio...
te::se::Style * RoadStyleOne()
Definition: Styling.cpp:197
void MapDisplay()
It retrieves data from a data source, create a set of layer and show map display. ...
Forward declarations for the Symbology Encoding module.
unsigned int G_ID
te::se::Style * SimplePolygonStyle()
Definition: Styling.cpp:24
te::se::Style * GraphicFillContourPolygonStyle(const std::string &markName)
Definition: Styling.cpp:123
te::se::Style * LineWithBorderStyle()
Definition: Styling.cpp:179