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=========================================================================*/
29#ifndef vtkIVWriter_h
30#define vtkIVWriter_h
31
32#include "vtkIOGeometryModule.h" // For export macro
33#include "vtkWriter.h"
34
35class vtkPolyData;
36
37class VTKIOGEOMETRY_EXPORT vtkIVWriter : public vtkWriter
38{
39public:
40 static vtkIVWriter *New();
41 vtkTypeMacro(vtkIVWriter,vtkWriter);
42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43
45
51
53
56 vtkSetStringMacro(FileName);
59
60protected:
62 {
63 this->FileName = NULL;
64 }
65
67 {
68 delete[] this->FileName;
69 }
70
71 void WriteData();
72 void WritePolyData(vtkPolyData *polyData, FILE *fp);
73
74 char *FileName;
75
77
78private:
79 vtkIVWriter(const vtkIVWriter&) VTK_DELETE_FUNCTION;
80 void operator=(const vtkIVWriter&) VTK_DELETE_FUNCTION;
81};
82
83#endif
84
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:38
vtkPolyData * GetInput()
Get the input to this writer.
static vtkIVWriter * New()
void WritePolyData(vtkPolyData *polyData, FILE *fp)
char * FileName
Definition: vtkIVWriter.h:74
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetInput(int port)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
void WriteData()
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.