00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00036 #ifndef __vtkPolyDataAlgorithm_h
00037 #define __vtkPolyDataAlgorithm_h
00038
00039 #include "vtkAlgorithm.h"
00040 #include "vtkPolyData.h"
00041
00042 class vtkDataSet;
00043 class vtkPolyData;
00044
00045 class VTK_FILTERING_EXPORT vtkPolyDataAlgorithm : public vtkAlgorithm
00046 {
00047 public:
00048 static vtkPolyDataAlgorithm *New();
00049 vtkTypeRevisionMacro(vtkPolyDataAlgorithm,vtkAlgorithm);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00053
00054 vtkPolyData* GetOutput();
00055 vtkPolyData* GetOutput(int);
00056 virtual void SetOutput(vtkDataObject* d);
00058
00060
00061 virtual int ProcessRequest(vtkInformation*,
00062 vtkInformationVector**,
00063 vtkInformationVector*);
00065
00066
00067
00068 vtkDataObject* GetInput();
00069 vtkDataObject *GetInput(int port);
00070 vtkPolyData *GetPolyDataInput(int port);
00071
00073
00080 void SetInput(vtkDataObject *);
00081 void SetInput(int, vtkDataObject*);
00083
00085
00089 void AddInput(vtkDataObject *);
00090 void AddInput(int, vtkDataObject*);
00092
00093 protected:
00094 vtkPolyDataAlgorithm();
00095 ~vtkPolyDataAlgorithm();
00096
00097
00098 virtual int RequestInformation(vtkInformation* request,
00099 vtkInformationVector** inputVector,
00100 vtkInformationVector* outputVector);
00101
00103
00105 virtual int RequestData(vtkInformation* request,
00106 vtkInformationVector** inputVector,
00107 vtkInformationVector* outputVector);
00109
00111
00113 virtual int RequestUpdateExtent(vtkInformation*,
00114 vtkInformationVector**,
00115 vtkInformationVector*);
00117
00119
00120 virtual void ExecuteData(vtkDataObject *output);
00121 virtual void Execute();
00123
00124
00125 virtual int FillOutputPortInformation(int port, vtkInformation* info);
00126 virtual int FillInputPortInformation(int port, vtkInformation* info);
00127
00128 private:
00129 vtkPolyDataAlgorithm(const vtkPolyDataAlgorithm&);
00130 void operator=(const vtkPolyDataAlgorithm&);
00131 };
00132
00133 #endif