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=========================================================================*/
37#ifndef vtkMCubesWriter_h
38#define vtkMCubesWriter_h
39
40#include "vtkIOGeometryModule.h" // For export macro
41#include "vtkWriter.h"
42
43class vtkCellArray;
44class vtkDataArray;
45class vtkPoints;
46class vtkPolyData;
47
48class VTKIOGEOMETRY_EXPORT vtkMCubesWriter : public vtkWriter
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent);
54
56
59 vtkSetStringMacro(LimitsFileName);
60 vtkGetStringMacro(LimitsFileName);
62
64
70
72
75 vtkSetStringMacro(FileName);
78
79protected:
82
83 void WriteData();
84
85 void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
86 vtkCellArray *polys);
87 void WriteLimits(FILE *fp, double *bounds);
88
90
91 char *FileName;
92
94
95private:
96 vtkMCubesWriter(const vtkMCubesWriter&) VTK_DELETE_FUNCTION;
97 void operator=(const vtkMCubesWriter&) VTK_DELETE_FUNCTION;
98};
99
100#endif
101
102
object to represent cell connectivity
Definition: vtkCellArray.h:51
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
write binary marching cubes file
vtkPolyData * GetInput()
Get the input to this writer.
void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals, vtkCellArray *polys)
void WriteLimits(FILE *fp, double *bounds)
static vtkMCubesWriter * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkPolyData * GetInput(int port)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 3D points
Definition: vtkPoints.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.