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 =========================================================================*/
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  vtkSetStringMacro(LimitsFileName);
57  vtkGetStringMacro(LimitsFileName);
59 
61 
67 
69 
72  vtkSetStringMacro(FileName);
73  vtkGetStringMacro(FileName);
75 
76 protected:
78  ~vtkMCubesWriter() override;
79 
80  void WriteData() override;
81 
82  void WriteMCubes(FILE *fp, vtkPoints *pts, vtkDataArray *normals,
83  vtkCellArray *polys);
84  void WriteLimits(FILE *fp, double *bounds);
85 
87 
88  char *FileName;
89 
91 
92 private:
93  vtkMCubesWriter(const vtkMCubesWriter&) = delete;
94  void operator=(const vtkMCubesWriter&) = delete;
95 };
96 
97 #endif
98 
99 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkMCubesWriter::FileName
char * FileName
Definition: vtkMCubesWriter.h:88
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMCubesWriter::LimitsFileName
char * LimitsFileName
Definition: vtkMCubesWriter.h:86
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkX3D::port
Definition: vtkX3D.h:447
vtkWriter::WriteData
virtual void WriteData()=0
vtkWriter::GetInput
vtkDataObject * GetInput()
vtkMCubesWriter
write binary marching cubes file
Definition: vtkMCubesWriter.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:44
vtkWriter
abstract class to write data to file(s)
Definition: vtkWriter.h:42
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkWriter.h
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79