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 "vtkIOXMLModule.h" // For export macro
32 #include "vtkXMLDataReader.h"
33 
35 class vtkHyperOctree;
37 class vtkImageData;
38 class vtkPolyData;
39 class vtkRectilinearGrid;
40 class vtkStructuredGrid;
42 
43 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  vtkDataObject *GetOutput();
53  vtkDataObject *GetOutput(int idx);
55 
57 
62  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
63  vtkHyperOctree *GetHyperOctreeOutput();
64  vtkImageData *GetImageDataOutput();
65  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
66  vtkPolyData *GetPolyDataOutput();
67  vtkRectilinearGrid *GetRectilinearGridOutput();
68  vtkStructuredGrid *GetStructuredGridOutput();
69  vtkUnstructuredGrid *GetUnstructuredGridOutput();
71 
74 
77 
79  void SetupEmptyOutput();
80 
83  virtual int ReadOutputType(const char *name, bool &parallel);
84 
85 protected:
88 
90  const char* GetDataSetName();
91 
92 
97  virtual int RequestUpdateExtent(vtkInformation *request,
98  vtkInformationVector **inputVector,
99  vtkInformationVector *outputVector);
100 
103  virtual int FillOutputPortInformation(int, vtkInformation *);
104 
105  vtkXMLReader *Reader; // actual reader
106 
107 private:
109  void operator=(const vtkXMLGenericDataObjectReader&); // Not implemented.
110 };
111 
112 #endif