VTK  9.2.5
vtkFiniteDifferenceGradientEstimator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFiniteDifferenceGradientEstimator.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 =========================================================================*/
15 
58 #ifndef vtkFiniteDifferenceGradientEstimator_h
59 #define vtkFiniteDifferenceGradientEstimator_h
60 
62 #include "vtkRenderingVolumeModule.h" // For export macro
63 
64 class VTKRENDERINGVOLUME_EXPORT vtkFiniteDifferenceGradientEstimator
66 {
67 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
76 
78 
82  vtkSetMacro(SampleSpacingInVoxels, int);
83  vtkGetMacro(SampleSpacingInVoxels, int);
85 
86  // The sample spacing between samples taken for the normal estimation
88 
89 protected:
92 
96  void UpdateNormals(void) override;
97 
98 private:
100  void operator=(const vtkFiniteDifferenceGradientEstimator&) = delete;
101 };
102 
103 #endif
Superclass for gradient estimation.
Use finite differences to estimate gradient.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFiniteDifferenceGradientEstimator * New()
Construct a vtkFiniteDifferenceGradientEstimator with a SampleSpacingInVoxels of 1.
void UpdateNormals(void) override
Recompute the encoded normals and gradient magnitudes.
a simple class to control print indentation
Definition: vtkIndent.h:119