VTK  9.3.0
vtkShepardMethod.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
68#ifndef vtkShepardMethod_h
69#define vtkShepardMethod_h
70
71#include "vtkImageAlgorithm.h"
72#include "vtkImagingHybridModule.h" // For export macro
73
74VTK_ABI_NAMESPACE_BEGIN
75class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
76{
77public:
79
83 void PrintSelf(ostream& os, vtkIndent indent) override;
85
92
96 void SetSampleDimensions(int i, int j, int k);
97
101 void SetSampleDimensions(int dim[3]);
102
104
107 vtkGetVectorMacro(SampleDimensions, int, 3);
109
111
118 vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
119 vtkGetMacro(MaximumDistance, double);
121
123
128 vtkSetMacro(NullValue, double);
129 vtkGetMacro(NullValue, double);
131
133
139 vtkSetVector6Macro(ModelBounds, double);
140 vtkGetVectorMacro(ModelBounds, double, 6);
142
144
148 vtkSetClampMacro(PowerParameter, double, 0.001, 100);
149 vtkGetMacro(PowerParameter, double);
151
155 double ComputeModelBounds(double origin[3], double spacing[3]);
156
157protected:
159 ~vtkShepardMethod() override = default;
160
162
163 // see vtkAlgorithm for details
165 vtkInformationVector* outputVector) override;
166
167 // see algorithm for more info
168 int FillInputPortInformation(int port, vtkInformation* info) override;
169
170 int SampleDimensions[3];
172 double ModelBounds[6];
173 double NullValue;
175
176private:
177 vtkShepardMethod(const vtkShepardMethod&) = delete;
178 void operator=(const vtkShepardMethod&) = delete;
179};
180
181VTK_ABI_NAMESPACE_END
182#endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
interpolate points and associated scalars onto volume using the method of Shepard
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
~vtkShepardMethod() override=default
void SetSampleDimensions(int dim[3])
Set the i-j-k dimensions on which to sample the input points.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
void SetSampleDimensions(int i, int j, int k)
Set the i-j-k dimensions on which to interpolate the input points.
double ComputeModelBounds(double origin[3], double spacing[3])
Compute ModelBounds from the input geometry.
static vtkShepardMethod * New()
Construct with sample dimensions=(50,50,50) and so that model bounds are automatically computed from ...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.