13 #ifndef mitkContourModelWriter_h
14 #define mitkContourModelWriter_h
128 std::vector<std::string> attributes,
129 std::vector<std::string> values,
141 void WriteEndElement(
const char *
const tag, std::ostream &file,
const bool &indent =
true);
163 void WriteEndElement(std::string &tag, std::ostream &file,
const bool &indent =
true);
Base class for writing mitk::BaseData objects to files or streams.
void Write() override=0
Write the base data to the specified location or output stream.
XML-based writer for mitk::ContourModels.
ContourModelWriter(bool writeXMLHeader=true)
Construct the writer, optionally including an XML header.
static const char * XML_X
void WriteIndent(std::ostream &file)
Write indentation spaces to the stream according to m_IndentDepth and m_Indent.
static const char * XML_HEAD
static const char * XML_CONTROL_POINTS
void WriteStartElement(const char *const tag, std::ostream &file)
Write a start element tag.
void WriteStartElement(std::string &tag, std::ostream &file)
Write a start element tag (std::string overload).
static const char * XML_Z
void WriteCharacterData(const char *const data, std::ostream &file)
Write character data inside a tag.
void WriteCharacterData(std::string &data, std::ostream &file)
Write character data inside a tag (std::string overload).
unsigned int m_IndentDepth
void WriteStartElementWithAttribut(const char *const tag, std::vector< std::string > attributes, std::vector< std::string > values, std::ostream &file)
Write a start element tag with attributes.
static const char * XML_DATA
static const char * XML_TIME_STEP
ContourModelWriter(const ContourModelWriter &other)
void WriteGeometryInformation(const mitk::TimeGeometry *geometry, std::ostream &out)
Write the geometry information of a TimeGeometry to a stream.
void Write() override
Write the ContourModel to the configured output location.
void WriteEndElement(std::string &tag, std::ostream &file, const bool &indent=true)
Write an end element tag (std::string overload).
static const char * XML_Y
static const char * XML_POINT
void WriteXMLHeader(std::ostream &file)
Write a standard XML header to the given stream.
static const char * XML_CONTOURMODEL
~ContourModelWriter() override
std::string ConvertToString(T value)
Convert an arbitrary type to a string.
void WriteEndElement(const char *const tag, std::ostream &file, const bool &indent=true)
Write an end element tag.
static const char * XML_GEOMETRY_INFO
mitk::ContourModelWriter * Clone() const override
void WriteXML(const mitk::ContourModel *contourModel, std::ostream &out)
Write an XML representation of the given contour model to a stream.
A time-resolved contour representation consisting of linked vertices in 3D space.
Find image slices visible on a given plane.