VTK  9.4.20241212
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
27VTK_ABI_NAMESPACE_BEGIN
28class vtkDataSet;
29class vtkImageData;
30class vtkPolyData;
31
32class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
33{
34public:
35 static vtkOBJWriter* New();
36 vtkTypeMacro(vtkOBJWriter, vtkWriter);
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
45 vtkDataSet* GetInput(int port);
47
49
54 vtkSetFilePathMacro(TextureFileName);
55 vtkGetFilePathMacro(TextureFileName);
57
59
65
66protected:
68 ~vtkOBJWriter() override;
69
70 void WriteData() override;
71 int FillInputPortInformation(int port, vtkInformation* info) override;
72
73 char* FileName;
75
76private:
77 vtkOBJWriter(const vtkOBJWriter&) = delete;
78 void operator=(const vtkOBJWriter&) = delete;
79};
80
81VTK_ABI_NAMESPACE_END
82#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
write wavefront obj file
vtkGetFilePathMacro(TextureFileName)
Get/Set the path to an existing texture file for the OBJ.
vtkSetFilePathMacro(FileName)
Get/Set the file name of the OBJ file.
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
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkOBJWriter * New()
vtkGetFilePathMacro(FileName)
Get/Set the file name of the OBJ file.
void WriteData() override
char * TextureFileName
vtkDataSet * GetInput(int port)
Get the inputs to this writer.
vtkPolyData * GetInputGeometry()
Get the inputs to this writer.
~vtkOBJWriter() override
vtkImageData * GetInputTexture()
Get the inputs to this writer.
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract class to write data to file(s)
Definition vtkWriter.h:35