VTK  9.2.6
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 =========================================================================*/
68 #ifndef vtkOBJImporter_h
69 #define vtkOBJImporter_h
70 
71 #include "vtkIOImportModule.h" // For export macro
72 #include "vtkImporter.h"
73 #include "vtkSmartPointer.h" // for ivars
74 #include <string> // for string
75 
76 class vtkRenderWindow;
77 class vtkRenderer;
78 class vtkPolydata;
80 
104 class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
105 {
106 public:
107  static vtkOBJImporter* New();
108 
109  vtkTypeMacro(vtkOBJImporter, vtkImporter);
110  void PrintSelf(ostream& os, vtkIndent indent) override;
111 
113 
116  void SetFileName(VTK_FILEPATH const char* arg);
117  void SetFileNameMTL(VTK_FILEPATH const char* arg);
118  void SetTexturePath(VTK_FILEPATH const char* path);
119  VTK_FILEPATH const char* GetFileName() const;
120  VTK_FILEPATH const char* GetFileNameMTL() const;
121  VTK_FILEPATH const char* GetTexturePath() const;
123 
128 
133 
134 protected:
136  ~vtkOBJImporter() override;
137 
138  int ImportBegin() override /*override*/;
139  void ImportEnd() override /*override*/;
140  void ReadData() override /* override */;
141 
143 
144 private:
145  vtkOBJImporter(const vtkOBJImporter&) = delete;
146  void operator=(const vtkOBJImporter&) = delete;
147 };
148 
149 #endif
importer abstract class
Definition: vtkImporter.h:60
a simple class to control print indentation
Definition: vtkIndent.h:119
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.
VTK_FILEPATH const char * GetTexturePath() const
Specify the name of the file to read.
static vtkOBJImporter * New()
void SetTexturePath(VTK_FILEPATH const char *path)
Specify the name of the file to read.
int ImportBegin() override
void SetFileNameMTL(VTK_FILEPATH const char *arg)
Specify the name of the file to read.
~vtkOBJImporter() override
void SetFileName(VTK_FILEPATH const char *arg)
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileName() const
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileNameMTL() const
Specify the name of the file to read.
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:182
Hold a reference to a vtkObjectBase instance.
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH