Go to the documentation of this file.
19 #ifndef viskores_filter_density_estimate_ParticleDensityBase_h
20 #define viskores_filter_density_estimate_ParticleDensityBase_h
29 namespace density_estimate
99 return { { this->Origin[0], this->Origin[0] + (this->Spacing[0] * this->Dimension[0]) },
100 { this->Origin[1], this->Origin[1] + (this->Spacing[1] * this->Dimension[1]) },
101 { this->Origin[2], this->Origin[2] + (this->Spacing[2] * this->Dimension[2]) } };
112 bool ComputeNumberDensity =
false;
113 bool DivideByVolume =
true;
119 #endif //viskores_filter_density_estimate_ParticleDensityBase_h
Definition: ParticleDensityBase.h:31
viskores::Id3 GetDimension() const
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:64
viskores::Float64 Length() const
Returns the length of the range.
Definition: Range.h:99
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:37
viskores::Vec3f GetSpacing() const
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:76
viskores::Float64 Min
The minumum value of the range (inclusive).
Definition: Range.h:42
Base class for all filters.
Definition: Filter.h:171
void SetDimension(const viskores::Id3 &dimension)
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:62
void SetSpacing(const viskores::Vec3f &spacing)
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:74
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
void SetDivideByVolume(bool flag)
Specifies whether the accumulated mass (or count) is divided by the volume of the cell.
Definition: ParticleDensityBase.h:51
bool GetComputeNumberDensity() const
Toggles between summing mass and computing instances.
Definition: ParticleDensityBase.h:44
void SetOrigin(const viskores::Vec3f &origin)
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:68
viskores::Range Z
The range of values in the Z direction.
Definition: Bounds.h:47
viskores::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:244
viskores::Range Y
The range of values in the Y direction.
Definition: Bounds.h:44
viskores::Vec3f GetOrigin() const
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:70
bool GetDivideByVolume() const
Specifies whether the accumulated mass (or count) is divided by the volume of the cell.
Definition: ParticleDensityBase.h:53
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:451
void SetComputeNumberDensity(bool flag)
Toggles between summing mass and computing instances.
Definition: ParticleDensityBase.h:42
void SetBounds(const viskores::Bounds &bounds)
The bounds of the region where density estimation occurs.
Definition: ParticleDensityBase.h:87
viskores::Range X
The range of values in the X direction.
Definition: Bounds.h:41
viskores::Bounds GetBounds() const
Definition: ParticleDensityBase.h:97