VTK  9.4.20250328
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
30VTK_ABI_NAMESPACE_BEGIN
31
32class VTKIOLEGACY_EXPORT vtkLegacyCellGridReader : public vtkDataReader
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
45 void SetOutput(vtkCellGrid* output);
47
51 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
52
53protected:
56
58
60
61private:
63 void operator=(const vtkLegacyCellGridReader&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:49
general representation of visualization data
helper superclass for objects that read vtk data files
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
read vtk unstructured grid data file
vtkCellGrid * GetOutput()
Get the output of this reader.
int ReadMeshSimple(VTK_FILEPATH const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellGrid * GetOutput(int idx)
Get the output of this reader.
static vtkLegacyCellGridReader * New()
~vtkLegacyCellGridReader() override
void SetOutput(vtkCellGrid *output)
Get the output of this reader.
vtkNew< vtkCellGridReader > Subreader
Allocate and hold a VTK object.
Definition vtkNew.h:167
#define VTK_FILEPATH