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 =========================================================================*/
20 #ifndef __vtkCompositeDataReader_h
21 #define __vtkCompositeDataReader_h
22 
23 #include "vtkIOGeometryModule.h" // For export macro
24 #include "vtkDataReader.h"
25 
30 
31 class VTKIOGEOMETRY_EXPORT vtkCompositeDataReader : public vtkDataReader
32 {
33 public:
34  static vtkCompositeDataReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  vtkCompositeDataSet *GetOutput();
41  vtkCompositeDataSet *GetOutput(int idx);
42  void SetOutput(vtkCompositeDataSet *output);
44 
45 //BTX
46 protected:
49 
52 
53  // Override ProcessRequest to handle request data object event
56 
57  // Since the Outputs[0] has the same UpdateExtent format
58  // as the generic DataObject we can copy the UpdateExtent
59  // as a default behavior.
62 
63  // Create output (a directed or undirected graph).
64  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
66 
67  virtual int FillOutputPortInformation(int, vtkInformation*);
68 
70  int ReadOutputType();
71 
72  bool ReadCompositeData(vtkMultiPieceDataSet*);
73  bool ReadCompositeData(vtkMultiBlockDataSet*);
74  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
75  vtkDataObject* ReadChild();
76 
77 private:
78  vtkCompositeDataReader(const vtkCompositeDataReader&); // Not implemented.
79  void operator=(const vtkCompositeDataReader&); // Not implemented.
80 //ETX
81 };
82 
83 #endif