13 #ifndef mitkPointSetWriter_h
14 #define mitkPointSetWriter_h
18 #include <itkProcessObject.h>
43 itkFactorylessNewMacro(
Self);
54 itkSetStringMacro(FileName);
59 itkGetStringMacro(FileName);
64 itkSetStringMacro(FilePrefix);
69 itkGetStringMacro(FilePrefix);
74 itkSetStringMacro(FilePattern);
79 itkGetStringMacro(FilePattern);
94 void SetInput(
const unsigned int &num,
InputType *input);
105 PointSet *GetInput(
const unsigned int &num);
110 std::vector<std::string> GetPossibleFileExtensions()
override;
112 std::string GetSupportedBaseData()
const override;
117 std::string GetFileExtension()
override;
122 bool CanWriteDataType(
DataNode *)
override;
127 std::string GetWritenMIMEType()
override;
138 bool GetSuccess()
const;
154 void GenerateData()
override;
161 virtual void ResizeInputs(
const unsigned int &num);
170 template <
typename T>
171 std::string ConvertToString(T value);
185 void WriteXMLHeader(std::ofstream &file);
188 void WriteStartElement(
const char *
const tag, std::ofstream &file);
194 void WriteEndElement(
const char *
const tag, std::ofstream &file,
const bool &indent =
true);
197 void WriteCharacterData(
const char *
const data, std::ofstream &file);
200 void WriteStartElement(std::string &tag, std::ofstream &file);
203 void WriteEndElement(std::string &tag, std::ofstream &file,
const bool &indent =
true);
206 void WriteCharacterData(std::string &data, std::ofstream &file);
209 void WriteIndent(std::ofstream &file);