73 #ifndef __vtkGaussianSplatter_h
74 #define __vtkGaussianSplatter_h
76 #include "vtkImagingHybridModule.h"
79 #define VTK_ACCUMULATION_MODE_MIN 0
80 #define VTK_ACCUMULATION_MODE_MAX 1
81 #define VTK_ACCUMULATION_MODE_SUM 2
89 void PrintSelf(ostream& os, vtkIndent indent);
99 void SetSampleDimensions(
int i,
int j,
int k);
100 void SetSampleDimensions(
int dim[3]);
101 vtkGetVectorMacro(SampleDimensions,
int,3);
109 vtkSetVector6Macro(ModelBounds,
double);
110 vtkGetVectorMacro(ModelBounds,
double,6);
117 vtkSetClampMacro(Radius,
double,0.0,1.0);
118 vtkGetMacro(Radius,
double);
125 vtkSetClampMacro(ScaleFactor,
double,0.0,VTK_DOUBLE_MAX);
126 vtkGetMacro(ScaleFactor,
double);
132 vtkSetMacro(ExponentFactor,
double);
133 vtkGetMacro(ExponentFactor,
double);
140 vtkSetMacro(NormalWarping,
int);
141 vtkGetMacro(NormalWarping,
int);
142 vtkBooleanMacro(NormalWarping,
int);
151 vtkSetClampMacro(Eccentricity,
double,0.001,VTK_DOUBLE_MAX);
152 vtkGetMacro(Eccentricity,
double);
157 vtkSetMacro(ScalarWarping,
int);
158 vtkGetMacro(ScalarWarping,
int);
159 vtkBooleanMacro(ScalarWarping,
int);
166 vtkSetMacro(Capping,
int);
167 vtkGetMacro(Capping,
int);
168 vtkBooleanMacro(Capping,
int);
174 vtkSetMacro(CapValue,
double);
175 vtkGetMacro(CapValue,
double);
183 vtkSetClampMacro(AccumulationMode,
int,
185 vtkGetMacro(AccumulationMode,
int);
192 const char *GetAccumulationModeAsString();
199 vtkSetMacro(NullValue,
double);
200 vtkGetMacro(NullValue,
double);
206 void ComputeModelBounds(vtkDataSet *input, vtkImageData *output,
207 vtkInformation *outInfo);
216 vtkInformationVector **,
217 vtkInformationVector *);
219 vtkInformationVector **,
220 vtkInformationVector *);
221 void Cap(vtkDoubleArray *s);
223 int SampleDimensions[3];
226 double ModelBounds[6];
235 double Gaussian(
double x[3]);
236 double EccentricGaussian(
double x[3]);
238 {
return this->ScaleFactor * s;}
240 {
return this->ScaleFactor;}
241 void SetScalar(
int idx,
double dist2, vtkDoubleArray *newScalars);
249 double Eccentricity2;
255 double SplatDistance[3];
void SetAccumulationModeToMin()
#define VTK_ACCUMULATION_MODE_MAX
void SetAccumulationModeToMax()
splat points into a volume with an elliptical, Gaussian distribution
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
double PositionSampling(double)
#define VTK_ACCUMULATION_MODE_SUM
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetAccumulationModeToSum()
#define VTK_ACCUMULATION_MODE_MIN
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
double ScalarSampling(double s)