VTK
vtkDataSetReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetReader.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 =========================================================================*/
39 #ifndef vtkDataSetReader_h
40 #define vtkDataSetReader_h
41 
42 #include "vtkIOLegacyModule.h" // For export macro
43 #include "vtkDataReader.h"
44 
45 class vtkDataSet;
46 class vtkPolyData;
47 class vtkRectilinearGrid;
48 class vtkStructuredGrid;
51 
53 {
54 public:
55  static vtkDataSetReader *New();
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  vtkDataSet *GetOutput();
62  vtkDataSet *GetOutput(int idx);
64 
66 
71  vtkPolyData *GetPolyDataOutput();
72  vtkStructuredPoints *GetStructuredPointsOutput();
73  vtkStructuredGrid *GetStructuredGridOutput();
74  vtkUnstructuredGrid *GetUnstructuredGridOutput();
75  vtkRectilinearGrid *GetRectilinearGridOutput();
77 
80  virtual int ReadOutputType();
81 
82 protected:
85 
90  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
92  virtual int FillOutputPortInformation(int, vtkInformation *);
95 
96 private:
97  vtkDataSetReader(const vtkDataSetReader&); // Not implemented.
98  void operator=(const vtkDataSetReader&); // Not implemented.
99 };
100 
101 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
class to read any type of vtk dataset
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
#define VTKIOLEGACY_EXPORT
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
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.