VTK  9.2.6
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 =========================================================================*/
33 #ifndef vtkOBJWriter_h
34 #define vtkOBJWriter_h
35 
36 #include "vtkIOGeometryModule.h" // For export macro
37 #include "vtkWriter.h"
38 
39 class vtkDataSet;
40 class vtkImageData;
41 class vtkPolyData;
42 
43 class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
44 {
45 public:
46  static vtkOBJWriter* New();
47  vtkTypeMacro(vtkOBJWriter, vtkWriter);
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkPolyData* GetInputGeometry();
55  vtkImageData* GetInputTexture();
56  vtkDataSet* GetInput(int port);
58 
60 
65  vtkSetFilePathMacro(TextureFileName);
66  vtkGetFilePathMacro(TextureFileName);
68 
70 
73  vtkSetFilePathMacro(FileName);
74  vtkGetFilePathMacro(FileName);
76 
77 protected:
78  vtkOBJWriter();
79  ~vtkOBJWriter() override;
80 
81  void WriteData() override;
83 
84  char* FileName;
86 
87 private:
88  vtkOBJWriter(const vtkOBJWriter&) = delete;
89  void operator=(const vtkOBJWriter&) = delete;
90 };
91 
92 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
char * FileName
Definition: vtkOBJWriter.h:84
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
abstract class to write data to file(s)
Definition: vtkWriter.h:45
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:39
vtkDataObject * GetInput()
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkAlgorithm * New()
virtual void WriteData()=0
char * TextureFileName
Definition: vtkOBJWriter.h:85
write wavefront obj file
Definition: vtkOBJWriter.h:43