VTK
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 
32 class vtkPolyData;
33 
34 class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
35 {
36 public:
37  static vtkIVWriter *New();
38  vtkTypeMacro(vtkIVWriter,vtkWriter);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
48 
50 
53  vtkSetStringMacro(FileName);
54  vtkGetStringMacro(FileName);
56 
57 protected:
59  {
60  this->FileName = nullptr;
61  }
62 
63  ~vtkIVWriter() override
64  {
65  delete[] this->FileName;
66  }
67 
68  void WriteData() override;
69  void WritePolyData(vtkPolyData *polyData, FILE *fp);
70 
71  char *FileName;
72 
74 
75 private:
76  vtkIVWriter(const vtkIVWriter&) = delete;
77  void operator=(const vtkIVWriter&) = delete;
78 };
79 
80 #endif
81 
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:34
abstract class to write data to file(s)
Definition: vtkWriter.h:42
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
char * FileName
Definition: vtkIVWriter.h:71
static vtkAlgorithm * New()
virtual void WriteData()=0
~vtkIVWriter() override
Definition: vtkIVWriter.h:63