VTK
vtkXMLGenericDataObjectReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: $RCSfile$
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 =========================================================================*/
28 #ifndef __vtkXMLGenericDataObjectReader_h
29 #define __vtkXMLGenericDataObjectReader_h
30 
31 #include "vtkXMLDataReader.h"
32 
34 class vtkHyperOctree;
36 class vtkImageData;
37 class vtkPolyData;
38 class vtkRectilinearGrid;
39 class vtkStructuredGrid;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkDataObject *GetOutput();
52  vtkDataObject *GetOutput(int idx);
54 
56 
61  vtkHierarchicalBoxDataSet *GetHierarchicalBoxDataSetOutput();
62  vtkHyperOctree *GetHyperOctreeOutput();
63  vtkImageData *GetImageDataOutput();
64  vtkMultiBlockDataSet *GetMultiBlockDataSetOutput();
65  vtkPolyData *GetPolyDataOutput();
66  vtkRectilinearGrid *GetRectilinearGridOutput();
67  vtkStructuredGrid *GetStructuredGridOutput();
68  vtkUnstructuredGrid *GetUnstructuredGridOutput();
70 
73 
76 
78  void SetupEmptyOutput();
79 
82  virtual int ReadOutputType(const char *name, bool &parallel);
83 
84 protected:
87 
89  const char* GetDataSetName();
90 
91 
96  virtual int RequestUpdateExtent(vtkInformation *request,
97  vtkInformationVector **inputVector,
98  vtkInformationVector *outputVector);
99 
102  virtual int FillOutputPortInformation(int, vtkInformation *);
103 
104  vtkXMLReader *Reader; // actual reader
105 
106 private:
108  void operator=(const vtkXMLGenericDataObjectReader&); // Not implemented.
109 };
110 
111 #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)
hierarchical dataset of vtkUniformGrids
int vtkIdType
Definition: vtkType.h:255
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
A dataset structured as a tree where each node has exactly 2^n children.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
dataset represents arbitrary combinations of all possible cell types
virtual vtkIdType GetNumberOfPoints()=0
virtual vtkIdType GetNumberOfCells()=0
Superclass for VTK XML file readers.
topologically regular array of data
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:237
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
#define VTK_IO_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:70
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:38