VTK
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 
39 #ifndef vtkFiniteDifferenceGradientEstimator_h
40 #define vtkFiniteDifferenceGradientEstimator_h
41 
42 #include "vtkRenderingVolumeModule.h" // For export macro
44 
45 class VTKRENDERINGVOLUME_EXPORT vtkFiniteDifferenceGradientEstimator : public vtkEncodedGradientEstimator
46 {
47 public:
49  void PrintSelf( ostream& os, vtkIndent indent ) override;
50 
56 
58 
62  vtkSetMacro( SampleSpacingInVoxels, int );
63  vtkGetMacro( SampleSpacingInVoxels, int );
65 
66  // The sample spacing between samples taken for the normal estimation
68 
69 protected:
72 
76  void UpdateNormals( void ) override;
77 
78 private:
80  void operator=(const vtkFiniteDifferenceGradientEstimator&) = delete;
81 };
82 
83 
84 #endif
vtkFiniteDifferenceGradientEstimator::~vtkFiniteDifferenceGradientEstimator
~vtkFiniteDifferenceGradientEstimator() override
vtkFiniteDifferenceGradientEstimator::vtkFiniteDifferenceGradientEstimator
vtkFiniteDifferenceGradientEstimator()
vtkFiniteDifferenceGradientEstimator
Use finite differences to estimate gradient.
Definition: vtkFiniteDifferenceGradientEstimator.h:46
vtkFiniteDifferenceGradientEstimator::New
static vtkFiniteDifferenceGradientEstimator * New()
Construct a vtkFiniteDifferenceGradientEstimator with a SampleSpacingInVoxels of 1.
vtkEncodedGradientEstimator
Superclass for gradient estimation.
Definition: vtkEncodedGradientEstimator.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkEncodedGradientEstimator.h
vtkFiniteDifferenceGradientEstimator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFiniteDifferenceGradientEstimator::SampleSpacingInVoxels
int SampleSpacingInVoxels
Definition: vtkFiniteDifferenceGradientEstimator.h:63
vtkFiniteDifferenceGradientEstimator::UpdateNormals
void UpdateNormals(void) override
Recompute the encoded normals and gradient magnitudes.