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
15 #include <vtkm/filter/density_estimate/vtkm_filter_density_estimate_export.h>
21 namespace density_estimate
79 return { { this->Origin[0], this->Origin[0] + (this->Spacing[0] * this->Dimension[0]) },
80 { this->Origin[1], this->Origin[1] + (this->Spacing[1] * this->Dimension[1]) },
81 { this->Origin[2], this->Origin[2] + (this->Spacing[2] * this->Dimension[2]) } };
93 bool ComputeNumberDensity =
false;
94 bool DivideByVolume =
true;
100 #endif //vtk_m_filter_density_estimate_ParticleDensityBase_h
VTKM_CONT void SetOrigin(const vtkm::Vec3f &origin)
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:50
VTKM_CONT vtkm::Bounds GetBounds() const
The bounds of the region where density estimation occurs.
Definition: ParticleDensityBase.h:77
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT bool GetDivideByVolume() const
Definition: ParticleDensityBase.h:35
VTKM_CONT void SetComputeNumberDensity(bool yes)
Definition: ParticleDensityBase.h:29
An ArrayHandle of an unknown value type and storage.
Definition: UnknownArrayHandle.h:406
VTKM_CONT void SetDivideByVolume(bool yes)
Definition: ParticleDensityBase.h:33
VTKM_EXEC_CONT vtkm::Float64 Length() const
Returns the length of the range.
Definition: Range.h:87
Definition: FilterField.h:21
VTKM_CONT bool GetComputeNumberDensity() const
Definition: ParticleDensityBase.h:31
VTKM_CONT vtkm::Vec3f GetSpacing() const
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:58
VTKM_CONT void SetDimension(const vtkm::Id3 &dimension)
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:43
vtkm::Range Z
Definition: Bounds.h:33
#define VTKM_CONT
Definition: ExportMacros.h:57
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
VTKM_CONT vtkm::Vec3f GetOrigin() const
The lower-left (minimum) corner of the domain of density estimation.
Definition: ParticleDensityBase.h:51
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198
VTKM_CONT vtkm::Id3 GetDimension() const
The number of bins in the grid used as regions to estimate density.
Definition: ParticleDensityBase.h:44
vtkm::Float64 Min
Definition: Range.h:33
vtkm::Range X
Definition: Bounds.h:31
vtkm::Range Y
Definition: Bounds.h:32
Definition: ParticleDensityBase.h:23
VTKM_CONT void SetSpacing(const vtkm::Vec3f &spacing)
The spacing of the grid points used to form the grid for density estimation.
Definition: ParticleDensityBase.h:57
VTKM_CONT void SetBounds(const vtkm::Bounds &bounds)
The bounds of the region where density estimation occurs.
Definition: ParticleDensityBase.h:67