VTK  9.0.20200705
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 =========================================================================*/
77 #ifndef vtkShepardMethod_h
78 #define vtkShepardMethod_h
79 
80 #include "vtkImageAlgorithm.h"
81 #include "vtkImagingHybridModule.h" // For export macro
82 
83 class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
84 {
85 public:
87 
91  void PrintSelf(ostream& os, vtkIndent indent) override;
93 
99  static vtkShepardMethod* New();
100 
104  void SetSampleDimensions(int i, int j, int k);
105 
109  void SetSampleDimensions(int dim[3]);
110 
112 
115  vtkGetVectorMacro(SampleDimensions, int, 3);
117 
119 
126  vtkSetClampMacro(MaximumDistance, double, 0.0, 1.0);
127  vtkGetMacro(MaximumDistance, double);
129 
131 
136  vtkSetMacro(NullValue, double);
137  vtkGetMacro(NullValue, double);
139 
141 
147  vtkSetVector6Macro(ModelBounds, double);
148  vtkGetVectorMacro(ModelBounds, double, 6);
150 
152 
156  vtkSetClampMacro(PowerParameter, double, 0.001, 100);
157  vtkGetMacro(PowerParameter, double);
159 
163  double ComputeModelBounds(double origin[3], double spacing[3]);
164 
165 protected:
167  ~vtkShepardMethod() override = default;
168 
170 
171  // see vtkAlgorithm for details
172  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
173  vtkInformationVector* outputVector) override;
174 
175  // see algorithm for more info
176  int FillInputPortInformation(int port, vtkInformation* info) override;
177 
178  int SampleDimensions[3];
180  double ModelBounds[6];
181  double NullValue;
183 
184 private:
185  vtkShepardMethod(const vtkShepardMethod&) = delete;
186  void operator=(const vtkShepardMethod&) = delete;
187 };
188 
189 #endif
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkShepardMethod
interpolate points and associated scalars onto volume using the method of Shepard
Definition: vtkShepardMethod.h:83
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition: vtkImageAlgorithm.h:37
vtkX3D::port
Definition: vtkX3D.h:453
vtkImageAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkShepardMethod::MaximumDistance
double MaximumDistance
Definition: vtkShepardMethod.h:179
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkShepardMethod::PowerParameter
double PowerParameter
Definition: vtkShepardMethod.h:182
vtkShepardMethod::NullValue
double NullValue
Definition: vtkShepardMethod.h:181
vtkX3D::spacing
Definition: vtkX3D.h:487
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkImageAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkImageAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.