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 "vtkImageAlgorithm.h"
46 
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
56  static vtkShepardMethod *New();
57 
59  double ComputeModelBounds(double origin[3], double ar[3]);
60 
62 
63  vtkGetVectorMacro(SampleDimensions,int,3);
65 
67  void SetSampleDimensions(int i, int j, int k);
68 
70  void SetSampleDimensions(int dim[3]);
71 
73 
78  vtkSetClampMacro(MaximumDistance,double,0.0,1.0);
79  vtkGetMacro(MaximumDistance,double);
81 
83 
84  vtkSetVector6Macro(ModelBounds,double);
85  vtkGetVectorMacro(ModelBounds,double,6);
87 
89 
91  vtkSetMacro(NullValue,double);
92  vtkGetMacro(NullValue,double);
94 
95 protected:
98 
99  virtual int RequestInformation (vtkInformation *,
102 
103  // see vtkAlgorithm for details
104  virtual int RequestData(vtkInformation *request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector);
107 
108  // see algorithm for more info
110 
111  int SampleDimensions[3];
113  double ModelBounds[6];
114  double NullValue;
115 private:
116  vtkShepardMethod(const vtkShepardMethod&); // Not implemented.
117  void operator=(const vtkShepardMethod&); // Not implemented.
118 };
119 
120 #endif
121 
122