VTK  9.2.6
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:
52 vtkTypeMacro(vtkMCubesWriter, vtkWriter);
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
56
59 vtkSetFilePathMacro(LimitsFileName);
60 vtkGetFilePathMacro(LimitsFileName);
62
64
70
72
78
79protected:
81 ~vtkMCubesWriter() override;
82
83 void WriteData() override;
84
85 void WriteMCubes(FILE* fp, vtkPoints* pts, vtkDataArray* normals, vtkCellArray* polys);
86 void WriteLimits(FILE* fp, double* bounds);
87
89
90 char* FileName;
91
92 int FillInputPortInformation(int port, vtkInformation* info) override;
93
94private:
95 vtkMCubesWriter(const vtkMCubesWriter&) = delete;
96 void operator=(const vtkMCubesWriter&) = delete;
97};
98
99#endif
object to represent cell connectivity
abstract superclass for arrays of numeric data
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.
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(int port)
Get the input to this writer.
~vtkMCubesWriter() override
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
represent and manipulate 3D points
Definition vtkPoints.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
abstract class to write data to file(s)
Definition vtkWriter.h:46