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);
170 template <
typename T>
194 void WriteEndElement(
const char *
const tag, std::ofstream &file,
const bool &indent =
true);
203 void WriteEndElement(std::string &tag, std::ofstream &file,
const bool &indent =
true);
#define MITKLEGACYIO_EXPORT
Class for nodes of the DataTree.
Interface class of writers that write data to files.
void SetInput(BaseData *data)
XML-based writer for mitk::PointSets.
void WriteEndElement(std::string &tag, std::ofstream &file, const bool &indent=true)
std::string GetWritenMIMEType() override
Return the MimeType of the saved File.
void WriteXML(mitk::PointSet *pointSet, std::ofstream &out)
virtual void SetInput(DataNode *)
Set the DataTreenode as Input. Important: The Writer always have a SetInput-Function.
std::string GetFileExtension() override
Return the extension to be added to the filename.
static const char * XML_TIME_SERIES_ID
static const char * VERSION_STRING
void SetInput(InputType *input)
void WriteStartElement(const char *const tag, std::ofstream &file)
static const char * XML_FILE_VERSION
static const char * XML_SPEC
void WriteXMLHeader(std::ofstream &file)
std::vector< std::string > GetPossibleFileExtensions() override
Return the possible file extensions for the data type associated with the writer.
std::string m_FilePattern
unsigned int m_IndentDepth
void WriteEndElement(const char *const tag, std::ofstream &file, const bool &indent=true)
std::string ConvertToString(T value)
static const char * XML_X
bool CanWriteDataType(DataNode *) override
Check if the Writer can write the Content of the.
static const char * XML_Y
static const char * XML_ID
static const char * XML_Z
void WriteCharacterData(std::string &data, std::ofstream &file)
void WriteStartElement(std::string &tag, std::ofstream &file)
InputType::Pointer InputTypePointer
std::string GetSupportedBaseData() const override
static const char * XML_POINT_SET_FILE
void SetInput(const unsigned int &num, InputType *input)
void WriteCharacterData(const char *const data, std::ofstream &file)
mitkClassMacro(PointSetWriter, mitk::FileWriter)
virtual void ResizeInputs(const unsigned int &num)
PointSet * GetInput(const unsigned int &num)
static const char * XML_POINT
static const char * XML_TIME_SERIES
~PointSetWriter() override
void GenerateData() override
void WriteIndent(std::ofstream &file)
static const char * XML_POINT_SET
Data structure which stores a set of points.
Find image slices visible on a given plane.