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=========================================================================*/
32
33#ifndef vtkOBJWriter_h
34#define vtkOBJWriter_h
35
36#include "vtkIOGeometryModule.h" // For export macro
37#include "vtkWriter.h"
38
39class vtkDataSet;
40class vtkImageData;
41class vtkPolyData;
42
43class VTKIOGEOMETRY_EXPORT vtkOBJWriter : public vtkWriter
44{
45public:
46 static vtkOBJWriter* New();
47 vtkTypeMacro(vtkOBJWriter, vtkWriter);
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
56 vtkDataSet* GetInput(int port);
58
60
68
70
76
77protected:
79 ~vtkOBJWriter() override;
80
81 void WriteData() override;
82 int FillInputPortInformation(int port, vtkInformation* info) override;
83
84 char* FileName;
86
87private:
88 vtkOBJWriter(const vtkOBJWriter&) = delete;
89 void operator=(const vtkOBJWriter&) = delete;
90};
91
92#endif
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:40
Store vtkAlgorithm input/output information.
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 path to an existing texture file for the OBJ.
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
Definition vtkPolyData.h:91