VTK  9.7.1
vtkLegacyCellGridReader.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
22 #ifndef vtkLegacyCellGridReader_h
23 #define vtkLegacyCellGridReader_h
24 
25 #include "vtkCellGridReader.h" // For ivar
26 #include "vtkDataReader.h"
27 #include "vtkIOLegacyModule.h" // For export macro
28 #include "vtkNew.h" // For ivar
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 
32 class VTKIOLEGACY_EXPORT vtkLegacyCellGridReader : public vtkDataReader
33 {
34 public:
35  static vtkLegacyCellGridReader* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkCellGrid* GetOutput();
44  vtkCellGrid* GetOutput(int idx);
45  void SetOutput(vtkCellGrid* output);
47 
51  int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
52 
53 protected:
55  ~vtkLegacyCellGridReader() override;
56 
57  int FillOutputPortInformation(int, vtkInformation*) override;
58 
60 
61 private:
63  void operator=(const vtkLegacyCellGridReader&) = delete;
64 };
65 
66 VTK_ABI_NAMESPACE_END
67 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
vtkNew< vtkCellGridReader > Subreader
read vtk unstructured grid data file
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()
Visualization data composed of cells of arbitrary type.
Definition: vtkCellGrid.h:48
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