#include <SymbologyPreview.h>
Static Public Member Functions | |
| static QPixmap | build (const te::se::Symbolizer *symb, const QSize &size) |
| Generates the preview of given symbolizer element. More... | |
| static QPixmap | build (const std::vector< te::se::Symbolizer * > &symbs, const QSize &size) |
| Generates the preview of a set of symbolizers elements. More... | |
| static QPixmap | build (const te::se::Rule *rule, const QSize &size) |
| Generates the preview of a set of symbolizers elements included in the given rule. More... | |
| static QPixmap | build (const te::se::Symbolizer *symb, const te::gm::Geometry *geom, const QSize &size) |
| Generates the preview of given symbolizer element. More... | |
| static QPixmap | build (const std::vector< te::se::Symbolizer * > &symbs, const te::gm::Geometry *geom, const QSize &size) |
| Generates the preview of a set of symbolizers elements. More... | |
| static QPixmap | build (const te::se::Rule *rule, const te::gm::Geometry *geom, const QSize &size) |
| Generates the preview of a set of symbolizers elements included in the given rule. More... | |
| static QPixmap | build (const Symbol *symbol, const te::gm::Geometry *geom, const QSize &size) |
| Generates the preview of a symbol. More... | |
| static QPixmap | buildText (const te::se::Symbolizer *symb, const QSize &size) |
| Generates the preview of given text symbolizer element. More... | |
Definition at line 60 of file SymbologyPreview.h.
|
static |
Generates the preview of given symbolizer element.
| symb | A valid symbolizer element. |
| size | The preview size. |
Definition at line 50 of file SymbologyPreview.cpp.
References buildText(), te::se::Symbolizer::getType(), line, te::gm::LineStringType, te::gm::PolygonType, te::gm::LineString::setPoint(), and te::gm::CurvePolygon::setRingN().
Referenced by build(), te::qt::widgets::SymbolSelectorDialog::initialize(), te::qt::widgets::StyleExplorer::onSymbolizerChanged(), te::qt::widgets::RasterizationWizardPage::onTableWidgetItemDoubleClicked(), te::qt::widgets::GroupingWidget::onTableWidgetItemDoubleClicked(), te::qt::widgets::SymbolTableWidget::updatePreview(), te::qt::widgets::SymbolPreviewWidget::updatePreview(), te::qt::widgets::StyleExplorer::updateStyleTree(), te::qt::widgets::RasterizationWizardPage::updateUi(), te::qt::widgets::GroupingWidget::updateUi(), and te::qt::plugins::tv::TimeViewerEditLegendDialog::updateUi().
|
static |
Generates the preview of a set of symbolizers elements.
| symbs | A set of symbolizers elements. |
| size | The preview size. |
Definition at line 97 of file SymbologyPreview.cpp.
References build().
|
static |
Generates the preview of a set of symbolizers elements included in the given rule.
| rule | A valid rule element that will be used to get the set of symbolizers. |
| size | The preview size. |
Definition at line 113 of file SymbologyPreview.cpp.
References build(), and te::se::Rule::getSymbolizers().
|
static |
Generates the preview of given symbolizer element.
| symb | A valid symbolizer element. |
| geom | The geometry that will be used to draw the preview. |
| size | The preview size. |
Definition at line 120 of file SymbologyPreview.cpp.
References te::map::CanvasConfigurer::config(), te::se::Symbolizer::getType(), te::qt::widgets::Canvas::setWindow(), and TE_TRANSPARENT.
|
static |
Generates the preview of a set of symbolizers elements.
| symbs | A set of symbolizers elements. |
| geom | The geometry that will be used to draw the preview. |
| size | The preview size. |
Definition at line 200 of file SymbologyPreview.cpp.
References build().
|
static |
Generates the preview of a set of symbolizers elements included in the given rule.
| rule | A valid rule element that will be used to get the set of symbolizers. |
| geom | The geometry that will be used to draw the preview. |
| size | The preview size. |
Definition at line 216 of file SymbologyPreview.cpp.
References build(), and te::se::Rule::getSymbolizers().
|
static |
Generates the preview of a symbol.
| symbol | A valid symbol. |
| geom | The geometry that will be used to draw the preview. |
| size | The preview size. |
Definition at line 223 of file SymbologyPreview.cpp.
References build(), and te::qt::widgets::Symbol::getSymbolizers().
|
static |
Generates the preview of given text symbolizer element.
| symb | A valid symbolizer element. |
| size | The preview size. |
Definition at line 145 of file SymbologyPreview.cpp.
References te::map::CanvasConfigurer::config(), te::se::PointPlacement::getAnchorPoint(), te::se::AnchorPoint::getAnchorPointX(), te::se::AnchorPoint::getAnchorPointY(), te::se::PointPlacement::getDisplacement(), te::se::Displacement::getDisplacementX(), te::se::Displacement::getDisplacementY(), te::se::GetDouble(), te::se::GetInt(), te::se::TextSymbolizer::getLabelPlacement(), te::se::LabelPlacement::getPointPlacement(), te::se::PointPlacement::getRotation(), te::se::Symbolizer::getType(), te::qt::widgets::Canvas::setWindow(), and TE_TRANSPARENT.
Referenced by build().