VTK-m  2.0
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
vtkm::worklet::PointMerge::BinLocator Class Reference

#include <PointMerge.h>

Inheritance diagram for vtkm::worklet::PointMerge::BinLocator:
vtkm::cont::ExecutionAndControlObjectBase vtkm::cont::ExecutionObjectBase

Public Member Functions

VTKM_CONT BinLocator ()
 
VTKM_CONT BinLocator (const vtkm::Bounds &bounds, vtkm::Float64 delta=0.0)
 
VTKM_CONT BinLocator ShiftBins (const vtkm::Bounds &bounds, vtkm::Float64 delta, const vtkm::Vec< bool, 3 > &directions)
 
template<typename T >
VTKM_EXEC_CONT vtkm::Id3 FindBin (const vtkm::Vec< T, 3 > &worldCoords) const
 
BinLocator PrepareForExecution (vtkm::cont::DeviceAdapterId, vtkm::cont::Token &) const
 
BinLocator PrepareForControl () const
 

Static Public Member Functions

static VTKM_CONT vtkm::Vec3f_64 ComputeBinWidths (const vtkm::Bounds &bounds, vtkm::Float64 delta)
 

Private Attributes

vtkm::Vec3f_64 Offset
 
vtkm::Vec3f_64 Scale
 

Static Private Attributes

static constexpr vtkm::IdComponent BitsPerDimension = 31
 
static constexpr vtkm::Id MaxBinsPerDimension
 

Constructor & Destructor Documentation

◆ BinLocator() [1/2]

VTKM_CONT vtkm::worklet::PointMerge::BinLocator::BinLocator ( )
inline

◆ BinLocator() [2/2]

VTKM_CONT vtkm::worklet::PointMerge::BinLocator::BinLocator ( const vtkm::Bounds bounds,
vtkm::Float64  delta = 0.0 
)
inline

Member Function Documentation

◆ ComputeBinWidths()

static VTKM_CONT vtkm::Vec3f_64 vtkm::worklet::PointMerge::BinLocator::ComputeBinWidths ( const vtkm::Bounds bounds,
vtkm::Float64  delta 
)
inlinestatic

◆ FindBin()

template<typename T >
VTKM_EXEC_CONT vtkm::Id3 vtkm::worklet::PointMerge::BinLocator::FindBin ( const vtkm::Vec< T, 3 > &  worldCoords) const
inline

◆ PrepareForControl()

BinLocator vtkm::worklet::PointMerge::BinLocator::PrepareForControl ( ) const
inline

◆ PrepareForExecution()

BinLocator vtkm::worklet::PointMerge::BinLocator::PrepareForExecution ( vtkm::cont::DeviceAdapterId  ,
vtkm::cont::Token  
) const
inline

◆ ShiftBins()

VTKM_CONT BinLocator vtkm::worklet::PointMerge::BinLocator::ShiftBins ( const vtkm::Bounds bounds,
vtkm::Float64  delta,
const vtkm::Vec< bool, 3 > &  directions 
)
inline

Member Data Documentation

◆ BitsPerDimension

constexpr vtkm::IdComponent vtkm::worklet::PointMerge::BinLocator::BitsPerDimension = 31
staticconstexprprivate

◆ MaxBinsPerDimension

constexpr vtkm::Id vtkm::worklet::PointMerge::BinLocator::MaxBinsPerDimension
staticconstexprprivate
Initial value:
=
static_cast<vtkm::Id>((1LL << BitsPerDimension) - 1)

◆ Offset

vtkm::Vec3f_64 vtkm::worklet::PointMerge::BinLocator::Offset
private

◆ Scale

vtkm::Vec3f_64 vtkm::worklet::PointMerge::BinLocator::Scale
private

The documentation for this class was generated from the following file:
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::worklet::PointMerge::BinLocator::BitsPerDimension
static constexpr vtkm::IdComponent BitsPerDimension
Definition: PointMerge.h:54