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 "vtkDataReader.h"
41 
42 class vtkDataObject;
43 class vtkGraph;
44 class vtkPolyData;
45 class vtkRectilinearGrid;
46 class vtkStructuredGrid;
48 class vtkTable;
49 class vtkTree;
51 
53 {
54 public:
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkDataObject *GetOutput();
62  vtkDataObject *GetOutput(int idx);
64 
66 
71  vtkGraph *GetGraphOutput();
72  vtkPolyData *GetPolyDataOutput();
73  vtkRectilinearGrid *GetRectilinearGridOutput();
74  vtkStructuredGrid *GetStructuredGridOutput();
75  vtkStructuredPoints *GetStructuredPointsOutput();
76  vtkTable *GetTableOutput();
77  vtkTree *GetTreeOutput();
78  vtkUnstructuredGrid *GetUnstructuredGridOutput();
80 
83  virtual int ReadOutputType();
84 
86 
89 //BTX
90 protected:
94 
97  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
99  virtual int FillOutputPortInformation(int, vtkInformation *);
102 
103 private:
104  vtkGenericDataObjectReader(const vtkGenericDataObjectReader&); // Not implemented.
105  void operator=(const vtkGenericDataObjectReader&); // Not implemented.
106 
107  template<typename ReaderT, typename DataT>
108  void ReadData(const char* dataClass, vtkDataObject* output);
109 
110  vtkSetStringMacro(Header);
111 //ETX
112 };
113 
114 #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:81
Base class for graph data types.
Definition: vtkGraph.h:287
static vtkDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent)
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:46
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
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:66
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
#define VTK_IO_EXPORT
A rooted tree data structure.
Definition: vtkTree.h:58
general representation of visualization data
Definition: vtkDataObject.h:70