VTK
dox/Common/ExecutionModel/vtkUniformGridAMRAlgorithm.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003  Program:   Visualization Toolkit
00004  Module:    vtkUniformGridAMRAlgorithm.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  =========================================================================*/
00023 #ifndef VTKUNIFORMGRIDAMRALGORITHM_H_
00024 #define VTKUNIFORMGRIDAMRALGORITHM_H_
00025 
00026 #include "vtkCommonExecutionModelModule.h" // For export macro
00027 #include "vtkAlgorithm.h"
00028 
00029 class vtkUniformGridAMR;
00030 class vtkInformation;
00031 class vtkInformationVector;
00032 class vtkExecutive;
00033 
00034 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUniformGridAMRAlgorithm : public vtkAlgorithm
00035 {
00036   public:
00037     static vtkUniformGridAMRAlgorithm* New();
00038     vtkTypeMacro(vtkUniformGridAMRAlgorithm, vtkAlgorithm);
00039     void PrintSelf(ostream& os, vtkIndent indent);
00040 
00042 
00043     vtkUniformGridAMR* GetOutput();
00044     vtkUniformGridAMR* GetOutput(int);
00046 
00048 
00049     void SetInputData(vtkDataObject*);
00050     void SetInputData(int,vtkDataObject*);
00052 
00054 
00055     virtual int ProcessRequest(vtkInformation* request,
00056                                vtkInformationVector** inputVector,
00057                                vtkInformationVector* outputVector );
00059 
00060   protected:
00061     vtkUniformGridAMRAlgorithm();
00062     virtual ~vtkUniformGridAMRAlgorithm();
00063 
00065 
00067     virtual int RequestDataObject(vtkInformation*,
00068                                   vtkInformationVector**,
00069                                   vtkInformationVector*) {return 1;};
00071 
00073 
00075     virtual int RequestInformation(vtkInformation*,
00076                                    vtkInformationVector**,
00077                                    vtkInformationVector*) {return 1;};
00079 
00081 
00083     virtual int RequestData(vtkInformation*,
00084                             vtkInformationVector**,
00085                             vtkInformationVector*) {return 1;};
00087 
00089 
00091     virtual int RequestUpdateExtent(vtkInformation*,
00092                                     vtkInformationVector**,
00093                                     vtkInformationVector*) { return 1; };
00095 
00097     virtual vtkExecutive* CreateDefaultExecutive();
00098 
00100 
00101     virtual int FillOutputPortInformation(int port, vtkInformation* info);
00102     virtual int FillInputPortInformation(int port, vtkInformation* info);
00104 
00105     vtkDataObject *GetInput(int port);
00106 
00107   private:
00108     vtkUniformGridAMRAlgorithm(const vtkUniformGridAMRAlgorithm&); // Not implemented
00109     void operator=(const vtkUniformGridAMRAlgorithm&); // Not implemented
00110 };
00111 
00112 #endif /* VTKUNIFORMGRIDAMRALGORITHM_H_ */