17 #ifndef _MITK_PlanarFigure_WRITER__H_
18 #define _MITK_PlanarFigure_WRITER__H_
21 #include <itkProcessObject.h>
41 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
51 itkSetStringMacro(FileName);
56 itkGetStringMacro(FileName);
61 itkSetStringMacro(FilePrefix);
66 itkGetStringMacro(FilePrefix);
71 itkSetStringMacro(FilePattern);
76 itkGetStringMacro(FilePattern);
84 void SetInput(InputType *input);
92 void SetInput(const
unsigned int &num, InputType *input);
108 virtual
std::vector<
std::
string> GetPossibleFileExtensions() override;
113 virtual
std::
string GetFileExtension() override;
118 virtual
bool CanWriteDataType(
DataNode *) override;
123 virtual
std::
string GetWritenMIMEType() override;
130 virtual
std::
string GetSupportedBaseData() const override;
135 itkGetConstMacro(Success,
bool);
137 virtual const
char *GetDefaultFilename()
override {
return "PlanarFigure.pf"; }
146 if (CanWriteBaseDataType(data))
148 this->SetInput(dynamic_cast<mitk::PlanarFigure *>(data.GetPointer()));
157 virtual void ReleaseMemory()
override;
173 virtual void GenerateData()
override;
180 virtual void ResizeInputs(
const unsigned int &num);
189 TiXmlElement *CreateXMLVectorElement(
const char *name, itk::FixedArray<mitk::ScalarType, 3> v);
static void Update(vtkPolyData *)
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Interface class of writers that write data to files.
itk::ProcessObject Superclass
Class for nodes of the DataTree.