Go to the documentation of this file.
62 #ifndef vtk_m_filter_scalar_topology_worklet_branch_decomposition_hierarchical_volumetric_branch_decomposer_SuperarcVolumetricComparatorIndirectGlobalIdComparator_h
63 #define vtk_m_filter_scalar_topology_worklet_branch_decomposition_hierarchical_volumetric_branch_decomposer_SuperarcVolumetricComparatorIndirectGlobalIdComparator_h
73 namespace scalar_topology
75 namespace hierarchical_volumetric_branch_decomposer
124 if (weightLeft < weightRight)
126 if (weightLeft > weightRight)
133 if (globalIdLeftEdgeSecond < globalIdRightEdgeSecond)
137 if (globalIdLeftEdgeSecond > globalIdRightEdgeSecond)
160 if (weightLeft < weightRight)
164 if (weightLeft > weightRight)
175 if (globalIdLeftEdgeFirst > globalIdRightEdgeFirst)
179 if (globalIdLeftEdgeFirst < globalIdRightEdgeFirst)
228 this->SuperarcList.PrepareForInput(device, token),
229 this->GlobalId.PrepareForInput(device, token),
230 this->PairsAtLowEnd);
vtkm::worklet::contourtree_augmented::IdArrayType GlobalId
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:236
bool PairsAtLowEnd
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:193
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
bool PairsAtLowEnd
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:237
IdArrayPortalType WeightPortal
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:190
VTKM_CONT ReadPortalType PrepareForInput(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Prepares this array to be used as an input to an operation in the execution environment.
Definition: ArrayHandle.h:574
Implementation of the comparator for the SuperArcVolumetricComparatorIndirectGlobalId ExecutionObject...
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:79
typename vtkm::worklet::contourtree_augmented::EdgePairArray::ReadPortalType EdgePairArrayPortalType
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:85
EdgePairArrayPortalType SuperarcListPortal
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:191
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_CONT SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl(IdArrayPortalType weightPortal, EdgePairArrayPortalType superarcListPortal, IdArrayPortalType globalIdPortal, bool pairsAtLowEnd)
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:89
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
typename vtkm::worklet::contourtree_augmented::IdArrayType::ReadPortalType IdArrayPortalType
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:83
VTKM_EXEC bool operator()(const vtkm::Id &left, const vtkm::Id &right) const
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:103
IdArrayPortalType GlobalIdPortal
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:192
VTKM_CONT SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Create a SuperArcVolumetricComparatorIndirectGlobalIdComparatorImpl object for use in the sort or wor...
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:224
FirstType first
The pair's first object.
Definition: Pair.h:50
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)
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:210
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::worklet::contourtree_augmented::IdArrayType Weight
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:234
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
vtkm::worklet::contourtree_augmented::EdgePairArray SuperarcList
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:235
Execution object for Compartor used in HierarchicalVolumetricBranchDecomposer<FieldType>::LocalBestUp...
Definition: SuperArcVolumetricComparatorIndirectGlobalIdComparator.h:204
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
SecondType second
The pair's second object.
Definition: Pair.h:55