Go to the documentation of this file.
80 #ifndef vtkPointDensityFilter_h
81 #define vtkPointDensityFilter_h
83 #include "vtkFiltersPointsModule.h"
86 #define VTK_DENSITY_ESTIMATE_FIXED_RADIUS 0
87 #define VTK_DENSITY_ESTIMATE_RELATIVE_RADIUS 1
89 #define VTK_DENSITY_FORM_VOLUME_NORM 0
90 #define VTK_DENSITY_FORM_NPTS 1
116 vtkGetVectorMacro(SampleDimensions,
int,3);
126 vtkSetVector6Macro(ModelBounds,
double);
127 vtkGetVectorMacro(ModelBounds,
double,6);
137 vtkSetClampMacro(AdjustDistance,
double,-1.0,1.0);
138 vtkGetMacro(AdjustDistance,
double);
149 vtkGetMacro(DensityEstimate,
int);
165 vtkGetMacro(DensityForm,
int);
180 vtkGetMacro(Radius,
double);
192 vtkGetMacro(RelativeRadius,
double);
200 vtkSetMacro(ScalarWeighting,
bool);
201 vtkGetMacro(ScalarWeighting,
bool);
202 vtkBooleanMacro(ScalarWeighting,
bool);
213 vtkSetMacro(ComputeGradient,
bool);
214 vtkGetMacro(ComputeGradient,
bool);
215 vtkBooleanMacro(ComputeGradient,
bool);
244 int SampleDimensions[3];
245 double ModelBounds[6];
247 double Origin[3], Spacing[3];
#define VTK_DENSITY_ESTIMATE_RELATIVE_RADIUS
void ComputeModelBounds(vtkDataSet *input, vtkImageData *output, vtkInformation *outInfo)
void SetSampleDimensions(int i, int j, int k)
Set / get the dimensions of the sampling volume.
#define VTK_DENSITY_FORM_VOLUME_NORM
#define VTK_DENSITY_FORM_NPTS
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
#define VTK_DENSITY_ESTIMATE_FIXED_RADIUS
Generic algorithm superclass for image algs.
vtkAbstractPointLocator * Locator
void SetDensityEstimateToFixedRadius()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
const char * GetDensityEstimateAsString()
produce density field from input point cloud
topologically and geometrically regular array of data
a simple class to control print indentation
~vtkPointDensityFilter() override
void SetDensityEstimateToRelativeRadius()
void SetDensityFormToNumberOfPoints()
abstract class to specify dataset behavior
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetDensityFormToVolumeNormalized()
abstract class to quickly locate points in 3-space
FunctionClass
This enum is used to classify the behavior of the function gradient.
const char * GetDensityFormAsString()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
static vtkPointDensityFilter * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetSampleDimensions(int dim[3])