27 #include "../../../common/STLUtils.h" 
   28 #include "../../../maptools/MarkRendererManager.h" 
   29 #include "../../../maptools/Utils.h" 
   30 #include "../../../se/AnchorPoint.h" 
   31 #include "../../../se/Displacement.h" 
   32 #include "../../../se/Graphic.h" 
   33 #include "../../../se/Mark.h" 
   37 #include "ui_GlyphGraphicWidgetForm.h" 
   44     m_ui(new Ui::GlyphGraphicWidgetForm)
 
   52   QGridLayout* layout = 
new QGridLayout(
m_ui->m_glyphGroupBox);
 
   59   connect(
m_ui->m_graphicSizeDoubleSpinBox, SIGNAL(valueChanged(
const QString&)), SLOT(
setGraphicSize(
const QString&)));
 
   60   connect(
m_ui->m_graphicAngleDoubleSpinBox, SIGNAL(valueChanged(
const QString&)), SLOT(
setGraphicAngle(
const QString&)));
 
   78   m_graphic = graphic->
clone();
 
   81   const std::vector<te::se::Mark*> marks = m_graphic->
getMarks();
 
   90   std::size_t found = name->find(
"ttf://");
 
   91   if(found == std::string::npos)
 
   95   m_glyphMarkWidget->setMark(marks[0]);
 
  104   return tr(
"Glyph Marker");
 
  111   int dimension = size.width();
 
  115   QIcon icon = QIcon(QPixmap::fromImage(img->scaled(size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)));
 
  126   m_graphic->setMark(0, m_glyphMarkWidget->getMark());
 
  127   emit graphicChanged();
 
  132   setGraphicDisplacement(m_ui->m_displacementXDoubleSpinBox->text(), m_ui->m_displacementXDoubleSpinBox->text());
 
  137   setGraphicAnchorPoint(m_ui->m_anchorPointXDoubleSpinBox->text(), m_ui->m_anchorPointYDoubleSpinBox->text());
 
~GlyphGraphicWidget()
Destructor. 
 
void add(ExternalGraphic *g)
Graphics can either be referenced from an external URL in a common format (such as GIF or SVG)...
 
void setGraphicAngle(const QString &angle)
 
A widget used to build a mark element represented by a glyph. 
 
const ParameterValue * getAnchorPointY() const 
 
A Displacement gives X and Y offset displacements to use for rendering a text label, graphic or other Symbolizer near a point. 
 
std::auto_ptr< Ui::GlyphGraphicWidgetForm > m_ui
Widget form. 
 
const std::string * getWellKnownName() const 
 
const ParameterValue * getDisplacementX() const 
 
void updateUi()
Updates the widget form based on internal graphic element. 
 
TEMAPEXPORT double GetDouble(const te::se::ParameterValue *param)
Gets the parameter value as double. 
 
const ParameterValue * getDisplacementY() const 
 
A widget used to build a mark element represented by a glyph. 
 
Graphic * clone() const 
It creates a new copy of this object. 
 
GlyphGraphicWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Constructs a glyph graphic widget which is a child of parent, with widget flags set to f...
 
te::qt::widgets::GlyphMarkWidget * m_glyphMarkWidget
Glyph mark widget used to configure the glyph mark element. 
 
void onGraphicDisplacementChanged(const QString &text)
 
void onGraphicAnchorPointChanged(const QString &text)
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
QString getGraphicType() const 
Pure virtual method that should return a "user friendly" string that informs the graphic type that ca...
 
Abstract class that represents a widget that can be used to build a graphic element. 
 
void Free(std::vector< T * > *v)
This function can be applied to a pointer to a vector of pointers. 
 
const ParameterValue * getAnchorPointX() const 
 
QIcon getGraphicIcon(const QSize &size) const 
Pure virtual method that should return a QIcon that represents the graphic. i.e. a simple preview...
 
te::se::Graphic * m_graphic
Graphic element that will be configured by this widget. 
 
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
 
bool setGraphic(const te::se::Graphic *graphic)
Sets a graphic element to this widget. 
 
static MarkRendererManager & getInstance()
It returns a reference to the singleton instance. 
 
A widget used to build a graphic associate with a glyph mark element. 
 
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size. 
 
void setGraphicSize(const QString &size)
 
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
 
te::se::Mark * getMark() const 
Gets the configured mark element. 
 
const std::vector< Mark * > getMarks() const 
 
TEQTWIDGETSEXPORT QImage * GetImage(te::color::RGBAColor **img, int width, int height)
It creates a QImage from an RGBA color array. 
 
A Mark specifies a geometric shape and applies coloring to it.