#include "../Config.h"#include <terralib/dataaccess_fw.h>#include <terralib/se_fw.h>#include <string>Go to the source code of this file.
Functions | |
| void | DrawRasterStyledLayers () |
| It draws a set of raster layers using styles encoded using OGC RasterSymbology Enconding specification. More... | |
| void | DrawStyledLayers () |
| It draws a set of layers using styles encoded using OGC Symbology Enconding specification. More... | |
| void | Filter2Query () |
| It converts a OGC Filter Expression to TerraLib Expression. More... | |
| void | LoadModules () |
| It loads the data source drivers. More... | |
| void | MapDisplay () |
| It retrieves data from a data source, create a set of layer and show map display. More... | |
Hard-coded styles | |
Methods to build pre-defined styles. | |
| te::se::Style * | SimplePolygonStyle () |
| te::se::Style * | SimplePolygonStyleWithStroke () |
| te::se::Style * | TransparentPolygonStyle () |
| te::se::Style * | GraphicFillPolygonStyle (const std::string &markName) |
| te::se::Style * | TreePolygonStyle () |
| te::se::Style * | GraphicFillContourPolygonStyle (const std::string &markName) |
| te::se::Style * | SimpleLineStyle () |
| te::se::Style * | DashedLineStyle () |
| te::se::Style * | LineWithBorderStyle () |
| te::se::Style * | RoadStyleOne () |
| te::se::Style * | RoadStyleTwo () |
| te::se::Style * | MarkPointStyle (const std::string &markName) |
Variables | |
| unsigned int | G_ID |
| te::se::Style* DashedLineStyle | ( | ) |
Definition at line 165 of file Styling.cpp.
References te::se::CreateLineSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| void DrawRasterStyledLayers | ( | ) |
It draws a set of raster layers using styles encoded using OGC RasterSymbology Enconding specification.
Definition at line 452 of file RasterStyling.cpp.
References CreateCanvas(), CreateRasterLayer(), te::map::GetRaster(), MONO_0_Style(), MONO_2_Style(), RGB_012_G_Contrast_Style(), RGB_012_RGB_Contrast_Style(), RGB_012_Transp_Style(), and RGB_102_Style().
Referenced by main().
| void DrawStyledLayers | ( | ) |
It draws a set of layers using styles encoded using OGC Symbology Enconding specification.
Definition at line 325 of file Styling.cpp.
References CreateDataSetLayer(), DashedLineStyle(), Draw(), te::common::Singleton< MarkRendererManager >::getInstance(), GraphicFillContourPolygonStyle(), GraphicFillPolygonStyle(), LineWithBorderStyle(), MarkPointStyle(), RoadStyleOne(), RoadStyleTwo(), te::map::AbstractLayer::setStyle(), SimpleLineStyle(), SimplePolygonStyle(), SimplePolygonStyleWithStroke(), TransparentPolygonStyle(), and TreePolygonStyle().
| void Filter2Query | ( | ) |
It converts a OGC Filter Expression to TerraLib Expression.
Definition at line 13 of file Filter2Query.cpp.
References te::common::BaseVisitable< T, R >::accept(), createDialect(), dialect, Filter(), te::map::QueryEncoder::getExpression(), te::fe::Filter::setOp(), te::fe::Globals::sm_and, te::fe::Globals::sm_or, te::fe::Globals::sm_propertyIsEqualTo, and te::fe::Globals::sm_propertyIsLessThan.
Referenced by main().
| te::se::Style* GraphicFillContourPolygonStyle | ( | const std::string & | markName | ) |
Definition at line 123 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreateGraphic(), te::se::CreateMark(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* GraphicFillPolygonStyle | ( | const std::string & | markName | ) |
Definition at line 72 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreateGraphic(), te::se::CreateMark(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* LineWithBorderStyle | ( | ) |
Definition at line 179 of file Styling.cpp.
References te::se::CreateLineSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| void LoadModules | ( | ) |
It loads the data source drivers.
It loads the data source drivers.
Load terralib modules.
It loads the data source drivers.
Definition at line 38 of file attic/unittest/dataaccess/LoadModules.h.
| void MapDisplay | ( | ) |
It retrieves data from a data source, create a set of layer and show map display.
Definition at line 20 of file examples/maptools/MapDisplay.cpp.
References te::qt::widgets::MapDisplay::Center, te::common::Convert2String(), dt, G_ID, te::da::GetFirstGeomProperty(), te::gm::GeometryProperty::getGeometryType(), te::common::Singleton< DataSourceManager >::getInstance(), te::dt::Property::getName(), te::gm::LineStringType, MarkPointStyle(), te::gm::PointType, te::gm::PolygonType, te::map::AbstractLayer::setDataSetName(), te::map::AbstractLayer::setDataSourceId(), te::map::AbstractLayer::setExtent(), te::map::DataSetLayer::setRendererType(), te::map::AbstractLayer::setStyle(), te::map::AbstractLayer::setVisibility(), SimpleLineStyle(), SimplePolygonStyle(), te::gm::Envelope::Union(), and te::map::VISIBLE.
Referenced by DisplayWindow::DisplayWindow(), main(), te::qt::af::BaseApplication::makeDialog(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), and te::qt::widgets::MapDisplay::updateLayer().
| te::se::Style* MarkPointStyle | ( | const std::string & | markName | ) |
Definition at line 244 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreateGraphic(), te::se::CreateMark(), te::se::CreatePointSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers(), and MapDisplay().
| te::se::Style* RoadStyleOne | ( | ) |
Definition at line 197 of file Styling.cpp.
References te::se::CreateLineSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* RoadStyleTwo | ( | ) |
Definition at line 219 of file Styling.cpp.
References te::se::CreateLineSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* SimpleLineStyle | ( | ) |
Definition at line 150 of file Styling.cpp.
References te::se::CreateLineSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers(), and MapDisplay().
| te::se::Style* SimplePolygonStyle | ( | ) |
Definition at line 24 of file Styling.cpp.
References te::se::CreateFill(), te::se::Style::push_back(), te::se::Rule::push_back(), and te::se::PolygonSymbolizer::setFill().
Referenced by DrawStyledLayers(), and MapDisplay().
| te::se::Style* SimplePolygonStyleWithStroke | ( | ) |
Definition at line 40 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* TransparentPolygonStyle | ( | ) |
Definition at line 56 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| te::se::Style* TreePolygonStyle | ( | ) |
Definition at line 95 of file Styling.cpp.
References te::se::CreateFill(), te::se::CreateGraphic(), te::se::CreateMark(), te::se::CreatePolygonSymbolizer(), te::se::CreateStroke(), te::se::Style::push_back(), and te::se::Rule::push_back().
Referenced by DrawStyledLayers().
| unsigned int G_ID |
Definition at line 42 of file examples/maptools/main.cpp.
Referenced by CreateDataSetLayer(), CreateRasterLayer(), and MapDisplay().