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
91class 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);
154 vtkGetMacro(ExponentFactor,
double);
164 vtkGetMacro(NormalWarping,
int);
177 vtkGetMacro(Eccentricity,
double);
185 vtkGetMacro(ScalarWarping,
int);
196 vtkGetMacro(Capping,
int);
206 vtkGetMacro(CapValue,
double);
216 vtkSetClampMacro(AccumulationMode,
int,
218 vtkGetMacro(AccumulationMode,
int);
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];
319 {
return this->ScaleFactor * s;}
321 {
return this->ScaleFactor;}
328 double Eccentricity2;
334 double SplatDistance[3];
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
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
double EccentricGaussian(double x[3])
double SamplePoint(double x[3])
static vtkGaussianSplatter * New()
Construct object with dimensions=(50,50,50); automatic computation of bounds; a splat radius of 0....
double PositionSampling(double)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called in response to a REQUEST_DATA request from the executive.
void SetAccumulationModeToSum()
void Cap(vtkDoubleArray *s)
double ScalarSampling(double s)
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetScalar(int idx, double dist2, double *sPtr)
void SetAccumulationModeToMax()
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)
double Gaussian(double x[3])
void SetSampleDimensions(int dim[3])
void SetAccumulationModeToMin()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetSampleDimensions(int i, int j, int k)
Set / get the dimensions of the sampling structured point set.
const char * GetAccumulationModeAsString()
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.