All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::SymbologyPreview Class Reference

#include <SymbologyPreview.h>

Inheritance diagram for te::qt::widgets::SymbologyPreview:
te::common::Static

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...
 

Detailed Description

Definition at line 60 of file SymbologyPreview.h.

Member Function Documentation

QPixmap te::qt::widgets::SymbologyPreview::build ( const te::se::Symbolizer symb,
const QSize &  size 
)
static
QPixmap te::qt::widgets::SymbologyPreview::build ( const std::vector< te::se::Symbolizer * > &  symbs,
const QSize &  size 
)
static

Generates the preview of a set of symbolizers elements.

Parameters
symbsA set of symbolizers elements.
sizeThe preview size.
Returns
A pixmap that represents the composite result of symbolizers preview.
Note
Default geometry will be created based on symbolizers type and will be used to draw the preview.

Definition at line 84 of file SymbologyPreview.cpp.

QPixmap te::qt::widgets::SymbologyPreview::build ( const te::se::Rule rule,
const QSize &  size 
)
static

Generates the preview of a set of symbolizers elements included in the given rule.

Parameters
ruleA valid rule element that will be used to get the set of symbolizers.
sizeThe preview size.
Returns
A pixmap that represents the composite result of rule's symbolizers preview.
Note
Default geometries will be created based on symbolizers type and will be used to draw the preview.

Definition at line 100 of file SymbologyPreview.cpp.

References te::se::Rule::getSymbolizers().

QPixmap te::qt::widgets::SymbologyPreview::build ( const te::se::Symbolizer symb,
const te::gm::Geometry geom,
const QSize &  size 
)
static

Generates the preview of given symbolizer element.

Parameters
symbA valid symbolizer element.
geomThe geometry that will be used to draw the preview.
sizeThe preview size.
Returns
A pixmap that represents the result of symbolizer preview.

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.

QPixmap te::qt::widgets::SymbologyPreview::build ( const std::vector< te::se::Symbolizer * > &  symbs,
const te::gm::Geometry geom,
const QSize &  size 
)
static

Generates the preview of a set of symbolizers elements.

Parameters
symbsA set of symbolizers elements.
geomThe geometry that will be used to draw the preview.
sizeThe preview size.
Returns
A pixmap that represents the composite result of symbolizers preview.

Definition at line 132 of file SymbologyPreview.cpp.

QPixmap te::qt::widgets::SymbologyPreview::build ( const te::se::Rule rule,
const te::gm::Geometry geom,
const QSize &  size 
)
static

Generates the preview of a set of symbolizers elements included in the given rule.

Parameters
ruleA valid rule element that will be used to get the set of symbolizers.
geomThe geometry that will be used to draw the preview.
sizeThe preview size.
Returns
A pixmap that represents the composite result of rule's symbolizers preview.

Definition at line 148 of file SymbologyPreview.cpp.

References te::se::Rule::getSymbolizers().

QPixmap te::qt::widgets::SymbologyPreview::build ( const Symbol symbol,
const te::gm::Geometry geom,
const QSize &  size 
)
static

Generates the preview of a symbol.

Parameters
symbolA valid symbol.
geomThe geometry that will be used to draw the preview.
sizeThe preview size.
Returns
A pixmap that represents the symbol preview.

Definition at line 155 of file SymbologyPreview.cpp.

References te::qt::widgets::Symbol::getSymbolizers().


The documentation for this class was generated from the following files: