VTK  9.2.6
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 =========================================================================*/
29 #ifndef vtkXMLGenericDataObjectReader_h
30 #define vtkXMLGenericDataObjectReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
33 #include "vtkSmartPointer.h" // for API
34 #include "vtkXMLDataReader.h"
35 
38 class vtkImageData;
39 class vtkPolyData;
40 class vtkRectilinearGrid;
41 class vtkStructuredGrid;
43 
44 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkDataObject* GetOutput();
56  vtkDataObject* GetOutput(int idx);
58 
60 
67  vtkHierarchicalBoxDataSet* GetHierarchicalBoxDataSetOutput();
68  vtkImageData* GetImageDataOutput();
69  vtkMultiBlockDataSet* GetMultiBlockDataSetOutput();
70  vtkPolyData* GetPolyDataOutput();
71  vtkRectilinearGrid* GetRectilinearGridOutput();
72  vtkStructuredGrid* GetStructuredGridOutput();
73  vtkUnstructuredGrid* GetUnstructuredGridOutput();
75 
79  vtkIdType GetNumberOfPoints() override;
80 
84  vtkIdType GetNumberOfCells() override;
85 
89  void SetupEmptyOutput() override;
90 
95  virtual int ReadOutputType(const char* name, bool& parallel);
96 
101  static vtkSmartPointer<vtkXMLReader> CreateReader(int data_object_type, bool parallel);
102 
103 protected:
105  ~vtkXMLGenericDataObjectReader() override;
106 
110  const char* GetDataSetName() override;
111 
114  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector);
116 
118  int FillOutputPortInformation(int, vtkInformation*) override;
119 
120  vtkXMLReader* Reader; // actual reader
121 
122 private:
124  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
125 };
126 
127 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual const char * GetDataSetName()=0
virtual void SetupEmptyOutput()=0
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:32
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
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:389
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:49