VTK
vtkCompositeDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeDataReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkCompositeDataReader_h
29 #define vtkCompositeDataReader_h
30 
31 #include "vtkIOLegacyModule.h" // For export macro
32 #include "vtkDataReader.h"
33 
39 class vtkOverlappingAMR;
42 
43 class VTKIOLEGACY_EXPORT vtkCompositeDataReader : public vtkDataReader
44 {
45 public:
46  static vtkCompositeDataReader* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkCompositeDataSet *GetOutput();
55  vtkCompositeDataSet *GetOutput(int idx);
56  void SetOutput(vtkCompositeDataSet *output);
58 
62  int ReadMeshSimple(const std::string& fname,
63  vtkDataObject* output) override;
64 
65 protected:
67  ~vtkCompositeDataReader() override;
68 
69  vtkDataObject* CreateOutput(vtkDataObject* currentOutput) override;
70 
71  int FillOutputPortInformation(int, vtkInformation*) override;
72 
76  int ReadOutputType();
77 
78  bool ReadCompositeData(vtkMultiPieceDataSet*);
79  bool ReadCompositeData(vtkMultiBlockDataSet*);
80  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
81  bool ReadCompositeData(vtkOverlappingAMR*);
82  bool ReadCompositeData(vtkPartitionedDataSet*);
83  bool ReadCompositeData(vtkPartitionedDataSetCollection*);
84  bool ReadCompositeData(vtkNonOverlappingAMR*);
85  vtkDataObject* ReadChild();
86 
87 private:
89  void operator=(const vtkCompositeDataReader&) = delete;
90 
91 };
92 
93 #endif
composite dataset to encapsulates a dataset consisting of partitions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
virtual vtkDataObject * CreateOutput(vtkDataObject *currentOutput)
This can be overridden by a subclass to create an output that is determined by the file being read...
Backwards compatibility class.
read vtkCompositeDataSet 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()
A concrete instance of vtkUniformGridAMR to store uniform grids at different levels of resolution tha...
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:49
abstract superclass for composite (multi-block or AMR) datasets
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:39
composite dataset to encapsulates pieces of dataset.
Composite dataset that organizes datasets into blocks.
hierarchical dataset of vtkUniformGrids
general representation of visualization data
Definition: vtkDataObject.h:64
Composite dataset that groups datasets as a collection.