VTK  9.0.1
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 =========================================================================*/
23 #ifndef vtkOBJImporter_h
24 #define vtkOBJImporter_h
25 
26 #include "vtkIOImportModule.h" // For export macro
27 #include "vtkImporter.h"
28 #include "vtkSmartPointer.h" // for ivars
29 #include <string> // for string
30 
31 class vtkRenderWindow;
32 class vtkRenderer;
33 class vtkPolydata;
35 
59 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
60 {
61 public:
62  static vtkOBJImporter* New();
63 
64  vtkTypeMacro(vtkOBJImporter, vtkImporter);
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
68 
71  void SetFileName(const char* arg);
72  void SetFileNameMTL(const char* arg);
73  void SetTexturePath(const char* path);
74  const char* GetFileName() const;
75  const char* GetFileNameMTL() const;
76  const char* GetTexturePath() const;
78 
83 
88 
89 protected:
91  ~vtkOBJImporter() override;
92 
93  int ImportBegin() override /*override*/;
94  void ImportEnd() override /*override*/;
95  void ReadData() override /* override */;
96 
98 
99 private:
100  vtkOBJImporter(const vtkOBJImporter&) = delete;
101  void operator=(const vtkOBJImporter&) = delete;
102 };
103 
104 #endif
105 // VTK-HeaderTest-Exclude: vtkOBJImporter.h
importer abstract class
Definition: vtkImporter.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
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.
void SetTexturePath(const char *path)
static vtkOBJImporter * New()
void SetFileName(const char *arg)
Specify the name of the file to read.
const char * GetFileNameMTL() const
void SetFileNameMTL(const char *arg)
int ImportBegin() override
~vtkOBJImporter() override
const char * GetTexturePath() const
const char * GetFileName() const
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:59
Hold a reference to a vtkObjectBase instance.
@ string
Definition: vtkX3D.h:496