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 "vtkDataReader.h"
24 
29 
31 {
32 public:
33  static vtkCompositeDataReader* New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
39  vtkCompositeDataSet *GetOutput();
40  vtkCompositeDataSet *GetOutput(int idx);
41  void SetOutput(vtkCompositeDataSet *output);
43 
44 //BTX
45 protected:
48 
51 
52  // Override ProcessRequest to handle request data object event
55 
56  // Since the Outputs[0] has the same UpdateExtent format
57  // as the generic DataObject we can copy the UpdateExtent
58  // as a default behavior.
61 
62  // Create output (a directed or undirected graph).
63  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
65 
66  virtual int FillOutputPortInformation(int, vtkInformation*);
67 
69  int ReadOutputType();
70 
71  bool ReadCompositeData(vtkMultiPieceDataSet*);
72  bool ReadCompositeData(vtkMultiBlockDataSet*);
73  bool ReadCompositeData(vtkHierarchicalBoxDataSet*);
74  vtkDataObject* ReadChild();
75 
76 private:
77  vtkCompositeDataReader(const vtkCompositeDataReader&); // Not implemented.
78  void operator=(const vtkCompositeDataReader&); // Not implemented.
79 //ETX
80 };
81 
82 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
hierarchical dataset of vtkUniformGrids
read vtkCompositeDataSet data file.
static vtkDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent)
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:46
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:37
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.
Store zero or more vtkInformation instances.
#define VTK_IO_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:70