Go to the documentation of this file.
11 #ifndef vtk_m_filter_density_estimate_ParticleDensityBase_h
12 #define vtk_m_filter_density_estimate_ParticleDensityBase_h
21 namespace density_estimate
91 return { { this->Origin[0], this->Origin[0] + (this->Spacing[0] * this->Dimension[0]) },
92 { this->Origin[1], this->Origin[1] + (this->Spacing[1] * this->Dimension[1]) },
93 { this->Origin[2], this->Origin[2] + (this->Spacing[2] * this->Dimension[2]) } };
104 bool ComputeNumberDensity =
false;
105 bool DivideByVolume =
true;
111 #endif //vtk_m_filter_density_estimate_ParticleDensityBase_h
Groups connected points that have the same field value.
Definition: Atomic.h:19
void SetBounds(const vtkm::Bounds &bounds)
The bounds of the region where density estimation occurs.
Definition: ParticleDensityBase.h:79
void SetDivideByVolume(bool flag)
Specifies whether the accumulated mass (or count) is divided by the volume of the cell.
Definition: ParticleDensityBase.h:43
vtkm::Float64 Length() const
Returns the length of the range.
Definition: Range.h:91
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:430
vtkm::Vec3f GetOrigin() const
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:62
void SetSpacing(const vtkm::Vec3f &spacing)
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:66
bool GetComputeNumberDensity() const
Toggles between summing mass and computing instances.
Definition: ParticleDensityBase.h:36
void SetDimension(const vtkm::Id3 &dimension)
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:54
bool GetDivideByVolume() const
Specifies whether the accumulated mass (or count) is divided by the volume of the cell.
Definition: ParticleDensityBase.h:45
void SetComputeNumberDensity(bool flag)
Toggles between summing mass and computing instances.
Definition: ParticleDensityBase.h:34
Base class for all filters.
Definition: Filter.h:163
vtkm::Range Z
The range of values in the Z direction.
Definition: Bounds.h:39
#define VTKM_CONT
Definition: ExportMacros.h:57
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
void SetOrigin(const vtkm::Vec3f &origin)
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:60
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:236
vtkm::Float64 Min
The minumum value of the range (inclusive).
Definition: Range.h:34
vtkm::Bounds GetBounds() const
Definition: ParticleDensityBase.h:89
vtkm::Range X
The range of values in the X direction.
Definition: Bounds.h:33
vtkm::Range Y
The range of values in the Y direction.
Definition: Bounds.h:36
Definition: ParticleDensityBase.h:23
vtkm::Id3 GetDimension() const
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:56
#define VTKM_FILTER_DENSITY_ESTIMATE_EXPORT
Definition: vtkm_filter_density_estimate_export.h:44
vtkm::Vec3f GetSpacing() const
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:68