A Symbology Enconding visitor that configures a given chart based on symbolizers elements. If you want to use this visitor, use a command like: te::qt::widgets::ChartConfigurer cc(chart); cc.config(symbolizer);
More...
#include <ChartConfigurer.h>
Public Member Functions | |
Initializer Methods | |
ChartConfigurer (ChartDisplayWidget *chart) | |
Constructor. More... | |
~ChartConfigurer () | |
Destructor. More... | |
Config Method | |
Method that can be used to configure a chart based on Symbology Enconding symbolizer elements. | |
void | config (const te::se::Symbolizer *symbolizer) |
It configs the chart based on given symbolizer. More... | |
void | config (te::map::AbstractLayer *layer) |
It configs the chart based on given layer. More... | |
Visitor Methods | |
All concrete visitors must implement these methods. | |
void | visit (const te::se::Style &visited) |
void | visit (const te::se::FeatureTypeStyle &visited) |
void | visit (const te::se::CoverageStyle &visited) |
void | visit (const te::se::Symbolizer &visited) |
void | visit (const te::se::PolygonSymbolizer &visited) |
void | visit (const te::se::LineSymbolizer &visited) |
void | visit (const te::se::PointSymbolizer &visited) |
void | visit (const te::se::TextSymbolizer &visited) |
void | visit (const te::se::RasterSymbolizer &visited) |
Private Member Functions | |
void | config (const te::se::Stroke *stroke) |
Internal method that configs the chart based on given Stroke element. More... | |
void | config (const te::se::Fill *fill) |
Internal method that configs the chart based on given Fill element. More... | |
void | config (const te::se::Graphic *graphic) |
Internal method that configs the chart based on given Graphic element. More... | |
Private Attributes | |
ChartDisplayWidget * | m_chart |
A pointer to the chart that will be configured. More... | |
A Symbology Enconding visitor that configures a given chart based on symbolizers elements. If you want to use this visitor, use a command like: te::qt::widgets::ChartConfigurer cc(chart); cc.config(symbolizer);
Definition at line 68 of file ChartConfigurer.h.
te::qt::widgets::ChartConfigurer::ChartConfigurer | ( | ChartDisplayWidget * | chart | ) |
Constructor.
chart | A pointer to the chart that will be configured. |
Definition at line 48 of file ChartConfigurer.cpp.
References m_chart.
te::qt::widgets::ChartConfigurer::~ChartConfigurer | ( | ) |
Destructor.
Definition at line 53 of file ChartConfigurer.cpp.
void te::qt::widgets::ChartConfigurer::config | ( | const te::se::Symbolizer * | symbolizer | ) |
It configs the chart based on given symbolizer.
symbolizer | The symbolizer that will be used to config the chart. |
Definition at line 57 of file ChartConfigurer.cpp.
References te::common::BaseVisitable< T, R >::accept().
Referenced by te::qt::af::ChartDisplayDockWidget::setLayer().
void te::qt::widgets::ChartConfigurer::config | ( | te::map::AbstractLayer * | layer | ) |
It configs the chart based on given layer.
layer | The layer that will be used to config the chart. |
Definition at line 62 of file ChartConfigurer.cpp.
References te::se::Style::getRule(), te::se::Style::getRules(), te::map::AbstractLayer::getStyle(), te::se::Rule::getSymbolizer(), and te::se::Rule::getSymbolizers().
|
private |
Internal method that configs the chart based on given Stroke element.
stroke | The Stroke element that will be used to config the chart. |
Definition at line 119 of file ChartConfigurer.cpp.
References te::se::Stroke::clone(), te::qt::widgets::HISTOGRAM_CHART, te::qt::widgets::SCATTER_CHART, te::qt::widgets::HistogramStyle::setStroke(), and te::qt::widgets::ScatterStyle::setStroke().
|
private |
Internal method that configs the chart based on given Fill element.
fill | The Fill element that will be used to config the chart. |
Definition at line 142 of file ChartConfigurer.cpp.
References te::se::Fill::clone(), te::qt::widgets::HISTOGRAM_CHART, te::qt::widgets::SCATTER_CHART, te::qt::widgets::HistogramStyle::setFill(), and te::qt::widgets::ScatterStyle::setFill().
|
private |
Internal method that configs the chart based on given Graphic element.
graphic | The Graphic element that will be used to config the chart. |
Definition at line 165 of file ChartConfigurer.cpp.
References te::se::Graphic::clone(), te::qt::widgets::SCATTER_CHART, and te::qt::widgets::ScatterStyle::setGraphic().
|
virtual |
Implements te::se::Visitor.
Definition at line 70 of file ChartConfigurer.cpp.
|
virtual |
Implements te::se::Visitor.
Definition at line 74 of file ChartConfigurer.cpp.
|
virtual |
Implements te::se::Visitor.
Definition at line 78 of file ChartConfigurer.cpp.
|
virtual |
Implements te::se::Visitor.
Definition at line 82 of file ChartConfigurer.cpp.
|
virtual |
Implements te::se::Visitor.
Definition at line 86 of file ChartConfigurer.cpp.
References te::se::PolygonSymbolizer::getFill(), and te::se::PolygonSymbolizer::getStroke().
|
virtual |
Implements te::se::Visitor.
Definition at line 97 of file ChartConfigurer.cpp.
References te::se::LineSymbolizer::getStroke().
|
virtual |
Implements te::se::Visitor.
Definition at line 104 of file ChartConfigurer.cpp.
References te::se::PointSymbolizer::getGraphic().
|
virtual |
Implements te::se::Visitor.
Definition at line 111 of file ChartConfigurer.cpp.
|
virtual |
Implements te::se::Visitor.
Definition at line 115 of file ChartConfigurer.cpp.
|
private |
A pointer to the chart that will be configured.
Definition at line 155 of file ChartConfigurer.h.
Referenced by ChartConfigurer().