VTK  9.3.20240419
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 
132 VTK_ABI_NAMESPACE_BEGIN
133 class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
134 {
135 public:
136  static vtkOBJReader* New();
138  void PrintSelf(ostream& os, vtkIndent indent) override;
139 
144  vtkGetStringMacro(Comment);
145 
147 
155 
156 protected:
158  ~vtkOBJReader() override;
159 
161 
165  vtkSetStringMacro(Comment);
166 
167  char* Comment;
169 
170 private:
172 
173  vtkOBJReader(const vtkOBJReader&) = delete;
174  void operator=(const vtkOBJReader&) = delete;
175 };
176 
177 VTK_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
Definition: vtkOBJReader.h:134
vtkSetSmartPointerMacro(Stream, vtkResourceStream)
Specify stream to read from When selecting input method, Stream has an higher priority than Filename.
vtkSmartPointer< vtkResourceStream > Stream
Definition: vtkOBJReader.h:168
~vtkOBJReader() override
char * Comment
Definition: vtkOBJReader.h:165
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.