VTK: Rendering/Volume/vtkFiniteDifferenceGradientEstimator.h Source File

| VTK 9.3.1

vtkFiniteDifferenceGradientEstimator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3
27 #ifndef vtkFiniteDifferenceGradientEstimator_h
28 #define vtkFiniteDifferenceGradientEstimator_h
29
30 #include "vtkEncodedGradientEstimator.h"
31 #include "vtkRenderingVolumeModule.h" // For export macro
32
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKRENDERINGVOLUME_EXPORT vtkFiniteDifferenceGradientEstimator
35 : public vtkEncodedGradientEstimator
36 {
37 public:
38 vtkTypeMacro(vtkFiniteDifferenceGradientEstimator, vtkEncodedGradientEstimator);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45 static vtkFiniteDifferenceGradientEstimator* New();
46
48
52 vtkSetMacro(SampleSpacingInVoxels, int);
53 vtkGetMacro(SampleSpacingInVoxels, int);
55
56 // The sample spacing between samples taken for the normal estimation
57 int SampleSpacingInVoxels;
58
59 protected:
60 vtkFiniteDifferenceGradientEstimator();
61 ~vtkFiniteDifferenceGradientEstimator() override;
62
66 void UpdateNormals() override;
67
68 private:
69 vtkFiniteDifferenceGradientEstimator(const vtkFiniteDifferenceGradientEstimator&) = delete;
70 void operator=(const vtkFiniteDifferenceGradientEstimator&) = delete;
71 };
72
73 VTK_ABI_NAMESPACE_END
74 #endif
vtkEncodedGradientEstimator
Superclass for gradient estimation.
Definition: vtkEncodedGradientEstimator.h:35
vtkFiniteDifferenceGradientEstimator
Use finite differences to estimate gradient.
Definition: vtkFiniteDifferenceGradientEstimator.h:36
vtkFiniteDifferenceGradientEstimator::vtkFiniteDifferenceGradientEstimator
vtkFiniteDifferenceGradientEstimator()
vtkFiniteDifferenceGradientEstimator::~vtkFiniteDifferenceGradientEstimator
~vtkFiniteDifferenceGradientEstimator() override
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:53
vtkFiniteDifferenceGradientEstimator::UpdateNormals
void UpdateNormals() override
Recompute the encoded normals and gradient magnitudes.
vtkFiniteDifferenceGradientEstimator::New
static vtkFiniteDifferenceGradientEstimator * New()
Construct a vtkFiniteDifferenceGradientEstimator with a SampleSpacingInVoxels of 1.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkEncodedGradientEstimator.h