VTK  9.3.0
vtkIVWriter.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
17 #ifndef vtkIVWriter_h
18 #define vtkIVWriter_h
19 
20 #include "vtkIOGeometryModule.h" // For export macro
21 #include "vtkWriter.h"
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class vtkPolyData;
25 
26 class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
27 {
28 public:
29  static vtkIVWriter* New();
30  vtkTypeMacro(vtkIVWriter, vtkWriter);
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
40 
42 
48 
49 protected:
50  vtkIVWriter() { this->FileName = nullptr; }
51 
52  ~vtkIVWriter() override { delete[] this->FileName; }
53 
54  void WriteData() override;
55  void WritePolyData(vtkPolyData* polyData, FILE* fp);
56 
57  char* FileName;
58 
60 
61 private:
62  vtkIVWriter(const vtkIVWriter&) = delete;
63  void operator=(const vtkIVWriter&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:27
vtkPolyData * GetInput(int port)
Get the input to this writer.
static vtkIVWriter * New()
void WritePolyData(vtkPolyData *polyData, FILE *fp)
void WriteData() override
vtkPolyData * GetInput()
Get the input to this writer.
vtkGetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
~vtkIVWriter() override
Definition: vtkIVWriter.h:52
char * FileName
Definition: vtkIVWriter.h:57
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
abstract class to write data to file(s)
Definition: vtkWriter.h:35
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447