VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Geometry/vtkImageDataToUniformGrid.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkImageDataToUniformGrid.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 =========================================================================*/
00028 #ifndef vtkImageDataToUniformGrid_h
00029 #define vtkImageDataToUniformGrid_h
00030 
00031 #include "vtkFiltersGeometryModule.h" // For export macro
00032 #include "vtkDataObjectAlgorithm.h"
00033 
00034 class vtkDataArray;
00035 class vtkFieldData;
00036 class vtkImageData;
00037 class vtkUniformGrid;
00038 
00039 class VTKFILTERSGEOMETRY_EXPORT vtkImageDataToUniformGrid
00040 : public vtkDataObjectAlgorithm
00041 {
00042  public:
00043   static vtkImageDataToUniformGrid *New();
00044   vtkTypeMacro(vtkImageDataToUniformGrid,vtkDataObjectAlgorithm);
00045   void PrintSelf(ostream &os, vtkIndent indent);
00046 
00048 
00051   vtkSetClampMacro(Reverse, int, 0, 1);
00052   vtkGetMacro(Reverse, int);
00053   vtkBooleanMacro(Reverse, int);
00055 
00056 protected:
00057   vtkImageDataToUniformGrid();
00058   ~vtkImageDataToUniformGrid();
00059 
00060   virtual int RequestData(vtkInformation *req,
00061                           vtkInformationVector **inV,
00062                           vtkInformationVector *outV);
00063   virtual int RequestDataObject(vtkInformation *req,
00064                                 vtkInformationVector **inV,
00065                                 vtkInformationVector *outV);
00066 
00067   virtual int FillInputPortInformation(int port, vtkInformation* info);
00068   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00069 
00070   virtual int Process(vtkImageData* input, int association, const char* arrayName,
00071                       vtkUniformGrid* output);
00072 
00073 private:
00074   vtkImageDataToUniformGrid(const vtkImageDataToUniformGrid&);  // Not implemented.
00075   void operator=(const vtkImageDataToUniformGrid&);  // Not implemented.
00076 
00077   int Reverse;
00078 };
00079 
00080 #endif