Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250401
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 "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
50#include "vtkIOXMLModule.h" // For export macro
51#include "vtkSmartPointer.h" // for API
52#include "vtkXMLDataReader.h"
53
54VTK_ABI_NAMESPACE_BEGIN
56class vtkImageData;
59class vtkPolyData;
63
64class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
65{
66public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
78
80
87 VTK_DEPRECATED_IN_9_5_0("This function is deprecated, use GetOverlappingAMROutput")
88 vtkHierarchicalBoxDataSet* GetHierarchicalBoxDataSetOutput();
89 vtkOverlappingAMR* GetOverlappingAMROutput();
90 vtkImageData* GetImageDataOutput();
91 vtkMultiBlockDataSet* GetMultiBlockDataSetOutput();
92 vtkPolyData* GetPolyDataOutput();
93 vtkRectilinearGrid* GetRectilinearGridOutput();
94 vtkStructuredGrid* GetStructuredGridOutput();
95 vtkUnstructuredGrid* GetUnstructuredGridOutput();
97
101 vtkIdType GetNumberOfPoints() override;
102
106 vtkIdType GetNumberOfCells() override;
107
111 void SetupEmptyOutput() override;
112
117 virtual int ReadOutputType(const char* name, bool& parallel);
118
123 static vtkSmartPointer<vtkXMLReader> CreateReader(int data_object_type, bool parallel);
124
125protected:
128
132 const char* GetDataSetName() override;
133
134 int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
135 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
136 virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
137 vtkInformationVector* outputVector);
138
140 int FillOutputPortInformation(int, vtkInformation*) override;
141
142 vtkXMLReader* Reader; // actual reader
143
144private:
146 void operator=(const vtkXMLGenericDataObjectReader&) = delete;
147};
148
149VTK_ABI_NAMESPACE_END
150#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
a multi-resolution dataset based on vtkUniformGrid allowing overlaps
concrete dataset represents vertices, lines, polygons, and triangle strips
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()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject * GetOutput()
Get the reader's output.
Superclass for VTK's XML format readers.
#define VTK_DEPRECATED_IN_9_5_0(reason)
int vtkIdType
Definition vtkType.h:332