VTK  9.4.20250130
vtkCompositeDataReader.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
16#ifndef vtkCompositeDataReader_h
17#define vtkCompositeDataReader_h
18
19#include "vtkDataReader.h"
20#include "vtkIOLegacyModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
31
32class VTKIOLEGACY_EXPORT vtkCompositeDataReader : public vtkDataReader
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
47
51 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
52
53protected:
56
57 vtkDataObject* CreateOutput(vtkDataObject* currentOutput) override;
58
60
65
68 VTK_DEPRECATED_IN_9_5_0("Please use `vtkOverlappingAMR` version instead.")
69 bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
70 bool ReadCompositeData(vtkOverlappingAMR*);
71 bool ReadCompositeData(vtkPartitionedDataSet*);
72 bool ReadCompositeData(vtkPartitionedDataSetCollection*);
73 bool ReadCompositeData(vtkNonOverlappingAMR*);
74 vtkDataObject* ReadChild();
75
76private:
78 void operator=(const vtkCompositeDataReader&) = delete;
79};
80
81VTK_ABI_NAMESPACE_END
82#endif
read vtkCompositeDataSet data file.
bool ReadCompositeData(vtkMultiBlockDataSet *)
vtkDataObject * CreateOutput(vtkDataObject *currentOutput) override
This can be overridden by a subclass to create an output that is determined by the file being read.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
bool ReadCompositeData(vtkMultiPieceDataSet *)
static vtkCompositeDataReader * New()
vtkCompositeDataSet * GetOutput()
Get the output of this reader.
int ReadMeshSimple(VTK_FILEPATH const std::string &fname, vtkDataObject *output) override
Actual reading happens here.
vtkCompositeDataSet * GetOutput(int idx)
Get the output of this reader.
int ReadOutputType()
Read the output type information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkCompositeDataReader() override
void SetOutput(vtkCompositeDataSet *output)
Get the output of this reader.
abstract superclass for composite (multi-block or AMR) datasets
general representation of visualization data
helper superclass for objects that read vtk data files
Backwards compatibility class.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
composite dataset to encapsulates pieces of dataset.
A concrete instance of vtkUniformGridAMR to store uniform grids at different levels of resolution tha...
hierarchical dataset of vtkUniformGrids
Composite dataset that groups datasets as a collection.
composite dataset to encapsulates a dataset consisting of partitions.
#define VTK_DEPRECATED_IN_9_5_0(reason)
#define VTK_FILEPATH