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
16#ifndef vtkOBJReader_h
17#define vtkOBJReader_h
18
20#include "vtkIOGeometryModule.h" // For export macro
21#include "vtkResourceStream.h" // For vtkResourceStream
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
25{
26public:
27 static vtkOBJReader* New();
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
35 vtkGetStringMacro(Comment);
36
38
46
47protected:
49 ~vtkOBJReader() override;
50
52
56 vtkSetStringMacro(Comment);
57
58 char* Comment;
60
61private:
63
64 vtkOBJReader(const vtkOBJReader&) = delete;
65 void operator=(const vtkOBJReader&) = delete;
66};
67
68VTK_ABI_NAMESPACE_END
69#endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition vtkIndent.h:29
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.