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 =========================================================================*/
29 #ifndef vtkOBJImporter_h
30 #define vtkOBJImporter_h
31 
32 #include "vtkIOImportModule.h" // For export macro
33 #include <string> // for string
34 #include "vtkSmartPointer.h" // for ivars
35 #include "vtkImporter.h"
36 
37 class vtkRenderWindow;
38 class vtkRenderer;
39 class vtkPolydata;
41 
65 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
66 {
67 public:
68  static vtkOBJImporter *New();
69 
70  vtkTypeMacro(vtkOBJImporter,vtkImporter);
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72 
74 
77  void SetFileName(const char* arg);
78  void SetFileNameMTL(const char* arg);
79  void SetTexturePath(const char* path);
80  const char* GetFileName() const;
81  const char* GetFileNameMTL() const;
82  const char* GetTexturePath() const;
84 
89 
90 protected:
92  ~vtkOBJImporter() override;
93 
94  int ImportBegin() override /*override*/;
95  void ImportEnd () override /*override*/;
96  void ReadData() override /* override */;
97 
99 
100 private:
101  vtkOBJImporter(const vtkOBJImporter&) = delete;
102  void operator=(const vtkOBJImporter&) = delete;
103 };
104 
105 
106 
107 #endif
108 // VTK-HeaderTest-Exclude: vtkOBJImporter.h
vtkImporter
importer abstract class
Definition: vtkImporter.h:55
vtkImporter.h
vtkOBJImporter::ImportBegin
int ImportBegin() override
vtkOBJImporter::New
static vtkOBJImporter * New()
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:37
vtkOBJPolyDataProcessor
Definition: vtkOBJImporterInternals.h:51
vtkOBJImporter::vtkOBJImporter
vtkOBJImporter()
vtkOBJImporter::GetOutputDescription
std::string GetOutputDescription(int idx)
Get a string describing an output.
vtkOBJImporter
import from .obj wavefront files
Definition: vtkOBJImporter.h:66
vtkOBJImporter::GetFileName
const char * GetFileName() const
vtkOBJImporter::~vtkOBJImporter
~vtkOBJImporter() override
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkOBJImporter::GetFileNameMTL
const char * GetFileNameMTL() const
vtkOBJImporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer.h
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:88
vtkOBJImporter::SetFileName
void SetFileName(const char *arg)
Specify the name of the file to read.
vtkOBJImporter::SetTexturePath
void SetTexturePath(const char *path)
vtkOBJImporter::GetTexturePath
const char * GetTexturePath() const
vtkOBJImporter::SetFileNameMTL
void SetFileNameMTL(const char *arg)