VTK  9.5.2
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
79 void SetFileName(VTK_FILEPATH const char* arg);
80 void SetFileNameMTL(VTK_FILEPATH const char* arg);
81 void SetTexturePath(VTK_FILEPATH const char* path);
82 VTK_FILEPATH const char* GetFileName() const;
83 VTK_FILEPATH const char* GetFileNameMTL() const;
84 VTK_FILEPATH const char* GetTexturePath() const;
86
90 std::string GetOutputsDescription() override;
91
95 std::string GetOutputDescription(int idx);
96
97protected:
99 ~vtkOBJImporter() override;
100
101 int ImportBegin() override /*override*/;
102 void ImportEnd() override /*override*/;
103 void ReadData() override /* override */;
104
106
107private:
108 vtkOBJImporter(const vtkOBJImporter&) = delete;
109 void operator=(const vtkOBJImporter&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#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:60
Hold a reference to a vtkObjectBase instance.
#define VTK_FILEPATH