Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkDataObjectWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataObjectWriter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00044 #ifndef __vtkDataObjectWriter_h
00045 #define __vtkDataObjectWriter_h
00046 
00047 #include "vtkWriter.h"
00048 #include "vtkDataWriter.h" // Neds data because it calls methods on it
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&);  // Not implemented.
00086   void operator=(const vtkDataObjectWriter&);  // Not implemented.
00087 };
00088 
00089 #endif
00090 
00091