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 =========================================================================*/
62 #ifndef vtkMetaImageWriter_h
63 #define vtkMetaImageWriter_h
64 
65 #include "vtkIOImageModule.h" // For export macro
66 #include "vtkImageWriter.h"
67 
68 namespace vtkmetaio { class MetaImage; } // forward declaration
69 
70 class VTKIOIMAGE_EXPORT vtkMetaImageWriter : public vtkImageWriter
71 {
72 public:
74  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
75 
79  static vtkMetaImageWriter *New();
80 
84  void SetFileName(const char* fname) VTK_OVERRIDE;
85  char* GetFileName() VTK_OVERRIDE { return this->MHDFileName; }
86 
88 
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  void Write() VTK_OVERRIDE;
107 
108 protected:
110  ~vtkMetaImageWriter() VTK_OVERRIDE;
111 
112  vtkSetStringMacro(MHDFileName);
113  char* MHDFileName;
114  bool Compress;
115 
116 private:
117  vtkMetaImageWriter(const vtkMetaImageWriter&) VTK_DELETE_FUNCTION;
118  void operator=(const vtkMetaImageWriter&) VTK_DELETE_FUNCTION;
119 
120  vtkmetaio::MetaImage * MetaImagePtr;
121 
122 };
123 
124 #endif
125 
126 
127 
virtual void SetCompression(bool compress)
char * GetFileName() override
Specify file name for the image file.
a simple class to control print indentation
Definition: vtkIndent.h:33
Writes images to files.
virtual bool GetCompression(void)
write a binary UNC meta image data