VTK  9.3.20240425
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
107#ifndef vtkShepardMethod_h
108#define vtkShepardMethod_h
109
110#include "vtkImageAlgorithm.h"
111#include "vtkImagingHybridModule.h" // For export macro
112
113VTK_ABI_NAMESPACE_BEGIN
114class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
115{
116public:
118
122 void PrintSelf(ostream& os, vtkIndent indent) override;
124
131
135 void SetSampleDimensions(int i, int j, int k);
136
140 void SetSampleDimensions(int dim[3]);
141
143
146 vtkGetVectorMacro(SampleDimensions, int, 3);
148
150
157 vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
158 vtkGetMacro(MaximumDistance, double);
160
162
167 vtkSetMacro(NullValue, double);
168 vtkGetMacro(NullValue, double);
170
172
178 vtkSetVector6Macro(ModelBounds, double);
179 vtkGetVectorMacro(ModelBounds, double, 6);
181
183
187 vtkSetClampMacro(PowerParameter, double, 0.001, 100);
188 vtkGetMacro(PowerParameter, double);
190
194 double ComputeModelBounds(double origin[3], double spacing[3]);
195
196protected:
198 ~vtkShepardMethod() override = default;
199
201
202 // see vtkAlgorithm for details
204 vtkInformationVector* outputVector) override;
205
206 // see algorithm for more info
207 int FillInputPortInformation(int port, vtkInformation* info) override;
208
209 int SampleDimensions[3];
211 double ModelBounds[6];
212 double NullValue;
214
215private:
216 vtkShepardMethod(const vtkShepardMethod&) = delete;
217 void operator=(const vtkShepardMethod&) = delete;
218};
219
220VTK_ABI_NAMESPACE_END
221#endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:108
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.