VTK  9.1.0
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 "vtkSmartPointer.h" // for API
31 #include "vtkXMLDataReader.h"
32 
35 class vtkImageData;
36 class vtkPolyData;
37 class vtkRectilinearGrid;
38 class vtkStructuredGrid;
40 
41 class VTKIOXML_EXPORT vtkXMLGenericDataObjectReader : public vtkXMLDataReader
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
55 
57 
72 
77 
82 
86  void SetupEmptyOutput() override;
87 
92  virtual int ReadOutputType(const char* name, bool& parallel);
93 
98  static vtkSmartPointer<vtkXMLReader> CreateReader(int data_object_type, bool parallel);
99 
100 protected:
103 
107  const char* GetDataSetName() override;
108 
111  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
112  vtkInformationVector* outputVector);
113 
116 
117  vtkXMLReader* Reader; // actual reader
118 
119 private:
121  void operator=(const vtkXMLGenericDataObjectReader&) = delete;
122 };
123 
124 #endif
general representation of visualization data
Definition: vtkDataObject.h:60
Backwards compatibility class.
topologically and geometrically regular array of data
Definition: vtkImageData.h:48
a simple class to control print indentation
Definition: vtkIndent.h:34
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:86
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.
static vtkSmartPointer< vtkXMLReader > CreateReader(int data_object_type, bool parallel)
Helper to create a reader based on the data object type.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkDataObject * GetOutput()
Get the reader's output.
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...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIdType GetNumberOfPoints() override
Overridden method.
void SetupEmptyOutput() override
Overridden method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as various concrete types.
const char * GetDataSetName() override
Overridden method.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkIdType GetNumberOfCells() override
Overridden method.
~vtkXMLGenericDataObjectReader() override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as various concrete types.
vtkMultiBlockDataSet * GetMultiBlockDataSetOutput()
Get the output as various concrete types.
vtkHierarchicalBoxDataSet * GetHierarchicalBoxDataSetOutput()
Get the output as various concrete types.
static vtkXMLGenericDataObjectReader * New()
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as various concrete types.
vtkDataObject * GetOutput(int idx)
Get the reader's output.
vtkPolyData * GetPolyDataOutput()
Get the output as various concrete types.
vtkImageData * GetImageDataOutput()
Get the output as various concrete types.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:47
@ name
Definition: vtkX3D.h:225
int vtkIdType
Definition: vtkType.h:332