Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_active_graph_set_hyper_arcs_worklet_h
54 #define vtk_m_worklet_contourtree_augmented_active_graph_set_hyper_arcs_worklet_h
63 namespace contourtree_augmented
65 namespace active_graph_inc
73 WholeArrayInOut treeHypernodes,
74 WholeArrayOut treeHyperarcs,
75 WholeArrayIn graphHyperarcs,
76 WholeArrayIn graphSuperID);
84 template <
typename InFieldPortalType,
typename InOutFieldPortalType,
typename OutFieldPortalType>
87 const OutFieldPortalType treeHyperarcsPortal,
88 const InFieldPortalType& graphHyperarcsPortal,
89 const InFieldPortalType& graphSuperIDPortal)
const
92 vtkm::Id graphID = treeHypernodesPortal.Get(hypernode);
93 treeHypernodesPortal.Set(hypernode, graphSuperIDPortal.Get(graphID));
96 vtkm::Id graphTarget = graphHyperarcsPortal.Get(graphID);
102 treeHyperarcsPortal.Set(hypernode, graphSuperIDPortal.Get(
MaskedIndex(graphTarget)));
void ExecutionSignature(_1, InputIndex, _2, _3, _4)
Definition: SetHyperArcsWorklet.h:77
void ControlSignature(WholeArrayInOut treeHypernodes, WholeArrayOut treeHyperarcs, WholeArrayIn graphHyperarcs, WholeArrayIn graphSuperID)
Definition: SetHyperArcsWorklet.h:72
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
Definition: SetHyperArcsWorklet.h:69
VTKM_EXEC_CONT vtkm::Id MaskedIndex(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:127
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT bool NoSuchElement(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:97
VTKM_EXEC void operator()(const InOutFieldPortalType &treeHypernodesPortal, const vtkm::Id hypernode, const OutFieldPortalType treeHyperarcsPortal, const InFieldPortalType &graphHyperarcsPortal, const InFieldPortalType &graphSuperIDPortal) const
Definition: SetHyperArcsWorklet.h:85
_1 InputDomain
Definition: SetHyperArcsWorklet.h:78
VTKM_EXEC_CONT SetHyperArcsWorklet()
Definition: SetHyperArcsWorklet.h:82
constexpr vtkm::Id NO_SUCH_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:73
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38