VTK  9.3.1
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
20 #ifndef vtkOBJImporter_h
21 #define vtkOBJImporter_h
22 
23 #include "vtkIOImportModule.h" // For export macro
24 #include "vtkImporter.h"
25 #include "vtkSmartPointer.h" // for ivars
26 #include <string> // for string
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkRenderWindow;
30 class vtkRenderer;
31 class vtkPolydata;
33 
57 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
58 {
59 public:
60  static vtkOBJImporter* New();
61 
62  vtkTypeMacro(vtkOBJImporter, vtkImporter);
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
69  void SetFileName(VTK_FILEPATH const char* arg);
70  void SetFileNameMTL(VTK_FILEPATH const char* arg);
71  void SetTexturePath(VTK_FILEPATH const char* path);
72  VTK_FILEPATH const char* GetFileName() const;
73  VTK_FILEPATH const char* GetFileNameMTL() const;
74  VTK_FILEPATH const char* GetTexturePath() const;
76 
81 
85  std::string GetOutputDescription(int idx);
86 
87 protected:
89  ~vtkOBJImporter() override;
90 
91  int ImportBegin() override /*override*/;
92  void ImportEnd() override /*override*/;
93  void ReadData() override /* override */;
94 
96 
97 private:
98  vtkOBJImporter(const vtkOBJImporter&) = delete;
99  void operator=(const vtkOBJImporter&) = delete;
100 };
101 
102 VTK_ABI_NAMESPACE_END
103 #endif
std::string GetFileName(const std::string &fileName) noexcept
Set the appropriate file name based on recognized user input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
Definition: vtkRenderer.h:61
Hold a reference to a vtkObjectBase instance.
Definition: vtkMeta.h:23
importer abstract class
Definition: vtkImporter.h:48
virtual int ImportBegin()
Definition: vtkImporter.h:152
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual std::string GetOutputsDescription()
Recover a printable string that let importer implementation Describe their outputs.
Definition: vtkImporter.h:87
#define VTK_FILEPATH
create a window for renderers to draw into
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
import from .obj wavefront files