Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_tree_grafter_init_active_superarcs_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_tree_grafter_init_active_superarcs_worklet_h
63 namespace contourtree_distributed
65 namespace tree_grafter
75 WholeArrayIn contourTreeSuperarcs,
76 WholeArrayIn interiorForestIsNecessary,
78 WholeArrayOut activeSuperarcs
88 template <
typename InFieldPortalType,
typename SuperarcsPortalType>
91 const InFieldPortalType& contourTreeSuperarcsPortal,
92 const InFieldPortalType& isNecessaryPortal,
94 const SuperarcsPortalType& activeSuperarcsPortal)
const
99 vtkm::Id unmaskedTo = contourTreeSuperarcsPortal.Get(from);
103 if (isNecessaryPortal.Get(from) && isNecessaryPortal.Get(to))
109 vtkm::Id activeSuperarc = activeSuperarcId - 1;
114 activeSuperarcsPortal.Set(activeSuperarc,
119 activeSuperarcsPortal.Set(activeSuperarc,
VTKM_EXEC_CONT bool IsAscending(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:121
#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
_1 InputDomain
Definition: InitActiceSuperarcsWorklet.h:82
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
Definition: InitActiceSuperarcsWorklet.h:69
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC_CONT InitActiceSuperarcsWorklet()
Definition: InitActiceSuperarcsWorklet.h:86
void(_1, _2, _3, _4, _5) ExecutionSignature
Definition: InitActiceSuperarcsWorklet.h:81
VTKM_EXEC void operator()(const vtkm::Id &from, const InFieldPortalType &contourTreeSuperarcsPortal, const InFieldPortalType &isNecessaryPortal, const vtkm::Id &activeSuperarcId, const SuperarcsPortalType &activeSuperarcsPortal) const
Definition: InitActiceSuperarcsWorklet.h:89
A vtkm::Pair is essentially the same as an STL pair object except that the methods (constructors and ...
Definition: Pair.h:29
void(FieldIn superarcIndex, WholeArrayIn contourTreeSuperarcs, WholeArrayIn interiorForestIsNecessary, FieldIn activeSuperarcId, WholeArrayOut activeSuperarcs) ControlSignature
Definition: InitActiceSuperarcsWorklet.h:79
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38