79 #ifndef vtkGaussianSplatter_h
80 #define vtkGaussianSplatter_h
82 #include "vtkImagingHybridModule.h"
85 #define VTK_ACCUMULATION_MODE_MIN 0
86 #define VTK_ACCUMULATION_MODE_MAX 1
87 #define VTK_ACCUMULATION_MODE_SUM 2
91 class vtkGaussianSplatterAlgorithm;
111 void SetSampleDimensions(
int i,
int j,
int k);
112 void SetSampleDimensions(
int dim[3]);
113 vtkGetVectorMacro(SampleDimensions,
int,3);
123 vtkSetVector6Macro(ModelBounds,
double);
124 vtkGetVectorMacro(ModelBounds,
double,6);
133 vtkSetClampMacro(Radius,
double,0.0,1.0);
134 vtkGetMacro(Radius,
double);
144 vtkGetMacro(ScaleFactor,
double);
153 vtkSetMacro(ExponentFactor,
double);
154 vtkGetMacro(ExponentFactor,
double);
177 vtkGetMacro(Eccentricity,
double);
205 vtkSetMacro(CapValue,
double);
206 vtkGetMacro(CapValue,
double);
216 vtkSetClampMacro(AccumulationMode,
int,
218 vtkGetMacro(AccumulationMode,
int);
225 const char *GetAccumulationModeAsString();
233 vtkSetMacro(NullValue,
double);
234 vtkGetMacro(NullValue,
double);
254 friend class vtkGaussianSplatterAlgorithm;
256 {
return (this->*Sample)(x);}
259 double v = (this->*SampleFactor)(this->S) * exp(static_cast<double>
260 (this->ExponentFactor*(dist2)/(this->Radius2)));
263 if ( ! this->Visited[idx] )
265 this->Visited[idx] = 1;
270 switch (this->AccumulationMode)
304 int SampleDimensions[3];
307 double ModelBounds[6];
316 double Gaussian(
double x[3]);
317 double EccentricGaussian(
double x[3]);
319 {
return this->ScaleFactor * s;}
321 {
return this->ScaleFactor;}
328 double Eccentricity2;
334 double SplatDistance[3];