VTK
vtkMetaImageWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMetaImageWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
64 #ifndef vtkMetaImageWriter_h
65 #define vtkMetaImageWriter_h
66 
67 #include "vtkIOImageModule.h" // For export macro
68 #include "vtkImageWriter.h"
69 
70 //BTX
71 namespace vtkmetaio { class MetaImage; } // forward declaration
72 //ETX
73 
75 {
76 public:
78  void PrintSelf(ostream& os, vtkIndent indent);
79 
81  static vtkMetaImageWriter *New();
82 
84 
85  virtual void SetFileName(const char* fname);
86  virtual char* GetFileName() { return this->MHDFileName; }
88 
90 
91  virtual void SetRAWFileName(const char* fname);
92  virtual char* GetRAWFileName();
94 
95  virtual void SetCompression( bool compress )
96  {
97  this->Compress = compress;
98  }
99  virtual bool GetCompression( void )
100  {
101  return this->Compress;
102  }
103 
104  // This is called by the superclass.
105  // This is the method you should override.
106  virtual void Write();
107 
108 protected:
111 
112  vtkSetStringMacro(MHDFileName);
113  char* MHDFileName;
114  bool Compress;
115 
116 private:
117  vtkMetaImageWriter(const vtkMetaImageWriter&); // Not implemented.
118  void operator=(const vtkMetaImageWriter&); // Not implemented.
119 
120 //BTX
121  vtkmetaio::MetaImage * MetaImagePtr;
122 //ETX
123 
124 };
125 
126 #endif
127 
128 
129 
virtual void SetCompression(bool compress)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void Write()
Writes images to files.
virtual bool GetCompression(void)
static vtkImageWriter * New()
virtual void SetFileName(const char *)
write a binary UNC meta image data
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOIMAGE_EXPORT
virtual char * GetFileName()