VTK
vtkXMLGenericDataObjectReader.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 =========================================================================*/
28 #ifndef __vtkXMLGenericDataObjectReader_h
29 #define __vtkXMLGenericDataObjectReader_h
30 
31 #include "vtkXMLDataReader.h"
32 
34 class vtkHyperOctree;
36 class vtkImageData;
37 class vtkPolyData;
38 class vtkRectilinearGrid;
39 class vtkStructuredGrid;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkDataObject *GetOutput();
52  vtkDataObject *GetOutput(int idx);
54 
56 
61  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
62  vtkHyperOctree *GetHyperOctreeOutput();
63  vtkImageData *GetImageDataOutput();
64  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
65  vtkPolyData *GetPolyDataOutput();
66  vtkRectilinearGrid *GetRectilinearGridOutput();
67  vtkStructuredGrid *GetStructuredGridOutput();
68  vtkUnstructuredGrid *GetUnstructuredGridOutput();
70 
73 
76 
78  void SetupEmptyOutput();
79 
82  virtual int ReadOutputType(const char *name, bool &parallel);
83 
84 protected:
87 
89  const char* GetDataSetName();
90 
91 
96  virtual int RequestUpdateExtent(vtkInformation *request,
97  vtkInformationVector **inputVector,
98  vtkInformationVector *outputVector);
99 
102  virtual int FillOutputPortInformation(int, vtkInformation *);
103 
104  vtkXMLReader *Reader; // actual reader
105 
106 private:
108  void operator=(const vtkXMLGenericDataObjectReader&); // Not implemented.
109 };
110 
111 #endif