VTK  9.3.1
vtkXMLGenericDataObjectReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkXMLGenericDataObjectReader_h
18 #define vtkXMLGenericDataObjectReader_h
19 
20 #include "vtkIOXMLModule.h" // For export macro
21 #include "vtkSmartPointer.h" // for API
22 #include "vtkXMLDataReader.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
27 class vtkImageData;
28 class vtkPolyData;
29 class vtkRectilinearGrid;
30 class vtkStructuredGrid;
32 
33 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkDataObject* GetOutput();
45  vtkDataObject* GetOutput(int idx);
47 
49 
56  vtkHierarchicalBoxDataSet* GetHierarchicalBoxDataSetOutput();
57  vtkImageData* GetImageDataOutput();
58  vtkMultiBlockDataSet* GetMultiBlockDataSetOutput();
59  vtkPolyData* GetPolyDataOutput();
60  vtkRectilinearGrid* GetRectilinearGridOutput();
61  vtkStructuredGrid* GetStructuredGridOutput();
62  vtkUnstructuredGrid* GetUnstructuredGridOutput();
64 
68  vtkIdType GetNumberOfPoints() override;
69 
73  vtkIdType GetNumberOfCells() override;
74 
78  void SetupEmptyOutput() override;
79 
84  virtual int ReadOutputType(const char* name, bool& parallel);
85 
90  static vtkSmartPointer<vtkXMLReader> CreateReader(int data_object_type, bool parallel);
91 
92 protected:
95 
99  const char* GetDataSetName() override;
100 
103  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector);
105 
107  int FillOutputPortInformation(int, vtkInformation*) override;
108 
109  vtkXMLReader* Reader; // actual reader
110 
111 private:
113  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
114 };
115 
116 VTK_ABI_NAMESPACE_END
117 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
virtual void SetupEmptyOutput()=0
Setup the output with no data available.
Store vtkAlgorithm input/output information.
Read any type of vtk data object.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Backwards compatibility class.
Hold a reference to a vtkObjectBase instance.
Definition: vtkMeta.h:23
int vtkIdType
Definition: vtkType.h:315
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
dataset represents arbitrary combinations of all possible cell types
virtual vtkIdType GetNumberOfPoints()=0
Get the number of points in the output.
virtual vtkIdType GetNumberOfCells()=0
Get the number of cells 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.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
Definition: vtkXMLReader.h:438
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:38