VTK  9.7.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
24 #ifndef vtkOBJReader_h
25 #define vtkOBJReader_h
26 
28 #include "vtkIOGeometryModule.h" // For export macro
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKIOGEOMETRY_EXPORT vtkOBJReader : public vtkAbstractPolyDataReader
32 {
33 public:
34  static vtkOBJReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
42  vtkGetStringMacro(Comment);
43 
44 protected:
45  vtkOBJReader();
46  ~vtkOBJReader() override;
47 
49 
53  vtkSetStringMacro(Comment);
54 
55  char* Comment;
56 
57 private:
59 
60  vtkOBJReader(const vtkOBJReader&) = delete;
61  void operator=(const vtkOBJReader&) = delete;
62 };
63 
64 VTK_ABI_NAMESPACE_END
65 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
read Wavefront .obj files
Definition: vtkOBJReader.h:31
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:53
VTKIOHDF_EXPORT bool Open(const char *fileName, hid_t &fileID)
Open a VTK HDF file and checks if it is valid.
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.