VTK  9.2.5
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 =========================================================================*/
29 #ifndef vtkIVWriter_h
30 #define vtkIVWriter_h
31 
32 #include "vtkIOGeometryModule.h" // For export macro
33 #include "vtkWriter.h"
34 
35 class vtkPolyData;
36 
37 class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
38 {
39 public:
40  static vtkIVWriter* New();
41  vtkTypeMacro(vtkIVWriter, vtkWriter);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
51 
53 
59 
60 protected:
61  vtkIVWriter() { this->FileName = nullptr; }
62 
63  ~vtkIVWriter() override { delete[] this->FileName; }
64 
65  void WriteData() override;
66  void WritePolyData(vtkPolyData* polyData, FILE* fp);
67 
68  char* FileName;
69 
71 
72 private:
73  vtkIVWriter(const vtkIVWriter&) = delete;
74  void operator=(const vtkIVWriter&) = delete;
75 };
76 
77 #endif
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:38
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:63
char * FileName
Definition: vtkIVWriter.h:68
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:119
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:200
abstract class to write data to file(s)
Definition: vtkWriter.h:46
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453