vtkImplicitVolume.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00056 #ifndef __vtkImplicitVolume_h
00057 #define __vtkImplicitVolume_h
00058
00059 #include "vtkImplicitFunction.h"
00060
00061 class vtkIdList;
00062 class vtkImageData;
00063
00064 class VTK_FILTERING_EXPORT vtkImplicitVolume : public vtkImplicitFunction
00065 {
00066 public:
00067 vtkTypeRevisionMacro(vtkImplicitVolume,vtkImplicitFunction);
00068 void PrintSelf(ostream& os, vtkIndent indent);
00069
00072 static vtkImplicitVolume *New();
00073
00077 unsigned long GetMTime();
00078
00080
00082 double EvaluateFunction(double x[3]);
00083 double EvaluateFunction(double x, double y, double z)
00084 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
00086
00088 void EvaluateGradient(double x[3], double n[3]);
00089
00091
00092 virtual void SetVolume(vtkImageData*);
00093 vtkGetObjectMacro(Volume,vtkImageData);
00095
00097
00098 vtkSetMacro(OutValue,double);
00099 vtkGetMacro(OutValue,double);
00101
00103
00104 vtkSetVector3Macro(OutGradient,double);
00105 vtkGetVector3Macro(OutGradient,double);
00107
00108 protected:
00109 vtkImplicitVolume();
00110 ~vtkImplicitVolume();
00111
00112 vtkImageData *Volume;
00113 double OutValue;
00114 double OutGradient[3];
00115
00116 vtkIdList *PointIds;
00117
00118 private:
00119 vtkImplicitVolume(const vtkImplicitVolume&);
00120 void operator=(const vtkImplicitVolume&);
00121 };
00122
00123 #endif
00124
00125