VTK
vtkOBJImporter.h
Go to the documentation of this file.
1 /*=========================================================================
2  Program: Visualization Toolkit
3  Module: vtkOBJImporter.h
4  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
5  All rights reserved.
6  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
7 
8  This software is distributed WITHOUT ANY WARRANTY; without even
9  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  PURPOSE. See the above copyright notice for more information.
11 =========================================================================*/
26 #ifndef vtkOBJImporter_h
27 #define vtkOBJImporter_h
28 
29 #include "vtkIOImportModule.h" // For export macro
30 #include <string> // for string
31 #include "vtkSmartPointer.h" // for ivars
32 #include "vtkImporter.h"
33 
34 class vtkRenderWindow;
35 class vtkRenderer;
36 class vtkPolydata;
38 
62 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
63 {
64 public:
65  static vtkOBJImporter *New();
66 
67  vtkTypeMacro(vtkOBJImporter,vtkImporter);
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
74  void SetFileName(const char* arg);
75  void SetFileNameMTL(const char* arg);
76  void SetTexturePath(const char* path);
77  const char* GetFileName() const;
78  const char* GetFileNameMTL() const;
79  const char* GetTexturePath() const;
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 
103 
104 #endif
105 // VTK-HeaderTest-Exclude: vtkOBJImporter.h
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:63
Hold a reference to a vtkObjectBase instance.
importer abstract class
Definition: vtkImporter.h:54
virtual int ImportBegin()
Definition: vtkImporter.h:96
a simple class to control print indentation
Definition: vtkIndent.h:39
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