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 =========================================================================*/
25 #ifndef vtkOBJImporter_h
26 #define vtkOBJImporter_h
27 
28 #include "vtkIOImportModule.h" // For export macro
29 #include "vtkSmartPointer.h"
30 #include "vtkImporter.h"
31 
32 class vtkRenderWindow;
33 class vtkRenderer;
34 class vtkPolydata;
36 
61 {
62 public:
63  static vtkOBJImporter *New();
64 
65  vtkTypeMacro(vtkOBJImporter,vtkImporter);
66  void PrintSelf(ostream& os, vtkIndent indent);
67 
69 
70  void SetFileName(const char* arg);
71  void SetFileNameMTL(const char* arg);
72  void SetTexturePath(const char* path);
73  const char* GetFileName() const;
74  const char* GetFileNameMTL() const;
75  const char* GetTexturePath() const;
77 
78 protected:
80  ~vtkOBJImporter();
81 
82  virtual int ImportBegin() /*override*/;
83  virtual void ImportEnd () /*override*/;
84  virtual void ReadData() /* override */;
85 
87 
88 private:
89  vtkOBJImporter(const vtkOBJImporter&); // Not implemented.
90  void operator=(const vtkOBJImporter&); // Not implemented.
91 };
92 
93 
94 
95 #endif
96 // VTK-HeaderTest-Exclude: vtkOBJImporter.h
virtual void ReadData()
abstract specification for renderers
Definition: vtkRenderer.h:63
importer abstract class
Definition: vtkImporter.h:53
virtual void ImportEnd()
Definition: vtkImporter.h:91
virtual int ImportBegin()
Definition: vtkImporter.h:90
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkOBJPolyDataProcessor > Impl
create a window for renderers to draw into
#define VTKIOIMPORT_EXPORT
static vtkObject * New()
import from .obj wavefront files