VTK  9.3.20240418
vtkOBJWriter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkOBJWriter_h
22 #define vtkOBJWriter_h
23 
24 #include "vtkIOGeometryModule.h" // For export macro
25 #include "vtkWriter.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkDataSet;
29 class vtkImageData;
30 class vtkPolyData;
31 
32 class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
33 {
34 public:
35  static vtkOBJWriter* New();
36  vtkTypeMacro(vtkOBJWriter, vtkWriter);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
47 
49 
54  vtkSetFilePathMacro(TextureFileName);
55  vtkGetFilePathMacro(TextureFileName);
57 
59 
65 
66 protected:
68  ~vtkOBJWriter() override;
69 
70  void WriteData() override;
72 
73  char* FileName;
75 
76 private:
77  vtkOBJWriter(const vtkOBJWriter&) = delete;
78  void operator=(const vtkOBJWriter&) = delete;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
write wavefront obj file
Definition: vtkOBJWriter.h:33
vtkGetFilePathMacro(TextureFileName)
Get/Set the path to an existing texture file for the OBJ.
static vtkOBJWriter * New()
vtkSetFilePathMacro(FileName)
Get/Set the file name of the OBJ file.
vtkImageData * GetInputTexture()
Get the inputs to this writer.
vtkSetFilePathMacro(TextureFileName)
Get/Set the path to an existing texture file for the OBJ.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * FileName
Definition: vtkOBJWriter.h:73
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkGetFilePathMacro(FileName)
Get/Set the file name of the OBJ file.
void WriteData() override
char * TextureFileName
Definition: vtkOBJWriter.h:74
vtkDataSet * GetInput(int port)
Get the inputs to this writer.
vtkPolyData * GetInputGeometry()
Get the inputs to this writer.
~vtkOBJWriter() override
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:181
abstract class to write data to file(s)
Definition: vtkWriter.h:35
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447