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 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
34 {
35 public:
36  static vtkOBJReader* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  vtkGetStringMacro(Comment);
45 
47 
55 
56 protected:
58  ~vtkOBJReader() override;
59 
61 
65  vtkSetStringMacro(Comment);
66 
67  char* Comment;
69 
70 private:
72 
73  vtkOBJReader(const vtkOBJReader&) = delete;
74  void operator=(const vtkOBJReader&) = delete;
75 };
76 
77 VTK_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
Definition: vtkOBJReader.h:34
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:68
~vtkOBJReader() override
char * Comment
Definition: vtkOBJReader.h:65
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.