VTK  9.3.0
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
29 #ifndef vtkOBJImporter_h
30 #define vtkOBJImporter_h
31 
32 #include "vtkIOImportModule.h" // For export macro
33 #include "vtkImporter.h"
34 #include "vtkSmartPointer.h" // for ivars
35 #include <string> // for string
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkRenderWindow;
39 class vtkRenderer;
40 class vtkPolydata;
42 
66 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
67 {
68 public:
69  static vtkOBJImporter* New();
70 
71  vtkTypeMacro(vtkOBJImporter, vtkImporter);
72  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
75 
78  void SetFileName(VTK_FILEPATH const char* arg);
79  void SetFileNameMTL(VTK_FILEPATH const char* arg);
80  void SetTexturePath(VTK_FILEPATH const char* path);
81  VTK_FILEPATH const char* GetFileName() const;
82  VTK_FILEPATH const char* GetFileNameMTL() const;
83  VTK_FILEPATH const char* GetTexturePath() const;
85 
90 
95 
96 protected:
98  ~vtkOBJImporter() override;
99 
100  int ImportBegin() override /*override*/;
101  void ImportEnd() override /*override*/;
102  void ReadData() override /* override */;
103 
105 
106 private:
107  vtkOBJImporter(const vtkOBJImporter&) = delete;
108  void operator=(const vtkOBJImporter&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif
importer abstract class
Definition: vtkImporter.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
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.
VTK_FILEPATH const char * GetTexturePath() const
Specify the name of the file to read.
static vtkOBJImporter * New()
void SetTexturePath(VTK_FILEPATH const char *path)
Specify the name of the file to read.
int ImportBegin() override
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 * GetFileName() const
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileNameMTL() const
Specify the name of the file to read.
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:71
Hold a reference to a vtkObjectBase instance.
@ string
Definition: vtkX3D.h:490
#define VTK_FILEPATH