VTK-m  2.0
Public Member Functions | Private Attributes | List of all members
vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator Class Reference

Execution object for Compartor used in HierarchicalVolumetricBranchDecomposer<FieldType>::LocalBestUpDownByVolume. More...

#include <SuperArcVolumetricComparatorIndirectGlobalIdComparator.h>

Inheritance diagram for vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator:
vtkm::cont::ExecutionObjectBase

Public Member Functions

VTKM_CONT SuperArcVolumetricComparatorIndirectGlobalIdComparator (const vtkm::worklet::contourtree_augmented::IdArrayType &weight, const vtkm::worklet::contourtree_augmented::EdgePairArray &superarcList, const vtkm::worklet::contourtree_augmented::IdArrayType &globalId, bool pairsAtLowEnd)
 
VTKM_CONT SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl PrepareForExecution (vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
 Create a SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl object for use in the sort or worklet. More...
 

Private Attributes

vtkm::worklet::contourtree_augmented::IdArrayType Weight
 
vtkm::worklet::contourtree_augmented::EdgePairArray SuperarcList
 
vtkm::worklet::contourtree_augmented::IdArrayType GlobalId
 
bool PairsAtLowEnd
 

Detailed Description

Execution object for Compartor used in HierarchicalVolumetricBranchDecomposer<FieldType>::LocalBestUpDownByVolume.

The comparator is used to sort superarc pairs by:

  1. ID of low end vertex
  2. volumetric measure at low end
  3. global index of upper end, OR the same for the higher end. Notice that 2. only applies if two edges share a lower end and have the same volume. We then look at the index at the upper end to see which is "furthest" from the low end

Constructor & Destructor Documentation

◆ SuperArcVolumetricComparatorIndirectGlobalIdComparator()

VTKM_CONT vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::SuperArcVolumetricComparatorIndirectGlobalIdComparator ( const vtkm::worklet::contourtree_augmented::IdArrayType weight,
const vtkm::worklet::contourtree_augmented::EdgePairArray superarcList,
const vtkm::worklet::contourtree_augmented::IdArrayType globalId,
bool  pairsAtLowEnd 
)
inline

Member Function Documentation

◆ PrepareForExecution()

VTKM_CONT SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::PrepareForExecution ( vtkm::cont::DeviceAdapterId  device,
vtkm::cont::Token token 
) const
inline

Create a SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl object for use in the sort or worklet.

Member Data Documentation

◆ GlobalId

vtkm::worklet::contourtree_augmented::IdArrayType vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::GlobalId
private

◆ PairsAtLowEnd

bool vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::PairsAtLowEnd
private

◆ SuperarcList

vtkm::worklet::contourtree_augmented::EdgePairArray vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::SuperarcList
private

◆ Weight

vtkm::worklet::contourtree_augmented::IdArrayType vtkm::worklet::scalar_topology::hierarchical_volumetric_branch_decomposer::SuperArcVolumetricComparatorIndirectGlobalIdComparator::Weight
private

The documentation for this class was generated from the following file: