OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / vtk / vtkImageDivergence.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkImageDivergence.h,v $
5   Language:  C++
6   Date:      $Date: 2002/01/22 15:32:21 $
7   Version:   $Revision: 1.29 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
13      This software is distributed WITHOUT ANY WARRANTY; without even 
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15      PURPOSE.  See the above copyright notice for more information.
16
17 =========================================================================*/
18 // .NAME vtkImageDivergence - Divergence of a vector field.
19 // .SECTION Description
20 // vtkImageDivergence takes a 3D vector field 
21 // and creates a scalar field which 
22 // which represents the rate of change of the vector field.
23 // The definition of Divergence:
24 // Given V = P(x,y,z), Q(x,y,z), R(x,y,z),
25 // Divergence = dP/dx + dQ/dy + dR/dz.
26
27 #ifndef __vtkImageDivergence_h
28 #define __vtkImageDivergence_h
29
30 #include "vtkImageToImageFilter.h"
31
32 class VTK_IMAGING_EXPORT vtkImageDivergence : public vtkImageToImageFilter
33 {
34 public:
35   static vtkImageDivergence *New();
36   vtkTypeRevisionMacro(vtkImageDivergence,vtkImageToImageFilter);
37
38 protected:
39   vtkImageDivergence() {};
40   ~vtkImageDivergence() {};
41
42   void ComputeInputUpdateExtent(int inExt[6], int outExt[6]);
43   void ExecuteInformation(vtkImageData *inData, vtkImageData *outData);
44   void ExecuteInformation(){this->vtkImageToImageFilter::ExecuteInformation();}
45   void ThreadedExecute(vtkImageData *inData, vtkImageData *outData,
46                        int ext[6], int id);
47
48 private:
49   vtkImageDivergence(const vtkImageDivergence&);  // Not implemented.
50   void operator=(const vtkImageDivergence&);  // Not implemented.
51 };
52
53 #endif
54
55
56