27 #include "../../../se/PointSymbolizer.h"
32 #include <QtGui/QGridLayout>
39 m_symb(new te::se::PointSymbolizer)
45 QGridLayout* layout =
new QGridLayout(
this);
46 layout->setContentsMargins(0, 0, 0, 0);
74 return m_symb->
clone();
82 m_graphicSelector->setGraphic(g);
87 m_symb->setGraphic(m_graphicSelector->getGraphic());
88 emit symbolizerChanged();
te::se::Symbolizer * getSymbolizer() const
Gets the configured point symbolizer element.
Symbolizer * clone() const
It creates a new copy of this object.
A Symbolizer describes how a feature is to appear on a map.
void setGraphic(Graphic *graphic)
PointSymbolizerWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a point symbolizer widget which is a child of parent, with widget flags set to f...
te::se::PointSymbolizer * m_symb
Point symbolizer element that will be configured by this widget.
GraphicSelectorWidget * m_graphicSelector
Graphic selector use to select the point symbolizer graphic element.
A widget used to select a graphic element.
A widget used to build a point symbolizer element.
A PointSymbolizer specifies the rendering of a graphic Symbolizer at a point.
void updateUi()
Updates the widget form based on internal point symbolizer element.
te::se::Graphic * getGraphic() const
Gets the configured graphic element.
A widget used to select a graphic element.
virtual Symbolizer * clone() const =0
It creates a new copy of this object.
void setSymbolizer(const te::se::PointSymbolizer *symb)
Sets a point symbolizer element to this widget.
~PointSymbolizerWidget()
Destructor.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.