#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... | |
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 43 of file SymbologyPreview.cpp.
References te::se::Symbolizer::getType(), te::gm::LineStringType, te::gm::PolygonType, te::gm::LineString::setPoint(), and te::gm::CurvePolygon::setRingN().
Referenced by te::qt::widgets::LegendItem::data(), te::qt::widgets::GroupingSliceItem::data(), te::qt::widgets::SymbolSelectorDialog::initialize(), te::qt::widgets::StyleExplorer::onSymbolizerChanged(), te::qt::widgets::GroupingWidget::onTableWidgetItemDoubleClicked(), te::qt::widgets::SymbolTableWidget::updatePreview(), te::qt::widgets::SymbolPreviewWidget::updatePreview(), te::qt::widgets::StyleExplorer::updateStyleTree(), and te::qt::widgets::GroupingWidget::updateUi().
|
static |
Generates the preview of a set of symbolizers elements.
symbs | A set of symbolizers elements. |
size | The preview size. |
Definition at line 84 of file SymbologyPreview.cpp.
|
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 100 of file SymbologyPreview.cpp.
References 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 107 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 132 of file SymbologyPreview.cpp.
|
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 148 of file SymbologyPreview.cpp.
References 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 155 of file SymbologyPreview.cpp.
References te::qt::widgets::Symbol::getSymbolizers().