VTK  9.3.1
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 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
25 {
26 public:
27  static vtkOBJReader* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
35  vtkGetStringMacro(Comment);
36 
38 
43  vtkSetSmartPointerMacro(Stream, vtkResourceStream);
44  vtkGetSmartPointerMacro(Stream, vtkResourceStream);
46 
47 protected:
48  vtkOBJReader();
49  ~vtkOBJReader() override;
50 
52 
56  vtkSetStringMacro(Comment);
57 
58  char* Comment;
60 
61 private:
63 
64  vtkOBJReader(const vtkOBJReader&) = delete;
65  void operator=(const vtkOBJReader&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
Abstract class used for custom streams.
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSmartPointer< vtkResourceStream > Stream
Definition: vtkOBJReader.h:59
read Wavefront .obj files
Definition: vtkOBJReader.h:24
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that read models from a file.
a simple class to control print indentation
Definition: vtkIndent.h:28
char * Comment
Definition: vtkOBJReader.h:56
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.