VTK
dox/IO/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 "vtkPolyDataWriter.h"
00040 
00041 class VTK_IO_EXPORT vtkMCubesWriter : public vtkPolyDataWriter
00042 {
00043 public:
00044   static vtkMCubesWriter *New();
00045   vtkTypeMacro(vtkMCubesWriter,vtkPolyDataWriter);
00046   void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00050   vtkSetStringMacro(LimitsFileName);
00051   vtkGetStringMacro(LimitsFileName);
00053 
00054 protected:
00055   vtkMCubesWriter();
00056   ~vtkMCubesWriter();
00057   
00058   void WriteData();
00059   
00060   void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals, 
00061                    vtkCellArray *polys);
00062   void WriteLimits(FILE *fp, double *bounds);
00063   
00064   char *LimitsFileName;
00065 private:
00066   vtkMCubesWriter(const vtkMCubesWriter&);  // Not implemented.
00067   void operator=(const vtkMCubesWriter&);  // Not implemented.
00068 };
00069 
00070 #endif
00071 
00072