VTK  9.1.0
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 =========================================================================*/
34 #ifndef vtkMCubesWriter_h
35 #define vtkMCubesWriter_h
36 
37 #include "vtkIOGeometryModule.h" // For export macro
38 #include "vtkWriter.h"
39 
40 class vtkCellArray;
41 class vtkDataArray;
42 class vtkPoints;
43 class vtkPolyData;
44 
45 class VTKIOGEOMETRY_EXPORT vtkMCubesWriter : public vtkWriter
46 {
47 public:
48  static vtkMCubesWriter* New();
49  vtkTypeMacro(vtkMCubesWriter, vtkWriter);
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  vtkSetFilePathMacro(LimitsFileName);
57  vtkGetFilePathMacro(LimitsFileName);
59 
61 
67 
69 
75 
76 protected:
78  ~vtkMCubesWriter() override;
79 
80  void WriteData() override;
81 
82  void WriteMCubes(FILE* fp, vtkPoints* pts, vtkDataArray* normals, vtkCellArray* polys);
83  void WriteLimits(FILE* fp, double* bounds);
84 
86 
87  char* FileName;
88 
90 
91 private:
92  vtkMCubesWriter(const vtkMCubesWriter&) = delete;
93  void operator=(const vtkMCubesWriter&) = delete;
94 };
95 
96 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:181
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
write binary marching cubes file
vtkGetFilePathMacro(LimitsFileName)
Set/get file name of marching cubes limits file.
void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals, vtkCellArray *polys)
void WriteData() override
void WriteLimits(FILE *fp, double *bounds)
vtkGetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSetFilePathMacro(LimitsFileName)
Set/get file name of marching cubes limits file.
static vtkMCubesWriter * New()
vtkPolyData * GetInput()
Get the input to this writer.
~vtkMCubesWriter() override
vtkPolyData * GetInput(int port)
Get the input to this writer.
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
represent and manipulate 3D points
Definition: vtkPoints.h:34
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
abstract class to write data to file(s)
Definition: vtkWriter.h:46
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453