77#ifndef vtkPointDensityFilter_h
78#define vtkPointDensityFilter_h
80#include "vtkFiltersPointsModule.h"
83#define VTK_DENSITY_ESTIMATE_FIXED_RADIUS 0
84#define VTK_DENSITY_ESTIMATE_RELATIVE_RADIUS 1
86#define VTK_DENSITY_FORM_VOLUME_NORM 0
87#define VTK_DENSITY_FORM_NPTS 1
113 vtkGetVectorMacro(SampleDimensions,
int, 3);
123 vtkSetVector6Macro(ModelBounds,
double);
124 vtkGetVectorMacro(ModelBounds,
double, 6);
134 vtkSetClampMacro(AdjustDistance,
double, -1.0, 1.0);
135 vtkGetMacro(AdjustDistance,
double);
146 vtkGetMacro(DensityEstimate,
int);
165 vtkGetMacro(DensityForm,
int);
178 vtkGetMacro(Radius,
double);
190 vtkGetMacro(RelativeRadius,
double);
198 vtkSetMacro(ScalarWeighting,
bool);
199 vtkGetMacro(ScalarWeighting,
bool);
200 vtkBooleanMacro(ScalarWeighting,
bool);
211 vtkSetMacro(ComputeGradient,
bool);
212 vtkGetMacro(ComputeGradient,
bool);
213 vtkBooleanMacro(ComputeGradient,
bool);
242 int SampleDimensions[3];
243 double ModelBounds[6];
245 double Origin[3], Spacing[3];
abstract class to quickly locate points in 3-space
abstract class to specify dataset behavior
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
a simple class to control print indentation
produce density field from input point cloud
void ComputeModelBounds(vtkDataSet *input, vtkImageData *output, vtkInformation *outInfo)
void SetDensityEstimateToFixedRadius()
Specify the method to estimate point density.
int FillInputPortInformation(int port, vtkInformation *info) override
These method should be reimplemented by subclasses that have more than a single input or single outpu...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetSampleDimensions(int dim[3])
Set / get the dimensions of the sampling volume.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
void SetSampleDimensions(int i, int j, int k)
Set / get the dimensions of the sampling volume.
vtkAbstractPointLocator * Locator
void SetDensityFormToVolumeNormalized()
Specify the form by which the density is expressed.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
static vtkPointDensityFilter * New()
Standard methods for instantiating, obtaining type information, and printing information.
void SetDensityFormToNumberOfPoints()
Specify the form by which the density is expressed.
void SetDensityEstimateToRelativeRadius()
Specify the method to estimate point density.
const char * GetDensityFormAsString()
Specify the form by which the density is expressed.
~vtkPointDensityFilter() override
const char * GetDensityEstimateAsString()
Specify the method to estimate point density.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
FunctionClass
This enum is used to classify the behavior of the function gradient.
#define VTK_DENSITY_ESTIMATE_RELATIVE_RADIUS
#define VTK_DENSITY_FORM_VOLUME_NORM
#define VTK_DENSITY_FORM_NPTS
#define VTK_DENSITY_ESTIMATE_FIXED_RADIUS