VTK
dox/IO/Geometry/vtkIVWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkIVWriter.h
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 =========================================================================*/
00028 #ifndef __vtkIVWriter_h
00029 #define __vtkIVWriter_h
00030 
00031 #include "vtkIOGeometryModule.h" // For export macro
00032 #include "vtkWriter.h"
00033 
00034 class vtkPolyData;
00035 
00036 class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
00037 {
00038 public:
00039   static vtkIVWriter *New();
00040   vtkTypeMacro(vtkIVWriter,vtkWriter);
00041   virtual void PrintSelf(ostream& os, vtkIndent indent);
00042 
00044 
00045   vtkPolyData* GetInput();
00046   vtkPolyData* GetInput(int port);
00048 
00050 
00051   vtkSetStringMacro(FileName);
00052   vtkGetStringMacro(FileName);
00054 
00055 protected:
00056   vtkIVWriter()
00057     {
00058     this->FileName = NULL;
00059     }
00060 
00061   ~vtkIVWriter()
00062     {
00063     delete[] this->FileName;
00064     }
00065 
00066   void WriteData();
00067   void WritePolyData(vtkPolyData *polyData, FILE *fp);
00068 
00069   char *FileName;
00070 
00071   virtual int FillInputPortInformation(int port, vtkInformation *info);
00072 
00073 private:
00074   vtkIVWriter(const vtkIVWriter&);  // Not implemented.
00075   void operator=(const vtkIVWriter&);  // Not implemented.
00076 };
00077 
00078 #endif
00079