76 #ifndef vtkGaussianSplatter_h
77 #define vtkGaussianSplatter_h
80 #include "vtkImagingHybridModule.h"
84 #define VTK_ACCUMULATION_MODE_MIN 0
85 #define VTK_ACCUMULATION_MODE_MAX 1
86 #define VTK_ACCUMULATION_MODE_SUM 2
88 VTK_ABI_NAMESPACE_BEGIN
91 class vtkGaussianSplatterAlgorithm;
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);
217 vtkGetMacro(AccumulationMode,
int);
229 vtkSetMacro(NullValue,
double);
230 vtkGetMacro(NullValue,
double);
249 friend class vtkGaussianSplatterAlgorithm;
252 return (this->*Sample)(x);
256 double v = (this->*SampleFactor)(this->S) *
257 std::exp(
static_cast<double>(this->ExponentFactor * (dist2) / (this->Radius2)));
260 if (!this->Visited[idx])
262 this->Visited[idx] = 1;
267 switch (this->AccumulationMode)
297 int SampleDimensions[3];
300 double ModelBounds[6];
319 double Eccentricity2;
325 double SplatDistance[3];
332 VTK_ABI_NAMESPACE_END
abstract superclass for composite (multi-block or AMR) datasets
abstract class to specify dataset behavior
dynamic, self-adjusting array of double
splat points into a volume with an elliptical, Gaussian distribution
static vtkGaussianSplatter * New()
Construct object with dimensions=(50,50,50); automatic computation of bounds; a splat radius of 0....
double EccentricGaussian(double x[3])
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double SamplePoint(double x[3])
Provide access to templated helper class.
double PositionSampling(double)
const char * GetAccumulationModeAsString()
Specify the scalar accumulation mode.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetAccumulationModeToSum()
Specify the scalar accumulation mode.
void Cap(vtkDoubleArray *s)
vtkTypeBool ScalarWarping
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
double ScalarSampling(double s)
void SetAccumulationModeToMax()
Specify the scalar accumulation mode.
void ComputeModelBounds(vtkDataSet *input, vtkImageData *output, vtkInformation *outInfo)
Compute the size of the sample bounding box automatically from the input data.
void ComputeModelBounds(vtkCompositeDataSet *input, vtkImageData *output, vtkInformation *outInfo)
Compute the size of the sample bounding box automatically from the input data.
vtkTypeBool NormalWarping
~vtkGaussianSplatter() override=default
double Gaussian(double x[3])
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
void SetScalar(vtkIdType idx, double dist2, double *sPtr)
Provide access to templated helper class.
void SetSampleDimensions(int dim[3])
Set / get the dimensions of the sampling structured point set.
void SetAccumulationModeToMin()
Specify the scalar accumulation mode.
void SetSampleDimensions(int i, int j, int k)
Set / get the dimensions of the sampling structured point set.
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
a simple class to control print indentation
#define VTK_ACCUMULATION_MODE_SUM
#define VTK_ACCUMULATION_MODE_MIN
#define VTK_ACCUMULATION_MODE_MAX