00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00044 #ifndef __vtkTreeAlgorithm_h
00045 #define __vtkTreeAlgorithm_h
00046 
00047 #include "vtkAlgorithm.h"
00048 #include "vtkTree.h" 
00049 
00050 class vtkDataSet;
00051 
00052 class VTK_FILTERING_EXPORT vtkTreeAlgorithm : public vtkAlgorithm
00053 {
00054 public:
00055   static vtkTreeAlgorithm *New();
00056   vtkTypeMacro(vtkTreeAlgorithm,vtkAlgorithm);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   virtual int ProcessRequest(vtkInformation*,
00062                              vtkInformationVector**,
00063                              vtkInformationVector*);
00065 
00067 
00068   vtkTree* GetOutput() { return this->GetOutput(0); }
00069   vtkTree* GetOutput(int index);
00071 
00073 
00080   void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); }
00081   void SetInput(int index, vtkDataObject* obj);
00083 
00084 protected:
00085   vtkTreeAlgorithm();
00086   ~vtkTreeAlgorithm();
00087 
00088   
00089   virtual int RequestInformation(vtkInformation* request,
00090                                  vtkInformationVector** inputVector,
00091                                  vtkInformationVector* outputVector);
00092 
00094 
00096   virtual int RequestData(vtkInformation* request,
00097                           vtkInformationVector** inputVector,
00098                           vtkInformationVector* outputVector);
00100 
00102 
00104   virtual int RequestUpdateExtent(vtkInformation*,
00105                                   vtkInformationVector**,
00106                                   vtkInformationVector*);
00108 
00109   
00110   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00111   virtual int FillInputPortInformation(int port, vtkInformation* info);
00112 
00113 private:
00114   vtkTreeAlgorithm(const vtkTreeAlgorithm&);  
00115   void operator=(const vtkTreeAlgorithm&);  
00116 };
00117 
00118 #endif