VTK  9.4.20241202
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
63#ifndef vtkOBJImporter_h
64#define vtkOBJImporter_h
65
66#include "vtkIOImportModule.h" // For export macro
67#include "vtkImporter.h"
68#include "vtkSmartPointer.h" // for ivars
69#include <string> // for string
70
71VTK_ABI_NAMESPACE_BEGIN
72class vtkRenderWindow;
73class vtkRenderer;
74class vtkPolydata;
76
100class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
101{
102public:
104
106 void PrintSelf(ostream& os, vtkIndent indent) override;
107
109
112 void SetFileName(VTK_FILEPATH const char* arg);
113 void SetFileNameMTL(VTK_FILEPATH const char* arg);
114 void SetTexturePath(VTK_FILEPATH const char* path);
115 VTK_FILEPATH const char* GetFileName() const;
116 VTK_FILEPATH const char* GetFileNameMTL() const;
117 VTK_FILEPATH const char* GetTexturePath() const;
119
123 std::string GetOutputsDescription() override;
124
128 std::string GetOutputDescription(int idx);
129
130protected:
132 ~vtkOBJImporter() override;
133
134 int ImportBegin() override /*override*/;
135 void ImportEnd() override /*override*/;
136 void ReadData() override /* override */;
137
139
140private:
141 vtkOBJImporter(const vtkOBJImporter&) = delete;
142 void operator=(const vtkOBJImporter&) = delete;
143};
144
145VTK_ABI_NAMESPACE_END
146#endif
importer abstract class
Definition vtkImporter.h:55
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