VTK  9.1.0
vtkIVWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkIVWriter.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=========================================================================*/
26#ifndef vtkIVWriter_h
27#define vtkIVWriter_h
28
29#include "vtkIOGeometryModule.h" // For export macro
30#include "vtkWriter.h"
31
32class vtkPolyData;
33
34class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
35{
36public:
37 static vtkIVWriter* New();
38 vtkTypeMacro(vtkIVWriter, vtkWriter);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
48
50
56
57protected:
58 vtkIVWriter() { this->FileName = nullptr; }
59
60 ~vtkIVWriter() override { delete[] this->FileName; }
61
62 void WriteData() override;
63 void WritePolyData(vtkPolyData* polyData, FILE* fp);
64
65 char* FileName;
66
68
69private:
70 vtkIVWriter(const vtkIVWriter&) = delete;
71 void operator=(const vtkIVWriter&) = delete;
72};
73
74#endif
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:35
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:60
char * FileName
Definition: vtkIVWriter.h:65
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:113
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453