VTK
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);
53
55
58 vtkSetStringMacro(FileName);
61
65 void Write();
66
67 void WriteToStream(ostream* ost);
68
69protected:
72
73 // This is called by the superclass.
74 // This is the method you should override.
75 virtual int RequestData(vtkInformation *request,
76 vtkInformationVector** inputVector,
77 vtkInformationVector* outputVector);
78
80
81 int WriteDataToStream(ostream* ost, vtkPolyData* data);
82
83 char *FileName;
84 ostream *OutputStream;
85
86private:
87 vtkFacetWriter(const vtkFacetWriter&) VTK_DELETE_FUNCTION;
88 void operator=(const vtkFacetWriter&) VTK_DELETE_FUNCTION;
89};
90
91#endif
92
reads a dataset in Facet format
ostream * OutputStream
void WriteToStream(ostream *ost)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkFacetWriter * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
int WriteDataToStream(ostream *ost, vtkPolyData *data)
void Write()
Write data.
a simple class to control print indentation
Definition: vtkIndent.h:40
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:86
@ data
Definition: vtkX3D.h:315
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.