Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_tree_grafter_collapse_regular_chains_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_tree_grafter_collapse_regular_chains_worklet_h
64 namespace contourtree_distributed
66 namespace tree_grafter
76 WholeArrayInOut upNeighbour,
77 WholeArrayInOut downNeighbour
87 template <
typename InOutFieldPortalType>
89 const InOutFieldPortalType& upNeighbourPortal,
90 const InOutFieldPortalType& downNeighbourPortal)
const
97 vtkm::Id lowEndUpNeighbour = upNeighbourPortal.Get(lowEnd);
98 vtkm::Id highEndDownNeighbour = downNeighbourPortal.Get(highEnd);
103 upNeighbourPortal.Set(lowEnd, upNeighbourPortal.Get(lowEndUpNeighbour));
109 downNeighbourPortal.Set(highEnd, downNeighbourPortal.Get(highEndDownNeighbour));
#define VTKM_EXEC
Definition: ExportMacros.h:51
VTKM_EXEC_CONT bool IsTerminalElement(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:103
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
void(_1, _2, _3) ExecutionSignature
Definition: CollapseRegularChainsWorklet.h:80
_1 InputDomain
Definition: CollapseRegularChainsWorklet.h:81
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(FieldIn activeSuperarcs, WholeArrayInOut upNeighbour, WholeArrayInOut downNeighbour) ControlSignature
Definition: CollapseRegularChainsWorklet.h:78
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC_CONT CollapseRegularChainsWorklet()
Definition: CollapseRegularChainsWorklet.h:85
FirstType first
The pair's first object.
Definition: Pair.h:50
VTKM_EXEC void operator()(const vtkm::worklet::contourtree_augmented::EdgePair &activeSuperarc, const InOutFieldPortalType &upNeighbourPortal, const InOutFieldPortalType &downNeighbourPortal) const
Definition: CollapseRegularChainsWorklet.h:88
Definition: CollapseRegularChainsWorklet.h:70
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
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38