VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Accelerators/Piston/vtkPistonAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPistonAlgorithm.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 vtkPistonAlgorithm_h
00036 #define vtkPistonAlgorithm_h
00037 
00038 #include "vtkAcceleratorsPistonModule.h" // For export macro
00039 #include "vtkAlgorithm.h"
00040 
00041 class vtkPistonDataObject;
00042 
00043 class VTKACCELERATORSPISTON_EXPORT vtkPistonAlgorithm : public vtkAlgorithm
00044 {
00045 public:
00046   static vtkPistonAlgorithm *New();
00047   vtkTypeMacro(vtkPistonAlgorithm,vtkAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00052   virtual int ProcessRequest(vtkInformation*,
00053                              vtkInformationVector**,
00054                              vtkInformationVector*);
00056 
00057 
00060   vtkPistonDataObject *GetPistonDataObjectOutput(int port);
00061 
00063 
00066   void SetInputData(int num, vtkDataObject *input);
00067   void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
00069 
00070 protected:
00071   vtkPistonAlgorithm();
00072   ~vtkPistonAlgorithm();
00073 
00075 
00076   virtual int FillInputPortInformation(int port, vtkInformation* info);
00077   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00079 
00081 
00082   virtual int RequestDataObject(vtkInformation* request,
00083                                 vtkInformationVector** inputVector,
00084                                 vtkInformationVector* outputVector);
00086 
00088 
00089   virtual int RequestInformation(vtkInformation* request,
00090                                  vtkInformationVector** inputVector,
00091                                  vtkInformationVector* outputVector);
00093 
00095 
00096   virtual int RequestUpdateExtent(vtkInformation*,
00097                                   vtkInformationVector**,
00098                                   vtkInformationVector*);
00100 
00102 
00103   virtual int RequestData(vtkInformation* request,
00104                           vtkInformationVector** inputVector,
00105                           vtkInformationVector* outputVector);
00107 
00109 
00112   virtual void PassBoundsForward(vtkPistonDataObject *id,
00113                                  vtkPistonDataObject *od);
00115 
00116 private:
00117   vtkPistonAlgorithm(const vtkPistonAlgorithm&);  // Not implemented.
00118   void operator=(const vtkPistonAlgorithm&);  // Not implemented.
00119 };
00120 
00121 #endif