VTK  9.7.1
vtkPolyDataReader.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 vtkPolyDataReader_h
26 #define vtkPolyDataReader_h
27 
28 #include "vtkDataReader.h"
29 #include "vtkIOLegacyModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkPolyData;
33 
34 class VTKIOLEGACY_EXPORT vtkPolyDataReader : public vtkDataReader
35 {
36 public:
37  static vtkPolyDataReader* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  vtkPolyData* GetOutput();
46  vtkPolyData* GetOutput(int idx);
47  void SetOutput(vtkPolyData* output);
49 
53  int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
54 
55 protected:
57  ~vtkPolyDataReader() override;
58 
59  int FillOutputPortInformation(int, vtkInformation*) override;
60 
61 private:
62  vtkPolyDataReader(const vtkPolyDataReader&) = delete;
63  void operator=(const vtkPolyDataReader&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
read vtk polygonal data file
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
int ReadMeshSimple(const std::string &, vtkDataObject *) override
Overridden with default implementation of doing nothing so that subclasses only override what is need...
static vtkDataReader * New()
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:52
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_FILEPATH
general representation of visualization data
Definition: vtkDataObject.h:55