17 #ifndef _MITK_SURFACE_VTK_WRITER__H_
18 #define _MITK_SURFACE_VTK_WRITER__H_
22 #include <vtkPolyDataWriter.h>
23 #include <vtkSTLWriter.h>
24 #include <vtkXMLPolyDataWriter.h>
27 #include <itkProcessObject.h>
32 #include <vtkSmartPointer.h>
34 class vtkTransformPolyDataFilter;
54 template <
class VTKWRITER>
60 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
70 itkSetStringMacro(FileName);
75 itkGetStringMacro(FileName);
85 itkSetStringMacro(Extension);
92 itkGetStringMacro(Extension);
100 void SetDefaultExtension();
105 itkSetStringMacro(FilePrefix);
110 itkGetStringMacro(FilePrefix);
115 itkSetStringMacro(FilePattern);
120 itkGetStringMacro(FilePattern);
136 virtual
std::
string GetFileExtension() override;
141 virtual
bool CanWriteDataType(
DataNode *) override;
146 virtual
std::
string GetWritenMIMEType() override;
154 VtkWriterType *GetVtkWriter() {
return m_VtkWriter; }
158 virtual std::vector<std::string> GetPossibleFileExtensions()
override;
161 virtual const char *GetDefaultFilename()
override;
162 virtual const char *GetFileDialogPattern()
override;
163 virtual const char *GetDefaultExtension()
override;
178 virtual void GenerateData()
override;
180 void ExecuteWrite(VtkWriterType *vtkWriter);
197 #ifndef MitkLegacyIO_EXPORTS
204 #endif //_MITK_SURFACE_VTK_WRITER__H_
virtual std::string GetSupportedBaseData() const override
Class for storing surfaces (vtkPolyData).
#define MITKLEGACYIO_EXPORT
bool m_WriterWriteHasReturnValue
VTK-based writer for mitk::Surface.
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_FilePattern
vtkSmartPointer< VtkWriterType > m_VtkWriter
#define mitkClassMacro(className, SuperClassName)
Interface class of writers that write data to files.
itk::ProcessObject Superclass
static const char * GetStaticNameOfClass()
Class for nodes of the DataTree.