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 
65 
67 
81 
84  virtual int ReadOutputType();
85 
87 
90 //BTX
91 protected:
95 
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
vtkGenericDataObjectReader::GetTreeOutput
vtkTree * GetTreeOutput()
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:39
vtkGenericDataObjectReader
class to read any type of vtk data object
Definition: vtkGenericDataObjectReader.h:54
vtkGenericDataObjectReader::GetStructuredPointsOutput
vtkStructuredPoints * GetStructuredPointsOutput()
vtkGenericDataObjectReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkDataReader
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:49
vtkGenericDataObjectReader::GetPolyDataOutput
vtkPolyData * GetPolyDataOutput()
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
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkGenericDataObjectReader::GetOutput
vtkDataObject * GetOutput(int idx)
VTKIOLEGACY_EXPORT
#define VTKIOLEGACY_EXPORT
Definition: vtkIOLegacyModule.h:15
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkGenericDataObjectReader::GetUnstructuredGridOutput
vtkUnstructuredGrid * GetUnstructuredGridOutput()
vtkIOLegacyModule.h
vtkGenericDataObjectReader::GetTableOutput
vtkTable * GetTableOutput()
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkGenericDataObjectReader::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *)
vtkDataReader.h
vtkGenericDataObjectReader::GetRectilinearGridOutput
vtkRectilinearGrid * GetRectilinearGridOutput()
vtkGenericDataObjectReader::GetGraphOutput
vtkGraph * GetGraphOutput()
vtkGenericDataObjectReader::New
static vtkGenericDataObjectReader * New()
vtkGenericDataObjectReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGenericDataObjectReader::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGenericDataObjectReader::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGenericDataObjectReader::~vtkGenericDataObjectReader
~vtkGenericDataObjectReader()
vtkGenericDataObjectReader::GetStructuredGridOutput
vtkStructuredGrid * GetStructuredGridOutput()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkGenericDataObjectReader::ReadOutputType
virtual int ReadOutputType()
vtkGenericDataObjectReader::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkGenericDataObjectReader::GetOutput
vtkDataObject * GetOutput()
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkGenericDataObjectReader::vtkGenericDataObjectReader
vtkGenericDataObjectReader()
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65