VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkImageGradient.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageGradient.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef __vtkImageGradient_h
32 #define __vtkImageGradient_h
33 
34 #include "vtkImagingGeneralModule.h" // For export macro
36 
37 class VTKIMAGINGGENERAL_EXPORT vtkImageGradient : public vtkThreadedImageAlgorithm
38 {
39 public:
40  static vtkImageGradient *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetClampMacro(Dimensionality,int,2,3);
47  vtkGetMacro(Dimensionality,int);
49 
51 
55  vtkSetMacro(HandleBoundaries, int);
56  vtkGetMacro(HandleBoundaries, int);
57  vtkBooleanMacro(HandleBoundaries, int);
59 
60 protected:
63 
64  int HandleBoundaries;
66 
67  virtual int RequestInformation (vtkInformation*,
68  vtkInformationVector**,
69  vtkInformationVector*);
70  virtual int RequestUpdateExtent(vtkInformation*,
71  vtkInformationVector**,
72  vtkInformationVector*);
73  virtual int RequestData(vtkInformation*,
74  vtkInformationVector**,
75  vtkInformationVector*);
76 
77  void ThreadedRequestData(vtkInformation*,
78  vtkInformationVector**,
79  vtkInformationVector*,
80  vtkImageData*** inData,
81  vtkImageData** outData,
82  int outExt[6],
83  int threadId);
84 private:
85  vtkImageGradient(const vtkImageGradient&); // Not implemented.
86  void operator=(const vtkImageGradient&); // Not implemented.
87 };
88 
89 #endif
90 
91 
92 
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Generic filter that has one input..
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Computes the gradient vector.
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkAlgorithm * New()