VTK
vtkCompositeDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile$
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 =========================================================================*/
27 #ifndef vtkCompositeDataReader_h
28 #define vtkCompositeDataReader_h
29 
30 #include "vtkIOLegacyModule.h" // For export macro
31 #include "vtkDataReader.h"
32 
38 class vtkOverlappingAMR;
39 
41 {
42 public:
43  static vtkCompositeDataReader* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkCompositeDataSet *GetOutput();
50  vtkCompositeDataSet *GetOutput(int idx);
51  void SetOutput(vtkCompositeDataSet *output);
53 
54 //BTX
55 protected:
58 
61 
62  // Override ProcessRequest to handle request data object event
65 
66  // Since the Outputs[0] has the same UpdateExtent format
67  // as the generic DataObject we can copy the UpdateExtent
68  // as a default behavior.
71 
72  // Create output (a directed or undirected graph).
73  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
75 
76  virtual int FillOutputPortInformation(int, vtkInformation*);
77 
79  int ReadOutputType();
80 
81  bool ReadCompositeData(vtkMultiPieceDataSet*);
82  bool ReadCompositeData(vtkMultiBlockDataSet*);
83  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
84  bool ReadCompositeData(vtkOverlappingAMR*);
85  bool ReadCompositeData(vtkNonOverlappingAMR*);
86  vtkDataObject* ReadChild();
87 
88 private:
89  vtkCompositeDataReader(const vtkCompositeDataReader&); // Not implemented.
90  void operator=(const vtkCompositeDataReader&); // Not implemented.
91 //ETX
92 };
93 
94 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Backwards compatibility class.
read vtkCompositeDataSet data file.
#define VTKIOLEGACY_EXPORT
static vtkDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent)
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:48
abstract superclass for composite (multi-block or AMR) datasets
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
composite dataset to encapsulates pieces of dataset.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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