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 =========================================================================*/
26 #ifndef vtkXMLGenericDataObjectReader_h
27 #define vtkXMLGenericDataObjectReader_h
28 
29 #include "vtkIOXMLModule.h" // For export macro
30 #include "vtkXMLDataReader.h"
31 
33 class vtkHyperOctree;
35 class vtkImageData;
36 class vtkPolyData;
37 class vtkRectilinearGrid;
38 class vtkStructuredGrid;
40 
41 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
52  vtkDataObject *GetOutput();
53  vtkDataObject *GetOutput(int idx);
55 
57 
64  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
65  vtkHyperOctree *GetHyperOctreeOutput();
66  vtkImageData *GetImageDataOutput();
67  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
68  vtkPolyData *GetPolyDataOutput();
69  vtkRectilinearGrid *GetRectilinearGridOutput();
70  vtkStructuredGrid *GetStructuredGridOutput();
71  vtkUnstructuredGrid *GetUnstructuredGridOutput();
73 
77  vtkIdType GetNumberOfPoints() VTK_OVERRIDE;
78 
82  vtkIdType GetNumberOfCells() VTK_OVERRIDE;
83 
87  void SetupEmptyOutput() VTK_OVERRIDE;
88 
93  virtual int ReadOutputType(const char *name, bool &parallel);
94 
95 protected:
97  ~vtkXMLGenericDataObjectReader() VTK_OVERRIDE;
98 
102  const char* GetDataSetName() VTK_OVERRIDE;
103 
104 
105  int RequestDataObject(vtkInformation *, vtkInformationVector **,
106  vtkInformationVector *) VTK_OVERRIDE;
107  int RequestInformation(vtkInformation *, vtkInformationVector **,
108  vtkInformationVector *) VTK_OVERRIDE;
109  virtual int RequestUpdateExtent(vtkInformation *request,
110  vtkInformationVector **inputVector,
111  vtkInformationVector *outputVector);
112 
113  int RequestData(vtkInformation *, vtkInformationVector **,
114  vtkInformationVector *) VTK_OVERRIDE;
115  int FillOutputPortInformation(int, vtkInformation *) VTK_OVERRIDE;
116 
117  vtkXMLReader *Reader; // actual reader
118 
119 private:
120  vtkXMLGenericDataObjectReader(const vtkXMLGenericDataObjectReader&) VTK_DELETE_FUNCTION;
121  void operator=(const vtkXMLGenericDataObjectReader&) VTK_DELETE_FUNCTION;
122 };
123 
124 #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:79
A dataset structured as a tree where each node has exactly 2^n children.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
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:58
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:43