VTK
vtkGenericDataSetAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericDataSetAlgorithm.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 =========================================================================*/
36 #ifndef __vtkGenericDataSetAlgorithm_h
37 #define __vtkGenericDataSetAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 #include "vtkGenericDataSet.h" // makes things a bit easier
41 
42 class vtkDataSet;
43 class vtkGenericDataSet;
44 
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  vtkGenericDataSet* GetOutput();
54  vtkGenericDataSet* GetOutput(int);
55  virtual void SetOutput(vtkDataObject* d);
57 
59 
60  virtual int ProcessRequest(vtkInformation*,
64 
65  // this method is not recommended for use, but lots of old style filters
66  // use it
67  vtkDataObject* GetInput();
68  vtkDataObject *GetInput(int port);
69  vtkGenericDataSet *GetGenericDataSetInput(int port);
70 
72 
79  void SetInput(vtkDataObject *);
80  void SetInput(int, vtkDataObject*);
82 
84 
88  void AddInput(vtkDataObject *);
89  void AddInput(int, vtkDataObject*);
91 
92 protected:
95 
96  // convenience method
97  virtual int RequestInformation(vtkInformation* request,
98  vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
100 
102 
105  virtual int RequestData(vtkInformation* request,
106  vtkInformationVector** inputVector,
107  vtkInformationVector* outputVector);
109 
111 
114  virtual int RequestDataObject(vtkInformation* request,
115  vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector)=0;
118 
120 
123  virtual int RequestUpdateExtent(vtkInformation*,
127 
129 
130  virtual void ExecuteData(vtkDataObject *output);
131  virtual void Execute();
133 
134  // see algorithm for more info
135  virtual int FillOutputPortInformation(int port, vtkInformation* info);
136  virtual int FillInputPortInformation(int port, vtkInformation* info);
137 
138 private:
139  vtkGenericDataSetAlgorithm(const vtkGenericDataSetAlgorithm&); // Not implemented.
140  void operator=(const vtkGenericDataSetAlgorithm&); // Not implemented.
141 };
142 
143 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
Objects that generate adapted data sets.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
defines dataset interface
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)