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 =========================================================================*/
28 #ifndef vtkIVWriter_h
29 #define vtkIVWriter_h
30 
31 #include "vtkIOGeometryModule.h" // For export macro
32 #include "vtkWriter.h"
33 
34 class vtkPolyData;
35 
37 {
38 public:
39  static vtkIVWriter *New();
40  vtkTypeMacro(vtkIVWriter,vtkWriter);
41  virtual void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
48 
50 
51  vtkSetStringMacro(FileName);
52  vtkGetStringMacro(FileName);
54 
55 protected:
57  {
58  this->FileName = NULL;
59  }
60 
62  {
63  delete[] this->FileName;
64  }
65 
66  void WriteData();
67  void WritePolyData(vtkPolyData *polyData, FILE *fp);
68 
69  char *FileName;
70 
72 
73 private:
74  vtkIVWriter(const vtkIVWriter&); // Not implemented.
75  void operator=(const vtkIVWriter&); // Not implemented.
76 };
77 
78 #endif
79 
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
export polydata into OpenInventor 2.0 format.
Definition: vtkIVWriter.h:36
#define VTKIOGEOMETRY_EXPORT
abstract class to write data to file(s)
Definition: vtkWriter.h:44
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkDataObject * GetInput()
virtual int FillInputPortInformation(int port, vtkInformation *info)
char * FileName
Definition: vtkIVWriter.h:69
static vtkAlgorithm * New()
virtual void WriteData()=0
void PrintSelf(ostream &os, vtkIndent indent)