VTK  9.4.20251007
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
23
24#ifndef vtkOBJImporter_h
25#define vtkOBJImporter_h
26
27#include "vtkIOImportModule.h" // For export macro
28#include "vtkImporter.h"
29#include "vtkSmartPointer.h" // for ivars
30#include <string> // for string
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkRenderWindow;
34class vtkRenderer;
35class vtkPolydata;
37
61class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
62{
63public:
65
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
73 void SetFileName(VTK_FILEPATH const char* arg);
74 void SetFileNameMTL(VTK_FILEPATH const char* arg);
75 void SetTexturePath(VTK_FILEPATH const char* path);
76 VTK_FILEPATH const char* GetFileName() const;
77 VTK_FILEPATH const char* GetFileNameMTL() const;
78 VTK_FILEPATH const char* GetTexturePath() const;
80
84 std::string GetOutputsDescription() override;
85
89 std::string GetOutputDescription(int idx);
90
91protected:
93 ~vtkOBJImporter() override;
94
95 int ImportBegin() override /*override*/;
96 void ImportEnd() override /*override*/;
97 void ReadData() override /* override */;
98
100
101private:
102 vtkOBJImporter(const vtkOBJImporter&) = delete;
103 void operator=(const vtkOBJImporter&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
a simple class to control print indentation
Definition vtkIndent.h:29
void ReadData() override
std::string GetOutputDescription(int idx)
Get a string describing an output.
vtkSmartPointer< vtkOBJPolyDataProcessor > Impl
std::string GetOutputsDescription() override
Get a printable string describing all outputs.
void ImportEnd() override
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
Definition vtkRenderer.h:63
Hold a reference to a vtkObjectBase instance.
#define VTK_FILEPATH