VTK  9.1.0
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=========================================================================*/
32#ifndef vtkOBJImporter_h
33#define vtkOBJImporter_h
34
35#include "vtkIOImportModule.h" // For export macro
36#include "vtkImporter.h"
37#include "vtkSmartPointer.h" // for ivars
38#include <string> // for string
39
40class vtkRenderWindow;
41class vtkRenderer;
42class vtkPolydata;
44
68class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
69{
70public:
72
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
77
80 void SetFileName(VTK_FILEPATH const char* arg);
81 void SetFileNameMTL(VTK_FILEPATH const char* arg);
82 void SetTexturePath(VTK_FILEPATH const char* path);
83 VTK_FILEPATH const char* GetFileName() const;
84 VTK_FILEPATH const char* GetFileNameMTL() const;
85 VTK_FILEPATH const char* GetTexturePath() const;
87
92
97
98protected:
100 ~vtkOBJImporter() override;
101
102 int ImportBegin() override /*override*/;
103 void ImportEnd() override /*override*/;
104 void ReadData() override /* override */;
105
107
108private:
109 vtkOBJImporter(const vtkOBJImporter&) = delete;
110 void operator=(const vtkOBJImporter&) = delete;
111};
112
113#endif
importer abstract class
Definition: vtkImporter.h:60
a simple class to control print indentation
Definition: vtkIndent.h:43
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(VTK_FILEPATH const char *path)
Specify the name of the file to read.
VTK_FILEPATH const char * GetFileName() const
Specify the name of the file to read.
int ImportBegin() override
VTK_FILEPATH const char * GetTexturePath() const
Specify the name of the file to read.
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 * GetFileNameMTL() const
Specify the name of the file to read.
static vtkOBJImporter * New()
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:73
Hold a reference to a vtkObjectBase instance.
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH