VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkShepardMethod.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00042 #ifndef __vtkShepardMethod_h 00043 #define __vtkShepardMethod_h 00044 00045 #include "vtkImagingHybridModule.h" // For export macro 00046 #include "vtkImageAlgorithm.h" 00047 00048 class VTKIMAGINGHYBRID_EXPORT vtkShepardMethod : public vtkImageAlgorithm 00049 { 00050 public: 00051 vtkTypeMacro(vtkShepardMethod,vtkImageAlgorithm); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00057 static vtkShepardMethod *New(); 00058 00060 double ComputeModelBounds(double origin[3], double ar[3]); 00061 00063 00064 vtkGetVectorMacro(SampleDimensions,int,3); 00066 00068 void SetSampleDimensions(int i, int j, int k); 00069 00071 void SetSampleDimensions(int dim[3]); 00072 00074 00079 vtkSetClampMacro(MaximumDistance,double,0.0,1.0); 00080 vtkGetMacro(MaximumDistance,double); 00082 00084 00085 vtkSetVector6Macro(ModelBounds,double); 00086 vtkGetVectorMacro(ModelBounds,double,6); 00088 00090 00092 vtkSetMacro(NullValue,double); 00093 vtkGetMacro(NullValue,double); 00095 00096 protected: 00097 vtkShepardMethod(); 00098 ~vtkShepardMethod() {} 00099 00100 virtual int RequestInformation (vtkInformation *, 00101 vtkInformationVector **, 00102 vtkInformationVector *); 00103 00104 // see vtkAlgorithm for details 00105 virtual int RequestData(vtkInformation *request, 00106 vtkInformationVector** inputVector, 00107 vtkInformationVector* outputVector); 00108 00109 // see algorithm for more info 00110 virtual int FillInputPortInformation(int port, vtkInformation* info); 00111 00112 int SampleDimensions[3]; 00113 double MaximumDistance; 00114 double ModelBounds[6]; 00115 double NullValue; 00116 private: 00117 vtkShepardMethod(const vtkShepardMethod&); // Not implemented. 00118 void operator=(const vtkShepardMethod&); // Not implemented. 00119 }; 00120 00121 #endif 00122 00123