VTK  9.1.0
vtkFacetWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkFacetWriter.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
39#ifndef vtkFacetWriter_h
40#define vtkFacetWriter_h
41
42#include "vtkIOGeometryModule.h" // For export macro
44
45class vtkInformation;
46
47class VTKIOGEOMETRY_EXPORT vtkFacetWriter : public vtkPolyDataAlgorithm
48{
49public:
52 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
61
65 void Write();
66
67 void WriteToStream(ostream* ost);
68
69protected:
71 ~vtkFacetWriter() override;
72
73 // This is called by the superclass.
74 // This is the method you should override.
75 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
76 vtkInformationVector* outputVector) override;
77
79
80 int WriteDataToStream(ostream* ost, vtkPolyData* data);
81
82 char* FileName;
83 ostream* OutputStream;
84
85private:
86 vtkFacetWriter(const vtkFacetWriter&) = delete;
87 void operator=(const vtkFacetWriter&) = delete;
88};
89
90#endif
reads a dataset in Facet format
ostream * OutputStream
void WriteToStream(ostream *ost)
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
vtkSetFilePathMacro(FileName)
Specify file name of Facet datafile to read.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkFacetWriter() override
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
static vtkFacetWriter * New()
vtkGetFilePathMacro(FileName)
Specify file name of Facet datafile to read.
int WriteDataToStream(ostream *ost, vtkPolyData *data)
void Write()
Write data.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
@ data
Definition: vtkX3D.h:321