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 "vtkPolyDataWriter.h"
40 
42 {
43 public:
44  static vtkMCubesWriter *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetStringMacro(LimitsFileName);
51  vtkGetStringMacro(LimitsFileName);
53 
54 protected:
56  ~vtkMCubesWriter();
57 
58  void WriteData();
59 
60  void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
61  vtkCellArray *polys);
62  void WriteLimits(FILE *fp, double *bounds);
63 
65 private:
66  vtkMCubesWriter(const vtkMCubesWriter&); // Not implemented.
67  void operator=(const vtkMCubesWriter&); // Not implemented.
68 };
69 
70 #endif
71 
72