VTK  9.2.5
vtkShepardMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkShepardMethod.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 =========================================================================*/
119 #ifndef vtkShepardMethod_h
120 #define vtkShepardMethod_h
121 
122 #include "vtkImageAlgorithm.h"
123 #include "vtkImagingHybridModule.h" // For export macro
124 
125 class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
126 {
127 public:
129 
133  void PrintSelf(ostream& os, vtkIndent indent) override;
135 
142 
146  void SetSampleDimensions(int i, int j, int k);
147 
151  void SetSampleDimensions(int dim[3]);
152 
154 
157  vtkGetVectorMacro(SampleDimensions, int, 3);
159 
161 
168  vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
169  vtkGetMacro(MaximumDistance, double);
171 
173 
178  vtkSetMacro(NullValue, double);
179  vtkGetMacro(NullValue, double);
181 
183 
189  vtkSetVector6Macro(ModelBounds, double);
190  vtkGetVectorMacro(ModelBounds, double, 6);
192 
194 
198  vtkSetClampMacro(PowerParameter, double, 0.001, 100);
199  vtkGetMacro(PowerParameter, double);
201 
205  double ComputeModelBounds(double origin[3], double spacing[3]);
206 
207 protected:
209  ~vtkShepardMethod() override = default;
210 
212 
213  // see vtkAlgorithm for details
214  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
215  vtkInformationVector* outputVector) override;
216 
217  // see algorithm for more info
219 
220  int SampleDimensions[3];
222  double ModelBounds[6];
223  double NullValue;
225 
226 private:
227  vtkShepardMethod(const vtkShepardMethod&) = delete;
228  void operator=(const vtkShepardMethod&) = delete;
229 };
230 
231 #endif
Generic algorithm superclass for image algs.
a simple class to control print indentation
Definition: vtkIndent.h:119
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
static vtkShepardMethod * New()
Construct with sample dimensions=(50,50,50) and so that model bounds are automatically computed from ...
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ spacing
Definition: vtkX3D.h:487