VTK  9.4.20241212
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
23VTK_ABI_NAMESPACE_BEGIN
24class vtkPolyData;
25
26class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
27{
28public:
29 static vtkIVWriter* New();
30 vtkTypeMacro(vtkIVWriter, vtkWriter);
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
40
42
48
49protected:
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
59 int FillInputPortInformation(int port, vtkInformation* info) override;
60
61private:
62 vtkIVWriter(const vtkIVWriter&) = delete;
63 void operator=(const vtkIVWriter&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
export polydata into OpenInventor 2.0 format.
Definition vtkIVWriter.h:27
vtkPolyData * GetInput()
Get the input to this writer.
static vtkIVWriter * New()
void WritePolyData(vtkPolyData *polyData, FILE *fp)
void WriteData() override
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.
vtkPolyData * GetInput(int port)
Get the input to this writer.
vtkSetFilePathMacro(FileName)
Specify file name of vtk polygon data file to write.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract class to write data to file(s)
Definition vtkWriter.h:35