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 =========================================================================*/
25 #ifndef vtkCompositeDataReader_h
26 #define vtkCompositeDataReader_h
27 
28 #include "vtkIOLegacyModule.h" // For export macro
29 #include "vtkDataReader.h"
30 
36 class vtkOverlappingAMR;
37 
38 class VTKIOLEGACY_EXPORT vtkCompositeDataReader : public vtkDataReader
39 {
40 public:
41  static vtkCompositeDataReader* New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
46 
49  vtkCompositeDataSet *GetOutput();
50  vtkCompositeDataSet *GetOutput(int idx);
51  void SetOutput(vtkCompositeDataSet *output);
53 
54 protected:
56  ~vtkCompositeDataReader() VTK_OVERRIDE;
57 
58  int RequestData(vtkInformation *, vtkInformationVector **,
59  vtkInformationVector *) VTK_OVERRIDE;
60 
61  // Override ProcessRequest to handle request data object event
62  int ProcessRequest(vtkInformation *, vtkInformationVector **,
63  vtkInformationVector *) VTK_OVERRIDE;
64 
65  // Since the Outputs[0] has the same UpdateExtent format
66  // as the generic DataObject we can copy the UpdateExtent
67  // as a default behavior.
68  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
69  vtkInformationVector *) VTK_OVERRIDE;
70 
71  // Create output (a directed or undirected graph).
72  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
73  vtkInformationVector *);
74 
75  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
76 
80  int ReadOutputType();
81 
82  bool ReadCompositeData(vtkMultiPieceDataSet*);
83  bool ReadCompositeData(vtkMultiBlockDataSet*);
84  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
85  bool ReadCompositeData(vtkOverlappingAMR*);
86  bool ReadCompositeData(vtkNonOverlappingAMR*);
87  vtkDataObject* ReadChild();
88 
89 private:
90  vtkCompositeDataReader(const vtkCompositeDataReader&) VTK_DELETE_FUNCTION;
91  void operator=(const vtkCompositeDataReader&) VTK_DELETE_FUNCTION;
92 
93 };
94 
95 #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.
Backwards compatibility class.
read vtkCompositeDataSet data file.
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
a simple class to control print indentation
Definition: vtkIndent.h:33
composite dataset to encapsulates pieces of dataset.
Composite dataset that organizes datasets into blocks.
hierarchical dataset of vtkUniformGrids
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:58