VTK
vtkXMLGenericDataObjectReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLGenericDataObjectReader.h
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 =========================================================================*/
29 #ifndef vtkXMLGenericDataObjectReader_h
30 #define vtkXMLGenericDataObjectReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
33 #include "vtkXMLDataReader.h"
34 
36 class vtkHyperOctree;
38 class vtkImageData;
39 class vtkPolyData;
40 class vtkRectilinearGrid;
41 class vtkStructuredGrid;
43 
44 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 
52 
55  vtkDataObject *GetOutput();
56  vtkDataObject *GetOutput(int idx);
58 
60 
67  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
68  vtkHyperOctree *GetHyperOctreeOutput();
69  vtkImageData *GetImageDataOutput();
70  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
71  vtkPolyData *GetPolyDataOutput();
72  vtkRectilinearGrid *GetRectilinearGridOutput();
73  vtkStructuredGrid *GetStructuredGridOutput();
74  vtkUnstructuredGrid *GetUnstructuredGridOutput();
76 
80  vtkIdType GetNumberOfPoints() VTK_OVERRIDE;
81 
85  vtkIdType GetNumberOfCells() VTK_OVERRIDE;
86 
90  void SetupEmptyOutput() VTK_OVERRIDE;
91 
96  virtual int ReadOutputType(const char *name, bool &parallel);
97 
98 protected:
100  ~vtkXMLGenericDataObjectReader() VTK_OVERRIDE;
101 
105  const char* GetDataSetName() VTK_OVERRIDE;
106 
107 
108  int RequestDataObject(vtkInformation *, vtkInformationVector **,
109  vtkInformationVector *) VTK_OVERRIDE;
110  int RequestInformation(vtkInformation *, vtkInformationVector **,
111  vtkInformationVector *) VTK_OVERRIDE;
112  virtual int RequestUpdateExtent(vtkInformation *request,
113  vtkInformationVector **inputVector,
114  vtkInformationVector *outputVector);
115 
116  int RequestData(vtkInformation *, vtkInformationVector **,
117  vtkInformationVector *) VTK_OVERRIDE;
118  int FillOutputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
119 
120  vtkXMLReader *Reader; // actual reader
121 
122 private:
123  vtkXMLGenericDataObjectReader(const vtkXMLGenericDataObjectReader&) VTK_DELETE_FUNCTION;
124  void operator=(const vtkXMLGenericDataObjectReader&) VTK_DELETE_FUNCTION;
125 };
126 
127 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
Read any type of vtk data object.
Backwards compatibility class.
int vtkIdType
Definition: vtkType.h:345
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
A dataset structured as a tree where each node has exactly 2^n children.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
dataset represents arbitrary combinations of all possible cell types
virtual vtkIdType GetNumberOfPoints()=0
Get the number of points in the output.
Superclass for VTK XML file readers.
topologically regular array of data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Composite dataset that organizes datasets into blocks.
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:43