Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
IO/vtkImageWriter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00041 #ifndef __vtkImageWriter_h
00042 #define __vtkImageWriter_h
00043
00044 #include "vtkProcessObject.h"
00045
00046 class vtkImageData;
00047
00048 class VTK_IO_EXPORT vtkImageWriter : public vtkProcessObject
00049 {
00050 public:
00051 static vtkImageWriter *New();
00052 vtkTypeRevisionMacro(vtkImageWriter,vtkProcessObject);
00053 void PrintSelf(ostream& os, vtkIndent indent);
00054
00056
00059 void SetFileName(const char *);
00060 vtkGetStringMacro(FileName);
00062
00064
00067 void SetFilePrefix(char *filePrefix);
00068 vtkGetStringMacro(FilePrefix);
00070
00072
00073 void SetFilePattern(const char *filePattern);
00074 vtkGetStringMacro(FilePattern);
00076
00078
00081 vtkSetMacro(FileDimensionality, int);
00082 vtkGetMacro(FileDimensionality, int);
00084
00086
00087 virtual void SetInput(vtkImageData *input);
00088 vtkImageData *GetInput();
00090
00092 virtual void Write();
00093
00094 protected:
00095 vtkImageWriter();
00096 ~vtkImageWriter();
00097
00098 int FileDimensionality;
00099 char *FilePrefix;
00100 char *FilePattern;
00101 char *FileName;
00102 int FileNumber;
00103 int FileLowerLeft;
00104 char *InternalFileName;
00105
00106 virtual void RecursiveWrite(int dim, vtkImageData *region, ofstream *file);
00107 virtual void RecursiveWrite(int dim, vtkImageData *cache,
00108 vtkImageData *data, ofstream *file);
00109 virtual void WriteFile(ofstream *file, vtkImageData *data, int extent[6]);
00110 virtual void WriteFileHeader(ofstream *, vtkImageData *) {};
00111 virtual void WriteFileTrailer(ofstream *, vtkImageData *) {};
00112 private:
00113 vtkImageWriter(const vtkImageWriter&);
00114 void operator=(const vtkImageWriter&);
00115 };
00116
00117 #endif
00118
00119