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 
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
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual const char * GetDataSetName()=0
virtual void SetupEmptyOutput()=0
Store vtkAlgorithm input/output information.
Read any type of vtk data object.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Backwards compatibility class.
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
A dataset structured as a tree where each node has exactly 2^n children.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
dataset represents arbitrary combinations of all possible cell types
virtual vtkIdType GetNumberOfPoints()=0
virtual vtkIdType GetNumberOfCells()=0
Superclass for VTK XML file readers.
topologically regular array of data
Composite dataset that organizes datasets into blocks.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
Definition: vtkXMLReader.h:274
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:41