VTK  9.6.1
vtkOBJImporter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
23
24#ifndef vtkOBJImporter_h
25#define vtkOBJImporter_h
26
27#include "vtkIOImportModule.h" // For export macro
28#include "vtkImporter.h"
29#include "vtkSmartPointer.h" // for ivars
30#include <string> // for string
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkRenderWindow;
34class vtkRenderer;
35class vtkPolydata;
37
61class VTKIOIMPORT_EXPORT vtkOBJImporter : public vtkImporter
62{
63public:
65
67 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70
79 void SetFileNameMTL(VTK_FILEPATH const char* arg);
80 VTK_FILEPATH const char* GetFileNameMTL() const;
82
84
91 void SetTextureStreams(std::map<std::string, vtkResourceStream*> streamMap);
92 void SetTexturePath(VTK_FILEPATH const char* path);
93 VTK_FILEPATH const char* GetTexturePath() const;
95
99 std::string GetOutputsDescription() override;
100
104 std::string GetOutputDescription(int idx);
105
106protected:
108 ~vtkOBJImporter() override;
109
110 int ImportBegin() override /*override*/;
111 void ImportEnd() override /*override*/;
112 void ReadData() override /* override */;
113
114private:
115 vtkOBJImporter(const vtkOBJImporter&) = delete;
116 void operator=(const vtkOBJImporter&) = delete;
117
119};
120
121VTK_ABI_NAMESPACE_END
122#endif
a simple class to control print indentation
Definition vtkIndent.h:29
void ReadData() override
std::string GetOutputDescription(int idx)
Get a string describing an output.
std::string GetOutputsDescription() override
Get a printable string describing all outputs.
const char * GetFileNameMTL() const
Specify the name of the file or the stream to read as MTL file.
void SetTexturePath(const char *path)
Set TexturePath or TextureStreams.
void ImportEnd() override
const char * GetTexturePath() const
Set TexturePath or TextureStreams.
void SetFileNameMTL(const char *arg)
Specify the name of the file or the stream to read as MTL file.
int ImportBegin() override
~vtkOBJImporter() override
void SetMTLStream(vtkResourceStream *stream)
Specify the name of the file or the stream to read as MTL file.
static vtkOBJImporter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetTextureStreams(std::map< std::string, vtkResourceStream * > streamMap)
Set TexturePath or TextureStreams.
create a window for renderers to draw into
abstract specification for renderers
Definition vtkRenderer.h:64
Abstract class used for custom streams.
Hold a reference to a vtkObjectBase instance.
#define VTK_FILEPATH