VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Geometry/vtkMCubesWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMCubesWriter.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 =========================================================================*/
00036 #ifndef vtkMCubesWriter_h
00037 #define vtkMCubesWriter_h
00038 
00039 #include "vtkIOGeometryModule.h" // For export macro
00040 #include "vtkWriter.h"
00041 
00042 class vtkCellArray;
00043 class vtkDataArray;
00044 class vtkPoints;
00045 class vtkPolyData;
00046 
00047 class VTKIOGEOMETRY_EXPORT vtkMCubesWriter : public vtkWriter
00048 {
00049 public:
00050   static vtkMCubesWriter *New();
00051   vtkTypeMacro(vtkMCubesWriter,vtkWriter);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053 
00055 
00056   vtkSetStringMacro(LimitsFileName);
00057   vtkGetStringMacro(LimitsFileName);
00059 
00061 
00062   vtkPolyData* GetInput();
00063   vtkPolyData* GetInput(int port);
00065 
00067 
00068   vtkSetStringMacro(FileName);
00069   vtkGetStringMacro(FileName);
00071 
00072 protected:
00073   vtkMCubesWriter();
00074   ~vtkMCubesWriter();
00075 
00076   void WriteData();
00077 
00078   void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
00079                    vtkCellArray *polys);
00080   void WriteLimits(FILE *fp, double *bounds);
00081 
00082   char *LimitsFileName;
00083 
00084   char *FileName;
00085 
00086   virtual int FillInputPortInformation(int port, vtkInformation *info);
00087 
00088 private:
00089   vtkMCubesWriter(const vtkMCubesWriter&);  // Not implemented.
00090   void operator=(const vtkMCubesWriter&);  // Not implemented.
00091 };
00092 
00093 #endif
00094 
00095