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;
40 
41 class VTKIOLEGACY_EXPORT vtkCompositeDataReader : public vtkDataReader
42 {
43 public:
44  static vtkCompositeDataReader* New();
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
52  vtkCompositeDataSet *GetOutput();
53  vtkCompositeDataSet *GetOutput(int idx);
54  void SetOutput(vtkCompositeDataSet *output);
56 
57 protected:
59  ~vtkCompositeDataReader() VTK_OVERRIDE;
60 
61  int RequestData(vtkInformation *, vtkInformationVector **,
62  vtkInformationVector *) VTK_OVERRIDE;
63 
64  // Override ProcessRequest to handle request data object event
65  int ProcessRequest(vtkInformation *, vtkInformationVector **,
66  vtkInformationVector *) VTK_OVERRIDE;
67 
68  // Since the Outputs[0] has the same UpdateExtent format
69  // as the generic DataObject we can copy the UpdateExtent
70  // as a default behavior.
71  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
72  vtkInformationVector *) VTK_OVERRIDE;
73 
74  // Create output (a directed or undirected graph).
75  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
76  vtkInformationVector *);
77 
78  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
79 
83  int ReadOutputType();
84 
85  bool ReadCompositeData(vtkMultiPieceDataSet*);
86  bool ReadCompositeData(vtkMultiBlockDataSet*);
87  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
88  bool ReadCompositeData(vtkOverlappingAMR*);
89  bool ReadCompositeData(vtkNonOverlappingAMR*);
90  vtkDataObject* ReadChild();
91 
92 private:
93  vtkCompositeDataReader(const vtkCompositeDataReader&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkCompositeDataReader&) VTK_DELETE_FUNCTION;
95 
96 };
97 
98 #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:39
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:64