VTK
vtkGenericDataObjectReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericDataObjectReader.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 =========================================================================*/
37 #ifndef vtkGenericDataObjectReader_h
38 #define vtkGenericDataObjectReader_h
39 
40 #include "vtkIOLegacyModule.h" // For export macro
41 #include "vtkDataReader.h"
42 
43 class vtkDataObject;
44 class vtkGraph;
45 class vtkPolyData;
46 class vtkRectilinearGrid;
47 class vtkStructuredGrid;
49 class vtkTable;
50 class vtkTree;
52 
54 {
55 public:
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
62  vtkDataObject *GetOutput();
63  vtkDataObject *GetOutput(int idx);
65 
67 
72  vtkGraph *GetGraphOutput();
73  vtkPolyData *GetPolyDataOutput();
74  vtkRectilinearGrid *GetRectilinearGridOutput();
75  vtkStructuredGrid *GetStructuredGridOutput();
76  vtkStructuredPoints *GetStructuredPointsOutput();
77  vtkTable *GetTableOutput();
78  vtkTree *GetTreeOutput();
79  vtkUnstructuredGrid *GetUnstructuredGridOutput();
81 
84  virtual int ReadOutputType();
85 
87 
90 //BTX
91 protected:
95 
98  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
100  virtual int FillOutputPortInformation(int, vtkInformation *);
103 
104 private:
105  vtkGenericDataObjectReader(const vtkGenericDataObjectReader&); // Not implemented.
106  void operator=(const vtkGenericDataObjectReader&); // Not implemented.
107 
108  template<typename ReaderT, typename DataT>
109  void ReadData(const char* dataClass, vtkDataObject* output);
110 
111  vtkSetStringMacro(Header);
112 //ETX
113 };
114 
115 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
#define VTKIOLEGACY_EXPORT
Base class for graph data types.
Definition: vtkGraph.h:288
static vtkDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent)
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:48
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
dataset represents arbitrary combinations of all possible cell types
class to read any type of vtk data object
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
A rooted tree data structure.
Definition: vtkTree.h:59
general representation of visualization data
Definition: vtkDataObject.h:64