Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_contourtree_maker_inc_compress_trees_step_h
54 #define vtk_m_worklet_contourtree_augmented_contourtree_maker_inc_compress_trees_step_h
63 namespace contourtree_augmented
65 namespace contourtree_maker_inc
73 WholeArrayIn contourTreeSuperarcs,
74 WholeArrayInOut augmentedJoinSuperarcs,
75 WholeArrayInOut augmentedSplitSuperarcs
85 template <
typename InFieldPortalType,
typename InOutFieldPortalType>
88 const InFieldPortalType& contourTreeSuperarcsPortal,
89 const InOutFieldPortalType& augmentedJoinSuperarcsPortal,
90 const InOutFieldPortalType& augmentedSplitSuperarcsPortal)
const
94 vtkm::Id joinNeighbour = augmentedJoinSuperarcsPortal.Get(superID);
103 augmentedJoinSuperarcsPortal.Set(
104 superID, augmentedJoinSuperarcsPortal.Get(
MaskedIndex(joinNeighbour)));
109 vtkm::Id splitNeighbour = augmentedSplitSuperarcsPortal.Get(superID);
118 augmentedSplitSuperarcsPortal.Set(
119 superID, augmentedSplitSuperarcsPortal.Get(
MaskedIndex(splitNeighbour)));
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
void ExecutionSignature(_1, InputIndex, _2, _3, _4)
Definition: CompressTrees_Step.h:77
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
Definition: CompressTrees_Step.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
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void ControlSignature(FieldIn activeSupernodes, WholeArrayIn contourTreeSuperarcs, WholeArrayInOut augmentedJoinSuperarcs, WholeArrayInOut augmentedSplitSuperarcs)
Definition: CompressTrees_Step.h:72
VTKM_EXEC void operator()(const vtkm::Id &superID, const vtkm::Id, const InFieldPortalType &contourTreeSuperarcsPortal, const InOutFieldPortalType &augmentedJoinSuperarcsPortal, const InOutFieldPortalType &augmentedSplitSuperarcsPortal) const
Definition: CompressTrees_Step.h:86
_1 InputDomain
Definition: CompressTrees_Step.h:78
VTKM_EXEC_CONT CompressTrees_Step()
Definition: CompressTrees_Step.h:83
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38