VTK  9.3.0
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
24VTK_ABI_NAMESPACE_BEGIN
27class vtkImageData;
28class vtkPolyData;
32
33class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
47
49
64
69
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
92protected:
95
99 const char* GetDataSetName() override;
100
103 virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
104 vtkInformationVector* outputVector);
105
108
109 vtkXMLReader* Reader; // actual reader
110
111private:
113 void operator=(const vtkXMLGenericDataObjectReader&) = delete;
114};
115
116VTK_ABI_NAMESPACE_END
117#endif
general representation of visualization data
Backwards compatibility class.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:29
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:80
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.
vtkDataObject * GetOutput(int idx)
Get the reader's output.
static vtkXMLGenericDataObjectReader * New()
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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...
vtkImageData * GetImageDataOutput()
Get the output as various concrete types.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIdType GetNumberOfPoints() override
Overridden method.
static vtkSmartPointer< vtkXMLReader > CreateReader(int data_object_type, bool parallel)
Helper to create a reader based on the data object type.
void SetupEmptyOutput() override
Overridden method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMultiBlockDataSet * GetMultiBlockDataSetOutput()
Get the output as various concrete types.
vtkPolyData * GetPolyDataOutput()
Get the output as various concrete types.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as various concrete types.
vtkIdType GetNumberOfCells() override
Overridden method.
~vtkXMLGenericDataObjectReader() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
const char * GetDataSetName() override
Overridden method.
vtkHierarchicalBoxDataSet * GetHierarchicalBoxDataSetOutput()
Get the output as various concrete types.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as various concrete types.
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as various concrete types.
vtkDataObject * GetOutput()
Get the reader's output.
Superclass for VTK's XML format readers.
int vtkIdType
Definition vtkType.h:315