27 #include "../../../se/Mark.h"
28 #include "../../../maptools/MarkRendererManager.h"
29 #include "../propertybrowser/AbstractPropertyManager.h"
39 m_mark(new
te::se::Mark), m_setLocalMark(false)
49 addProperty(markProperty, tr(
"Mark"), QColor(255, 175, 175));
74 m_mark = mark->
clone();
76 m_setLocalMark =
true;
80 m_setLocalMark =
false;
85 return m_mark->
clone();
90 const std::string* name = m_mark->getWellKnownName();
93 std::map<int, std::string>::iterator it = m_supportedMarksMap.begin();
95 while(it != m_supportedMarksMap.end())
97 if(it->second == *name)
107 m_bs->setStroke(stroke);
116 if(p == m_typeProperty)
118 m_mark->setWellKnownName(
new std::string(m_supportedMarksMap[value]));
131 for(std::size_t i = 0; i < m_supportedMarks.size(); ++i)
133 l << m_supportedMarks[i].c_str();
135 m_supportedMarksMap.insert(std::map<int, std::string>::value_type(i, m_supportedMarks[i]));
143 m_mark->setStroke(m_bs->getStroke());
151 m_mark->setFill(m_bf->getFill());
A Mark specifies a geometric shape and applies coloring to it.
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
A widget used to define the basic fill se object.
A widget used to define the mark se properties.
A Fill specifies the pattern for filling an area geometry.
A Stroke specifies the appearance of a linear geometry.
void setStroke(Stroke *s)
Mark * clone() const
It creates a new copy of this object.
void setWellKnownName(std::string *name)
The WellKnownName element gives the well-known name of the shape of the mark.
A widget used to define the basic fill se object.