VTK  9.0.1
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 =========================================================================*/
26 #ifndef vtkXMLGenericDataObjectReader_h
27 #define vtkXMLGenericDataObjectReader_h
28 
29 #include "vtkIOXMLModule.h" // For export macro
30 #include "vtkXMLDataReader.h"
31 
34 class vtkImageData;
35 class vtkPolyData;
36 class vtkRectilinearGrid;
37 class vtkStructuredGrid;
39 
40 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  vtkDataObject* GetOutput();
52  vtkDataObject* GetOutput(int idx);
54 
56 
63  vtkHierarchicalBoxDataSet* GetHierarchicalBoxDataSetOutput();
64  vtkImageData* GetImageDataOutput();
65  vtkMultiBlockDataSet* GetMultiBlockDataSetOutput();
66  vtkPolyData* GetPolyDataOutput();
67  vtkRectilinearGrid* GetRectilinearGridOutput();
68  vtkStructuredGrid* GetStructuredGridOutput();
69  vtkUnstructuredGrid* GetUnstructuredGridOutput();
71 
75  vtkIdType GetNumberOfPoints() override;
76 
80  vtkIdType GetNumberOfCells() override;
81 
85  void SetupEmptyOutput() override;
86 
91  virtual int ReadOutputType(const char* name, bool& parallel);
92 
93 protected:
96 
100  const char* GetDataSetName() override;
101 
104  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector);
106 
108  int FillOutputPortInformation(int, vtkInformation*) override;
109 
110  vtkXMLReader* Reader; // actual reader
111 
112 private:
114  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
115 };
116 
117 #endif
vtkXMLReader::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkXMLDataReader::GetNumberOfCells
virtual vtkIdType GetNumberOfCells()=0
Get the number of cells in the output.
vtkXMLDataReader::GetNumberOfPoints
virtual vtkIdType GetNumberOfPoints()=0
Get the number of points in the output.
vtkXMLDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:57
vtkXMLReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
Definition: vtkXMLReader.h:339
vtkHierarchicalBoxDataSet
Backwards compatibility class.
Definition: vtkHierarchicalBoxDataSet.h:34
vtkXMLDataReader
Superclass for VTK XML file readers.
Definition: vtkXMLDataReader.h:35
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkXMLReader::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkXMLReader::SetupEmptyOutput
virtual void SetupEmptyOutput()=0
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkXMLDataReader.h
vtkXMLReader::GetDataSetName
virtual const char * GetDataSetName()=0
vtkXMLGenericDataObjectReader
Read any type of vtk data object.
Definition: vtkXMLGenericDataObjectReader.h:40
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkXMLReader
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:43
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkXMLGenericDataObjectReader::Reader
vtkXMLReader * Reader
Definition: vtkXMLGenericDataObjectReader.h:110