VTK  9.3.20240423
vtkMCubesWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
25#ifndef vtkMCubesWriter_h
26#define vtkMCubesWriter_h
27
28#include "vtkIOGeometryModule.h" // For export macro
29#include "vtkWriter.h"
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkCellArray;
33class vtkDataArray;
34class vtkPoints;
35class vtkPolyData;
36
37class VTKIOGEOMETRY_EXPORT vtkMCubesWriter : public vtkWriter
38{
39public:
41 vtkTypeMacro(vtkMCubesWriter, vtkWriter);
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
48 vtkSetFilePathMacro(LimitsFileName);
49 vtkGetFilePathMacro(LimitsFileName);
51
53
59
61
67
68protected:
70 ~vtkMCubesWriter() override;
71
72 void WriteData() override;
73
74 void WriteMCubes(FILE* fp, vtkPoints* pts, vtkDataArray* normals, vtkCellArray* polys);
75 void WriteLimits(FILE* fp, double* bounds);
76
78
79 char* FileName;
80
81 int FillInputPortInformation(int port, vtkInformation* info) override;
82
83private:
84 vtkMCubesWriter(const vtkMCubesWriter&) = delete;
85 void operator=(const vtkMCubesWriter&) = delete;
86};
87
88VTK_ABI_NAMESPACE_END
89#endif
object to represent cell connectivity
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
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:139
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract class to write data to file(s)
Definition vtkWriter.h:35