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);
47 
49 
52  vtkCompositeDataSet *GetOutput();
53  vtkCompositeDataSet *GetOutput(int idx);
54  void SetOutput(vtkCompositeDataSet *output);
56 
57 protected:
60 
63 
64  // Override ProcessRequest to handle request data object event
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.
73 
74  // Create output (a directed or undirected graph).
75  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
77 
78  virtual int FillOutputPortInformation(int, vtkInformation*);
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
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
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