VTK
vtkMCubesWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMCubesWriter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef __vtkMCubesWriter_h
37 #define __vtkMCubesWriter_h
38 
39 #include "vtkIOGeometryModule.h" // For export macro
40 #include "vtkPolyDataWriter.h"
41 
42 class VTKIOGEOMETRY_EXPORT vtkMCubesWriter : public vtkPolyDataWriter
43 {
44 public:
45  static vtkMCubesWriter *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkSetStringMacro(LimitsFileName);
52  vtkGetStringMacro(LimitsFileName);
54 
55 protected:
57  ~vtkMCubesWriter();
58 
59  void WriteData();
60 
61  void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
62  vtkCellArray *polys);
63  void WriteLimits(FILE *fp, double *bounds);
64 
66 private:
67  vtkMCubesWriter(const vtkMCubesWriter&); // Not implemented.
68  void operator=(const vtkMCubesWriter&); // Not implemented.
69 };
70 
71 #endif
72 
73