27 #include "../../../maptools/Utils.h" 28 #include "../../../se.h" 29 #include "../../../xlink/SimpleLink.h" 37 #include <QGridLayout> 41 #include <QtPropertyBrowser/QtTreePropertyBrowser> 42 #include <QtPropertyBrowser/QtVariantPropertyManager> 48 : m_setLocalGraphic(false), m_graphic(new
te::se::Graphic)
50 QGridLayout* layout =
new QGridLayout(
this);
51 this->setLayout(layout);
54 layout->addWidget(tb);
56 QtTreePropertyBrowser* graphBrowser =
new QtTreePropertyBrowser(
this);
57 graphBrowser->setIndentation(10);
58 graphBrowser->setPropertiesWithoutValueMarked(
true);
59 graphBrowser->setRootIsDecorated(
false);
60 graphBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
63 tb->addItem(graphBrowser,
"Graphic Properties");
65 QtTreePropertyBrowser* wkBrowser =
new QtTreePropertyBrowser(
this);
66 wkBrowser->setIndentation(10);
67 wkBrowser->setPropertiesWithoutValueMarked(
true);
68 wkBrowser->setRootIsDecorated(
false);
69 wkBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
72 tb->addItem(wkBrowser,
"Well Known Mark");
74 QtTreePropertyBrowser* gpBrowser =
new QtTreePropertyBrowser(
this);
75 gpBrowser->setIndentation(10);
76 gpBrowser->setPropertiesWithoutValueMarked(
true);
77 gpBrowser->setRootIsDecorated(
false);
78 gpBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
81 tb->addItem(gpBrowser,
"Glyph Mark");
83 QtTreePropertyBrowser* liBrowser =
new QtTreePropertyBrowser(
this);
84 liBrowser->setIndentation(10);
85 liBrowser->setPropertiesWithoutValueMarked(
true);
86 liBrowser->setRootIsDecorated(
false);
87 liBrowser->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
90 tb->addItem(liBrowser,
"Local Image");
117 if(marks.empty() ==
false)
123 std::size_t found = name->find(
"ttf://");
124 if(found != std::string::npos)
127 found = name->find(
"://");
128 if(found == std::string::npos)
134 if(extGraphics.empty() ==
false)
141 const std::string href = link->
getHref();
146 if(!img.load(href.c_str()))
const ParameterValue * getRotation() const
void setRotation(ParameterValue *value)
The Rotation element gives the rotation of a graphic in the clockwise direction about its center poin...
void setOpacity(ParameterValue *value)
The Opacity element gives the opacity to use for rendering the graphic. It has the same semantics as ...
A Mark specifies a geometric shape and applies coloring to it.
const std::vector< ExternalGraphic * > getExternalGraphics() const
const std::string & getHref() const
A widget used to define a local image graphic for a se symbolizer.
void setSize(ParameterValue *value)
The Size element gives the absolute size of the graphic in uoms encoded as a floating-point number...
void clear()
Clears the marks and the external graphics of this graphic.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
void add(ExternalGraphic *g)
Graphics can either be referenced from an external URL in a common format (such as GIF or SVG)...
A widget used to define a glyph object.
const te::xl::SimpleLink * getOnlineResource() const
A widget used to define the general properties of a se object.
The ExternalGraphic allows a reference to be made to an external graphic file with a Web URL or to in...
Graphic * clone() const
It creates a new copy of this object.
who udp maintains data bases showing who s shell tcp cmd syslog udp printer tcp spooler printer udp spooler videotex tcp videotex videotex udp videotex talk tcp like tenex link
A widget used to define the mark se properties.
const std::string * getWellKnownName() const
ParameterValue * clone() const
It creates a new copy of this object.
const std::vector< Mark * > getMarks() const
const ParameterValue * getSize() const
const ParameterValue * getOpacity() const