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 =========================================================================*/
42 #ifndef vtkShepardMethod_h
43 #define vtkShepardMethod_h
44 
45 #include "vtkImagingHybridModule.h" // For export macro
46 #include "vtkImageAlgorithm.h"
47 
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
57  static vtkShepardMethod *New();
58 
60  double ComputeModelBounds(double origin[3], double ar[3]);
61 
63 
64  vtkGetVectorMacro(SampleDimensions,int,3);
66 
68  void SetSampleDimensions(int i, int j, int k);
69 
71  void SetSampleDimensions(int dim[3]);
72 
74 
79  vtkSetClampMacro(MaximumDistance,double,0.0,1.0);
80  vtkGetMacro(MaximumDistance,double);
82 
84 
85  vtkSetVector6Macro(ModelBounds,double);
86  vtkGetVectorMacro(ModelBounds,double,6);
88 
90 
92  vtkSetMacro(NullValue,double);
93  vtkGetMacro(NullValue,double);
95 
96 protected:
99 
100  virtual int RequestInformation (vtkInformation *,
103 
104  // see vtkAlgorithm for details
105  virtual int RequestData(vtkInformation *request,
106  vtkInformationVector** inputVector,
107  vtkInformationVector* outputVector);
108 
109  // see algorithm for more info
111 
112  int SampleDimensions[3];
114  double ModelBounds[6];
115  double NullValue;
116 private:
117  vtkShepardMethod(const vtkShepardMethod&); // Not implemented.
118  void operator=(const vtkShepardMethod&); // Not implemented.
119 };
120 
121 #endif
122 
123 
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTKIMAGINGHYBRID_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
sample unstructured points onto structured points using the method of Shepard