VTK  9.4.20250208
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
125#ifndef vtkOBJReader_h
126#define vtkOBJReader_h
127
129#include "vtkIOGeometryModule.h" // For export macro
130#include "vtkResourceStream.h" // For vtkResourceStream
131
132VTK_ABI_NAMESPACE_BEGIN
133class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
134{
135public:
136 static vtkOBJReader* New();
138 void PrintSelf(ostream& os, vtkIndent indent) override;
139
144 vtkGetStringMacro(Comment);
145
147
152 vtkSetSmartPointerMacro(Stream, vtkResourceStream);
153 vtkGetSmartPointerMacro(Stream, vtkResourceStream);
155
156protected:
158 ~vtkOBJReader() override;
159
161
165 vtkSetStringMacro(Comment);
166
167 char* Comment;
169
170private:
172
173 vtkOBJReader(const vtkOBJReader&) = delete;
174 void operator=(const vtkOBJReader&) = delete;
175};
176
177VTK_ABI_NAMESPACE_END
178#endif
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read Wavefront .obj files
vtkSmartPointer< vtkResourceStream > Stream
~vtkOBJReader() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.