VTK  9.3.20240328
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
46 #ifndef vtkXMLGenericDataObjectReader_h
47 #define vtkXMLGenericDataObjectReader_h
48 
49 #include "vtkIOXMLModule.h" // For export macro
50 #include "vtkSmartPointer.h" // for API
51 #include "vtkXMLDataReader.h"
52 
53 VTK_ABI_NAMESPACE_BEGIN
56 class vtkImageData;
57 class vtkPolyData;
58 class vtkRectilinearGrid;
59 class vtkStructuredGrid;
61 
62 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
63 {
64 public:
66  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
70 
76 
78 
93 
98 
103 
107  void SetupEmptyOutput() override;
108 
113  virtual int ReadOutputType(const char* name, bool& parallel);
114 
119  static vtkSmartPointer<vtkXMLReader> CreateReader(int data_object_type, bool parallel);
120 
121 protected:
124 
128  const char* GetDataSetName() override;
129 
132  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
133  vtkInformationVector* outputVector);
134 
137 
138  vtkXMLReader* Reader; // actual reader
139 
140 private:
142  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
143 };
144 
145 VTK_ABI_NAMESPACE_END
146 #endif
general representation of visualization data
Backwards compatibility class.
topologically and geometrically regular array of data
Definition: vtkImageData.h:155
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:180
a dataset that is topologically regular with variable spacing in the three coordinate directions
Hold a reference to a vtkObjectBase instance.
topologically regular array of data
dataset represents arbitrary combinations of all possible cell types
Superclass for VTK XML file readers.
Read any type of vtk data object.
static vtkSmartPointer< vtkXMLReader > CreateReader(int data_object_type, bool parallel)
Helper to create a reader based on the data object type.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataObject * GetOutput()
Get the reader's output.
virtual int ReadOutputType(const char *name, bool &parallel)
This method can be used to find out the type of output expected without needing to read the whole fil...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIdType GetNumberOfPoints() override
Overridden method.
void SetupEmptyOutput() override
Overridden method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as various concrete types.
const char * GetDataSetName() override
Overridden method.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIdType GetNumberOfCells() override
Overridden method.
~vtkXMLGenericDataObjectReader() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as various concrete types.
vtkMultiBlockDataSet * GetMultiBlockDataSetOutput()
Get the output as various concrete types.
vtkHierarchicalBoxDataSet * GetHierarchicalBoxDataSetOutput()
Get the output as various concrete types.
static vtkXMLGenericDataObjectReader * New()
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as various concrete types.
vtkDataObject * GetOutput(int idx)
Get the reader's output.
vtkPolyData * GetPolyDataOutput()
Get the output as various concrete types.
vtkImageData * GetImageDataOutput()
Get the output as various concrete types.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:59
@ name
Definition: vtkX3D.h:219
int vtkIdType
Definition: vtkType.h:315