VTK  9.1.0
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 =========================================================================*/
116 #ifndef vtkShepardMethod_h
117 #define vtkShepardMethod_h
118 
119 #include "vtkImageAlgorithm.h"
120 #include "vtkImagingHybridModule.h" // For export macro
121 
122 class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
123 {
124 public:
126 
130  void PrintSelf(ostream& os, vtkIndent indent) override;
132 
139 
143  void SetSampleDimensions(int i, int j, int k);
144 
148  void SetSampleDimensions(int dim[3]);
149 
151 
154  vtkGetVectorMacro(SampleDimensions, int, 3);
156 
158 
165  vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
166  vtkGetMacro(MaximumDistance, double);
168 
170 
175  vtkSetMacro(NullValue, double);
176  vtkGetMacro(NullValue, double);
178 
180 
186  vtkSetVector6Macro(ModelBounds, double);
187  vtkGetVectorMacro(ModelBounds, double, 6);
189 
191 
195  vtkSetClampMacro(PowerParameter, double, 0.001, 100);
196  vtkGetMacro(PowerParameter, double);
198 
202  double ComputeModelBounds(double origin[3], double spacing[3]);
203 
204 protected:
206  ~vtkShepardMethod() override = default;
207 
209 
210  // see vtkAlgorithm for details
211  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
212  vtkInformationVector* outputVector) override;
213 
214  // see algorithm for more info
216 
217  int SampleDimensions[3];
219  double ModelBounds[6];
220  double NullValue;
222 
223 private:
224  vtkShepardMethod(const vtkShepardMethod&) = delete;
225  void operator=(const vtkShepardMethod&) = delete;
226 };
227 
228 #endif
vtkShepardMethod
interpolate points and associated scalars onto volume using the method of Shepard
Definition: vtkShepardMethod.h:123
vtkShepardMethod::New
static vtkShepardMethod * New()
Construct with sample dimensions=(50,50,50) and so that model bounds are automatically computed from ...
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkShepardMethod::vtkShepardMethod
vtkShepardMethod()
vtkImageAlgorithm.h
vtkShepardMethod::SetSampleDimensions
void SetSampleDimensions(int i, int j, int k)
Set the i-j-k dimensions on which to interpolate the input points.
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:57
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkShepardMethod::SetSampleDimensions
void SetSampleDimensions(int dim[3])
Set the i-j-k dimensions on which to sample the input points.
vtkShepardMethod::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
vtkShepardMethod::MaximumDistance
double MaximumDistance
Definition: vtkShepardMethod.h:218
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkShepardMethod::~vtkShepardMethod
~vtkShepardMethod() override=default
vtkShepardMethod::PowerParameter
double PowerParameter
Definition: vtkShepardMethod.h:221
vtkShepardMethod::NullValue
double NullValue
Definition: vtkShepardMethod.h:220
vtkX3D::spacing
@ spacing
Definition: vtkX3D.h:487
vtkShepardMethod::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkShepardMethod::ComputeModelBounds
double ComputeModelBounds(double origin[3], double spacing[3])
Compute ModelBounds from the input geometry.
vtkShepardMethod::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
vtkShepardMethod::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...