VTK
dox/Common/ExecutionModel/vtkHyperTreeGridAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkHyperTreeGridAlgorithm.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkHyperTreeGridAlgorithm_h
00036 #define __vtkHyperTreeGridAlgorithm_h
00037 
00038 #include "vtkCommonExecutionModelModule.h" // For export macro
00039 #include "vtkAlgorithm.h"
00040 #include "vtkHyperTreeGrid.h" // makes things a bit easier
00041 
00042 class vtkDataSet;
00043 class vtkHyperTreeGrid;
00044 
00045 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkHyperTreeGridAlgorithm : public vtkAlgorithm
00046 {
00047 public:
00048   vtkTypeMacro(vtkHyperTreeGridAlgorithm,vtkAlgorithm);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   vtkHyperTreeGrid *GetOutput();
00054   vtkHyperTreeGrid *GetOutput(int);
00055   virtual void SetOutput(vtkDataObject* d);
00057 
00059 
00060   virtual int ProcessRequest(vtkInformation*,
00061                              vtkInformationVector**,
00062                              vtkInformationVector*);
00064 
00065   // this method is not recommended for use, but lots of old style filters
00066   // use it
00067   vtkDataObject* GetInput();
00068   vtkDataObject *GetInput(int port);
00069   vtkHyperTreeGrid *GetHyperTreeGridInput(int port);
00070 
00072 
00075   void SetInputData(vtkDataObject *);
00076   void SetInputData(int, vtkDataObject*);
00078 
00080 
00083   void AddInputData(vtkDataObject *);
00084   void AddInputData(int, vtkDataObject*);
00086 
00087 protected:
00088   vtkHyperTreeGridAlgorithm();
00089   ~vtkHyperTreeGridAlgorithm();
00090 
00091   // convenience method
00092   virtual int RequestInformation(vtkInformation* request,
00093                                  vtkInformationVector** inputVector,
00094                                  vtkInformationVector* outputVector);
00095 
00097 
00099   virtual int RequestData(vtkInformation* request,
00100                           vtkInformationVector** inputVector,
00101                           vtkInformationVector* outputVector);
00103 
00105 
00107   virtual int RequestUpdateExtent(vtkInformation*,
00108                                   vtkInformationVector**,
00109                                   vtkInformationVector*);
00111 
00112   // see algorithm for more info
00113   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00114   virtual int FillInputPortInformation(int port, vtkInformation* info);
00115 
00116 private:
00117   vtkHyperTreeGridAlgorithm(const vtkHyperTreeGridAlgorithm&);  // Not implemented.
00118   void operator=(const vtkHyperTreeGridAlgorithm&);  // Not implemented.
00119 };
00120 
00121 #endif