VTK
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 =========================================================================*/
80 #ifndef vtkShepardMethod_h
81 #define vtkShepardMethod_h
82 
83 #include "vtkImagingHybridModule.h" // For export macro
84 #include "vtkImageAlgorithm.h"
85 
86 class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm
87 {
88 public:
90 
94  void PrintSelf(ostream& os, vtkIndent indent) override;
96 
103 
107  void SetSampleDimensions(int i, int j, int k);
108 
112  void SetSampleDimensions(int dim[3]);
113 
115 
118  vtkGetVectorMacro(SampleDimensions,int,3);
120 
122 
129  vtkSetClampMacro(MaximumDistance,double,0.0,1.0);
130  vtkGetMacro(MaximumDistance,double);
132 
134 
139  vtkSetMacro(NullValue,double);
140  vtkGetMacro(NullValue,double);
142 
144 
150  vtkSetVector6Macro(ModelBounds,double);
151  vtkGetVectorMacro(ModelBounds,double,6);
153 
155 
159  vtkSetClampMacro(PowerParameter,double,0.001,100);
160  vtkGetMacro(PowerParameter,double);
162 
166  double ComputeModelBounds(double origin[3], double ar[3]);
167 
168 protected:
170  ~vtkShepardMethod() override {}
171 
174  vtkInformationVector *) override;
175 
176  // see vtkAlgorithm for details
178  vtkInformationVector** inputVector,
179  vtkInformationVector* outputVector) override;
180 
181  // see algorithm for more info
183 
184  int SampleDimensions[3];
186  double ModelBounds[6];
187  double NullValue;
189 
190 private:
191  vtkShepardMethod(const vtkShepardMethod&) = delete;
192  void operator=(const vtkShepardMethod&) = delete;
193 };
194 
195 #endif
vtkShepardMethod
interpolate points and associated scalars onto volume using the method of Shepard
Definition: vtkShepardMethod.h:87
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:42
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:41
vtkShepardMethod::~vtkShepardMethod
~vtkShepardMethod() override
Definition: vtkShepardMethod.h:170
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkShepardMethod::ComputeModelBounds
double ComputeModelBounds(double origin[3], double ar[3])
Compute ModelBounds from the input geometry.
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
Methods invoked by print to print information about the object including superclasses.
vtkShepardMethod::MaximumDistance
double MaximumDistance
Definition: vtkShepardMethod.h:185
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkShepardMethod::PowerParameter
double PowerParameter
Definition: vtkShepardMethod.h:188
vtkShepardMethod::NullValue
double NullValue
Definition: vtkShepardMethod.h:187
vtkShepardMethod::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
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...