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 "vtkWriter.h"
41 
42 class vtkCellArray;
43 class vtkDataArray;
44 class vtkPoints;
45 class vtkPolyData;
46 
48 {
49 public:
50  static vtkMCubesWriter *New();
51  vtkTypeMacro(vtkMCubesWriter,vtkWriter);
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  vtkSetStringMacro(LimitsFileName);
57  vtkGetStringMacro(LimitsFileName);
59 
61 
65 
67 
68  vtkSetStringMacro(FileName);
69  vtkGetStringMacro(FileName);
71 
72 protected:
74  ~vtkMCubesWriter();
75 
76  void WriteData();
77 
78  void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
79  vtkCellArray *polys);
80  void WriteLimits(FILE *fp, double *bounds);
81 
83 
84  char *FileName;
85 
87 
88 private:
89  vtkMCubesWriter(const vtkMCubesWriter&); // Not implemented.
90  void operator=(const vtkMCubesWriter&); // Not implemented.
91 };
92 
93 #endif
94 
95 
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
#define VTKIOGEOMETRY_EXPORT
abstract class to write data to file(s)
Definition: vtkWriter.h:44
write binary marching cubes file
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkDataObject * GetInput()
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
virtual int FillInputPortInformation(int port, vtkInformation *info)
object to represent cell connectivity
Definition: vtkCellArray.h:49
static vtkAlgorithm * New()
virtual void WriteData()=0
void PrintSelf(ostream &os, vtkIndent indent)
represent and manipulate 3D points
Definition: vtkPoints.h:38