Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_tree_grafter_copy_new_hypernodes_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_tree_grafter_copy_new_hypernodes_worklet_h
64 namespace contourtree_distributed
66 namespace tree_grafter
74 WholeArrayIn hierarchicalSuperId,
75 WholeArrayIn hierarchicalHyperarc,
76 WholeArrayOut hierarchicalTreeHypernodes,
77 WholeArrayOut hierarchicalTreeHyperarcs
90 template <
typename InFieldPortalType,
typename OutFieldPortalType>
95 const InFieldPortalType& hierarchicalSuperIdPortal,
96 const InFieldPortalType& hierarchicalHyperarcPortal,
97 const OutFieldPortalType& hierarchicalTreeHypernodesPortal,
98 const OutFieldPortalType& hierarchicalTreeHyperarcsPortal
105 vtkm::Id newHypernodeSuperId = hierarchicalSuperIdPortal.Get(oldSupernodeId);
108 hierarchicalTreeHypernodesPortal.Set(newHypernodeId, newHypernodeSuperId);
111 vtkm::Id newHyperarcOldSuperId = hierarchicalHyperarcPortal.Get(oldSupernodeId);
116 newHyperarcOldSuperId =
119 hierarchicalSuperIdPortal.Get(newHyperarcOldSuperId) | isAscendingHyperarc;
122 hierarchicalTreeHyperarcsPortal.Set(newHypernodeId, newHyperarcNewSuperId);
VTKM_EXEC_CONT bool IsAscending(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:121
VTKM_EXEC_CONT CopyNewHypernodesWorklet(vtkm::Id numOldHypernodes)
Definition: CopyNewHypernodesWorklet.h:85
#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
void(FieldIn newHypernodes, WholeArrayIn hierarchicalSuperId, WholeArrayIn hierarchicalHyperarc, WholeArrayOut hierarchicalTreeHypernodes, WholeArrayOut hierarchicalTreeHyperarcs) ControlSignature
Definition: CopyNewHypernodesWorklet.h:78
VTKM_EXEC_CONT vtkm::Id MaskedIndex(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:127
VTKM_EXEC void operator()(const vtkm::Id &newHypernode, const vtkm::Id &oldSupernodeId, const InFieldPortalType &hierarchicalSuperIdPortal, const InFieldPortalType &hierarchicalHyperarcPortal, const OutFieldPortalType &hierarchicalTreeHypernodesPortal, const OutFieldPortalType &hierarchicalTreeHyperarcsPortal) const
Definition: CopyNewHypernodesWorklet.h:91
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
Definition: CopyNewHypernodesWorklet.h:70
vtkm::Id NumOldHypernodes
Definition: CopyNewHypernodesWorklet.h:152
A control signature tag for input fields.
Definition: WorkletMapField.h:49
_1 InputDomain
Definition: CopyNewHypernodesWorklet.h:81
constexpr vtkm::Id IS_ASCENDING
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:77
void(InputIndex, _1, _2, _3, _4, _5) ExecutionSignature
Definition: CopyNewHypernodesWorklet.h:80
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38