VTK  9.3.0
vtkOBJReader.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
25#ifndef vtkOBJReader_h
26#define vtkOBJReader_h
27
29#include "vtkIOGeometryModule.h" // For export macro
30#include "vtkResourceStream.h" // For vtkResourceStream
31
32VTK_ABI_NAMESPACE_BEGIN
33class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
34{
35public:
36 static vtkOBJReader* New();
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44 vtkGetStringMacro(Comment);
45
47
55
56protected:
58 ~vtkOBJReader() override;
59
61
65 vtkSetStringMacro(Comment);
66
67 char* Comment;
69
70private:
72
73 vtkOBJReader(const vtkOBJReader&) = delete;
74 void operator=(const vtkOBJReader&) = delete;
75};
76
77VTK_ABI_NAMESPACE_END
78#endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read Wavefront .obj files
vtkSetSmartPointerMacro(Stream, vtkResourceStream)
Specify stream to read from When selecting input method, Stream has an higher priority than Filename.
vtkSmartPointer< vtkResourceStream > Stream
~vtkOBJReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetSmartPointerMacro(Stream, vtkResourceStream)
Specify stream to read from When selecting input method, Stream has an higher priority than Filename.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkOBJReader * New()
Abstract class used for custom streams.
Hold a reference to a vtkObjectBase instance.