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 "vtkDataReader.h"
43 
44 class vtkDataSet;
45 class vtkPolyData;
46 class vtkRectilinearGrid;
47 class vtkStructuredGrid;
50 
52 {
53 public:
54  static vtkDataSetReader *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkDataSet *GetOutput();
61  vtkDataSet *GetOutput(int idx);
63 
65 
70  vtkPolyData *GetPolyDataOutput();
71  vtkStructuredPoints *GetStructuredPointsOutput();
72  vtkStructuredGrid *GetStructuredGridOutput();
73  vtkUnstructuredGrid *GetUnstructuredGridOutput();
74  vtkRectilinearGrid *GetRectilinearGridOutput();
76 
79  virtual int ReadOutputType();
80 
81 protected:
84 
89  virtual int RequestDataObject(vtkInformation *, vtkInformationVector **,
91  virtual int FillOutputPortInformation(int, vtkInformation *);
94 
95 private:
96  vtkDataSetReader(const vtkDataSetReader&); // Not implemented.
97  void operator=(const vtkDataSetReader&); // Not implemented.
98 };
99 
100 #endif
101 
102 
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:58
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:81
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
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.
#define VTK_IO_EXPORT