VTK  9.3.20240712
vtkOBJImporter.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
59#ifndef vtkOBJImporter_h
60#define vtkOBJImporter_h
61
62#include "vtkIOImportModule.h" // For export macro
63#include "vtkImporter.h"
64#include "vtkSmartPointer.h" // for ivars
65#include <string> // for string
66
67VTK_ABI_NAMESPACE_BEGIN
68class vtkRenderWindow;
69class vtkRenderer;
70class vtkPolydata;
72
96class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
97{
98public:
100
102 void PrintSelf(ostream& os, vtkIndent indent) override;
103
105
108 void SetFileName(VTK_FILEPATH const char* arg);
109 void SetFileNameMTL(VTK_FILEPATH const char* arg);
110 void SetTexturePath(VTK_FILEPATH const char* path);
111 VTK_FILEPATH const char* GetFileName() const;
112 VTK_FILEPATH const char* GetFileNameMTL() const;
113 VTK_FILEPATH const char* GetTexturePath() const;
115
119 std::string GetOutputsDescription() override;
120
124 std::string GetOutputDescription(int idx);
125
126protected:
128 ~vtkOBJImporter() override;
129
130 int ImportBegin() override /*override*/;
131 void ImportEnd() override /*override*/;
132 void ReadData() override /* override */;
133
135
136private:
137 vtkOBJImporter(const vtkOBJImporter&) = delete;
138 void operator=(const vtkOBJImporter&) = delete;
139};
140
141VTK_ABI_NAMESPACE_END
142#endif
importer abstract class
Definition vtkImporter.h:52
a simple class to control print indentation
Definition vtkIndent.h:108
import from .obj wavefront files
std::string GetOutputDescription(int idx)
Get a string describing an output.
std::string GetOutputsDescription() override
Get a printable string describing all outputs.
void SetTexturePath(VTK_FILEPATH const char *path)
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileName() const
Specify the name of the file to read.
int ImportBegin() override
VTK_FILEPATH const char * GetTexturePath() const
Specify the name of the file to read.
void SetFileNameMTL(VTK_FILEPATH const char *arg)
Specify the name of the file to read.
~vtkOBJImporter() override
void SetFileName(VTK_FILEPATH const char *arg)
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileNameMTL() const
Specify the name of the file to read.
static vtkOBJImporter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create a window for renderers to draw into
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
#define VTK_FILEPATH