17 #ifndef _MITK_POINT_SET_WRITER__H_
18 #define _MITK_POINT_SET_WRITER__H_
22 #include <itkProcessObject.h>
47 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
57 itkSetStringMacro(FileName);
62 itkGetStringMacro(FileName);
67 itkSetStringMacro(FilePrefix);
72 itkGetStringMacro(FilePrefix);
77 itkSetStringMacro(FilePattern);
82 itkGetStringMacro(FilePattern);
88 void SetInput(InputType *input);
96 void SetInput(const
unsigned int &num, InputType *input);
107 PointSet *GetInput(const
unsigned int &num);
112 virtual
std::vector<
std::
string> GetPossibleFileExtensions() override;
114 virtual
std::
string GetSupportedBaseData() const override;
119 virtual
std::
string GetFileExtension() override;
124 virtual
bool CanWriteDataType(
DataNode *) override;
129 virtual
std::
string GetWritenMIMEType() override;
140 bool GetSuccess() const;
151 virtual ~PointSetWriter();
156 virtual
void GenerateData() override;
163 virtual
void ResizeInputs(const
unsigned int &num);
172 template <typename T>
173 std::
string ConvertToString(T value);
187 void WriteXMLHeader(
std::ofstream &file);
190 void WriteStartElement(const
char *const tag,
std::ofstream &file);
196 void WriteEndElement(const
char *const tag,
std::ofstream &file, const
bool &indent = true);
199 void WriteCharacterData(const
char *const data,
std::ofstream &file);
202 void WriteStartElement(
std::
string &tag,
std::ofstream &file);
205 void WriteEndElement(
std::
string &tag,
std::ofstream &file, const
bool &indent = true);
208 void WriteCharacterData(
std::
string &data,
std::ofstream &file);
211 void WriteIndent(
std::ofstream &file);
217 std::
string m_FilePattern;
223 unsigned int m_IndentDepth;
225 unsigned int m_Indent;
230 static const
char *XML_POINT_SET;
232 static const
char *XML_TIME_SERIES;
234 static const
char *XML_TIME_SERIES_ID;
236 static const
char *XML_POINT_SET_FILE;
238 static const
char *XML_FILE_VERSION;
240 static const
char *XML_POINT;
242 static const
char *XML_SPEC;
244 static const
char *XML_ID;
246 static const
char *XML_X;
248 static const
char *XML_Y;
250 static const
char *XML_Z;
252 static const
char *VERSION_STRING;
#define MITKLEGACYIO_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Data structure which stores a set of points. Superclass of mitk::Mesh.
#define mitkClassMacro(className, SuperClassName)
Interface class of writers that write data to files.
XML-based writer for mitk::PointSets.
Class for nodes of the DataTree.