VTK
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 "vtkXMLDataReader.h"
34 
37 class vtkImageData;
38 class vtkPolyData;
39 class vtkRectilinearGrid;
40 class vtkStructuredGrid;
42 
43 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkDataObject *GetOutput();
55  vtkDataObject *GetOutput(int idx);
57 
59 
66  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
67  vtkImageData *GetImageDataOutput();
68  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
69  vtkPolyData *GetPolyDataOutput();
70  vtkRectilinearGrid *GetRectilinearGridOutput();
71  vtkStructuredGrid *GetStructuredGridOutput();
72  vtkUnstructuredGrid *GetUnstructuredGridOutput();
74 
78  vtkIdType GetNumberOfPoints() override;
79 
83  vtkIdType GetNumberOfCells() override;
84 
88  void SetupEmptyOutput() override;
89 
94  virtual int ReadOutputType(const char *name, bool &parallel);
95 
96 protected:
99 
103  const char* GetDataSetName() override;
104 
105 
107  vtkInformationVector *) override;
109  vtkInformationVector *) override;
110  virtual int RequestUpdateExtent(vtkInformation *request,
111  vtkInformationVector **inputVector,
112  vtkInformationVector *outputVector);
113 
115  vtkInformationVector *) override;
116  int FillOutputPortInformation(int, vtkInformation *) override;
117 
118  vtkXMLReader *Reader; // actual reader
119 
120 private:
122  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
123 };
124 
125 #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:347
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:56
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkXMLReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *vtkNotUsed(request), vtkInformationVector **vtkNotUsed(inputVector), vtkInformationVector *vtkNotUsed(outputVector))
Definition: vtkXMLReader.h:343
vtkHierarchicalBoxDataSet
Backwards compatibility class.
Definition: vtkHierarchicalBoxDataSet.h:37
vtkXMLDataReader
Superclass for VTK XML file readers.
Definition: vtkXMLDataReader.h:35
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
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:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLDataReader.h
vtkXMLReader::GetDataSetName
virtual const char * GetDataSetName()=0
vtkXMLGenericDataObjectReader
Read any type of vtk data object.
Definition: vtkXMLGenericDataObjectReader.h:43
vtkX3D::name
Definition: vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
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:118