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
77#ifndef vtkShepardMethod_h
78#define vtkShepardMethod_h
79
80#include "vtkImageAlgorithm.h"
81#include "vtkImagingHybridModule.h" // For export macro
82
83VTK_ABI_NAMESPACE_BEGIN
84class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
85{
86public:
88
92 void PrintSelf(ostream& os, vtkIndent indent) override;
94
101
105 void SetSampleDimensions(int i, int j, int k);
106
110 void SetSampleDimensions(int dim[3]);
111
113
116 vtkGetVectorMacro(SampleDimensions, int, 3);
118
120
127 vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
128 vtkGetMacro(MaximumDistance, double);
130
132
137 vtkSetMacro(NullValue, double);
138 vtkGetMacro(NullValue, double);
140
142
148 vtkSetVector6Macro(ModelBounds, double);
149 vtkGetVectorMacro(ModelBounds, double, 6);
151
153
157 vtkSetClampMacro(PowerParameter, double, 0.001, 100);
158 vtkGetMacro(PowerParameter, double);
160
164 double ComputeModelBounds(double origin[3], double spacing[3]);
165
166protected:
168 ~vtkShepardMethod() override = default;
169
171
172 // see vtkAlgorithm for details
174 vtkInformationVector* outputVector) override;
175
176 // see algorithm for more info
177 int FillInputPortInformation(int port, vtkInformation* info) override;
178
179 int SampleDimensions[3];
181 double ModelBounds[6];
182 double NullValue;
184
185private:
186 vtkShepardMethod(const vtkShepardMethod&) = delete;
187 void operator=(const vtkShepardMethod&) = delete;
188};
189
190VTK_ABI_NAMESPACE_END
191#endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition vtkIndent.h:38
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.