vtkDataObjectWriter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00044 #ifndef __vtkDataObjectWriter_h
00045 #define __vtkDataObjectWriter_h
00046
00047 #include "vtkWriter.h"
00048 #include "vtkDataWriter.h"
00049
00050 class VTK_IO_EXPORT vtkDataObjectWriter : public vtkWriter
00051 {
00052 public:
00053 static vtkDataObjectWriter *New();
00054 vtkTypeRevisionMacro(vtkDataObjectWriter,vtkWriter);
00055 void PrintSelf(ostream& os, vtkIndent indent);
00056
00058
00059 void SetInput(vtkDataObject *input);
00060 vtkDataObject *GetInput();
00062
00064
00065 void SetFileName(const char *filename) {this->Writer->SetFileName(filename);};
00066 char *GetFileName() {return this->Writer->GetFileName();};
00067 void SetHeader(char *header) {this->Writer->SetHeader(header);};
00068 char *GetHeader() {return this->Writer->GetHeader();};
00069 void SetFileType(int type) {this->Writer->SetFileType(type);};
00070 int GetFileType() {return this->Writer->GetFileType();};
00071 void SetFileTypeToASCII() {this->Writer->SetFileType(VTK_ASCII);};
00072 void SetFileTypeToBinary() {this->Writer->SetFileType(VTK_BINARY);};
00073 void SetFieldDataName(char *fieldname) {this->Writer->SetFieldDataName(fieldname);};
00074 char *GetFieldDataName() {return this->Writer->GetFieldDataName();};
00076
00077 protected:
00078 vtkDataObjectWriter();
00079 ~vtkDataObjectWriter();
00080
00081 void WriteData();
00082 vtkDataWriter *Writer;
00083
00084 private:
00085 vtkDataObjectWriter(const vtkDataObjectWriter&);
00086 void operator=(const vtkDataObjectWriter&);
00087 };
00088
00089 #endif
00090
00091