79 #ifndef vtkGaussianSplatter_h
80 #define vtkGaussianSplatter_h
83 #include "vtkImagingHybridModule.h"
87 #define VTK_ACCUMULATION_MODE_MIN 0
88 #define VTK_ACCUMULATION_MODE_MAX 1
89 #define VTK_ACCUMULATION_MODE_SUM 2
93 class vtkGaussianSplatterAlgorithm;
113 void SetSampleDimensions(
int i,
int j,
int k);
114 void SetSampleDimensions(
int dim[3]);
115 vtkGetVectorMacro(SampleDimensions,
int, 3);
125 vtkSetVector6Macro(ModelBounds,
double);
126 vtkGetVectorMacro(ModelBounds,
double, 6);
135 vtkSetClampMacro(Radius,
double, 0.0, 1.0);
136 vtkGetMacro(Radius,
double);
146 vtkGetMacro(ScaleFactor,
double);
155 vtkSetMacro(ExponentFactor,
double);
156 vtkGetMacro(ExponentFactor,
double);
179 vtkGetMacro(Eccentricity,
double);
207 vtkSetMacro(CapValue,
double);
208 vtkGetMacro(CapValue,
double);
219 vtkGetMacro(AccumulationMode,
int);
223 const char* GetAccumulationModeAsString();
231 vtkSetMacro(NullValue,
double);
232 vtkGetMacro(NullValue,
double);
241 void ComputeModelBounds(
251 friend class vtkGaussianSplatterAlgorithm;
254 return (this->*Sample)(x);
258 double v = (this->*SampleFactor)(this->S) *
259 std::exp(static_cast<double>(this->ExponentFactor * (dist2) / (this->Radius2)));
262 if (!this->Visited[idx])
264 this->Visited[idx] = 1;
269 switch (this->AccumulationMode)
299 int SampleDimensions[3];
302 double ModelBounds[6];
311 double Gaussian(
double x[3]);
312 double EccentricGaussian(
double x[3]);
321 double Eccentricity2;
327 double SplatDistance[3];
vtkTypeBool ScalarWarping
void SetAccumulationModeToMin()
Specify the scalar accumulation mode.
abstract class to specify dataset behavior
#define VTK_ACCUMULATION_MODE_MAX
void SetAccumulationModeToMax()
Specify the scalar accumulation mode.
splat points into a volume with an elliptical, Gaussian distribution
dynamic, self-adjusting array of double
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
topologically and geometrically regular array of data
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
double PositionSampling(double)
#define VTK_ACCUMULATION_MODE_SUM
void SetAccumulationModeToSum()
Specify the scalar accumulation mode.
void SetScalar(vtkIdType idx, double dist2, double *sPtr)
Provide access to templated helper class.
#define VTK_ACCUMULATION_MODE_MIN
double SamplePoint(double x[3])
Provide access to templated helper class.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
Generic algorithm superclass for image algs.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool NormalWarping
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
double ScalarSampling(double s)