27 #include "../../se/Graphic.h"
28 #include "../../xml/Reader.h"
29 #include "../../xml/Writer.h"
88 return graphic.release();
98 const std::vector<te::se::Mark*> marks = graphic->
getMarks();
99 for(std::size_t i = 0; i < marks.size(); ++i)
100 Save(marks[i], writer);
103 for(std::size_t i = 0; i < egs.size(); ++i)
104 Save(egs[i], writer);
const AnchorPoint * getAnchorPoint() const
TESERIALIZATIONEXPORT te::se::ParameterValue * ReadParameterValue(te::xml::Reader &reader)
Utility methods for Symbology serialization.
TEDATAACCESSEXPORT void Save(const std::string &fileName)
Support for ExternalGraphic serialization.
This class models a XML reader object.
void WriteParameterValuePtrHelper(const std::string &elementName, const te::se::ParameterValue *p, te::xml::Writer &writer)
virtual bool next()=0
It gets the next event to be read.
TESERIALIZATIONEXPORT te::se::AnchorPoint * ReadAnchorPoint(te::xml::Reader &reader)
virtual void writeStartElement(const std::string &qName)
virtual void writeEndElement(const std::string &qName)
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
TESERIALIZATIONEXPORT te::se::ExternalGraphic * ReadExternalGraphic(te::xml::Reader &reader)
Support for Displacement serialization.
TESERIALIZATIONEXPORT te::se::Mark * ReadMark(te::xml::Reader &reader)
const Displacement * getDisplacement() const
const ParameterValue * getOpacity() const
Support for Mark serialization.
const ParameterValue * getSize() const
TESERIALIZATIONEXPORT te::se::Displacement * ReadDisplacement(te::xml::Reader &reader)
const ParameterValue * getRotation() const
const std::vector< ExternalGraphic * > getExternalGraphics() const
Support for AnchorPoint serialization.
TESERIALIZATIONEXPORT te::se::Graphic * ReadGraphic(te::xml::Reader &reader)
virtual NodeType getNodeType() const =0
It return the type of node read.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
const std::vector< Mark * > getMarks() const
This class models a XML writer object.