VTK  9.0.3
vtkOBJWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOBJWriter.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 =========================================================================*/
27 #ifndef vtkOBJWriter_h
28 #define vtkOBJWriter_h
29 
30 #include "vtkIOGeometryModule.h" // For export macro
31 #include "vtkWriter.h"
32 
33 class vtkDataSet;
34 class vtkImageData;
35 class vtkPolyData;
36 
37 class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
38 {
39 public:
40  static vtkOBJWriter* New();
41  vtkTypeMacro(vtkOBJWriter, vtkWriter);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
52 
54 
57  vtkSetStringMacro(FileName);
58  vtkGetStringMacro(FileName);
60 
61 protected:
63  ~vtkOBJWriter() override;
64 
65  void WriteData() override;
67 
68  char* FileName;
69 
70 private:
71  vtkOBJWriter(const vtkOBJWriter&) = delete;
72  void operator=(const vtkOBJWriter&) = delete;
73 };
74 
75 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
write wavefront obj file
Definition: vtkOBJWriter.h:38
static vtkOBJWriter * New()
vtkImageData * GetInputTexture()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * FileName
Definition: vtkOBJWriter.h:68
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void WriteData() override
vtkDataSet * GetInput(int port)
vtkPolyData * GetInputGeometry()
Get the inputs to this writer.
~vtkOBJWriter() override
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
abstract class to write data to file(s)
Definition: vtkWriter.h:43
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453