VTK  9.5.20250708
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
118 void SetFileName(VTK_FILEPATH const char* arg);
119 void SetFileNameMTL(VTK_FILEPATH const char* arg);
120 void SetTexturePath(VTK_FILEPATH const char* path);
121 VTK_FILEPATH const char* GetFileName() const;
122 VTK_FILEPATH const char* GetFileNameMTL() const;
123 VTK_FILEPATH const char* GetTexturePath() const;
125
129 std::string GetOutputsDescription() override;
130
134 std::string GetOutputDescription(int idx);
135
136protected:
138 ~vtkOBJImporter() override;
139
140 int ImportBegin() override /*override*/;
141 void ImportEnd() override /*override*/;
142 void ReadData() override /* override */;
143
145
146private:
147 vtkOBJImporter(const vtkOBJImporter&) = delete;
148 void operator=(const vtkOBJImporter&) = delete;
149};
150
151VTK_ABI_NAMESPACE_END
152#endif
importer abstract class
Definition vtkImporter.h:59
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.
const char * GetFileNameMTL() const
Specify the name of the file to read.
const char * GetFileName() const
Specify the name of the file to read.
void SetTexturePath(const char *path)
Specify the name of the file to read.
const char * GetTexturePath() const
Specify the name of the file to read.
void SetFileName(const char *arg)
Specify the name of the file to read.
void SetFileNameMTL(const char *arg)
Specify the name of the file to read.
int ImportBegin() override
~vtkOBJImporter() override
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