Go to the documentation of this file.
57 #ifndef vtkm_worklet_contourtree_subrange_offset_h
58 #define vtkm_worklet_contourtree_subrange_offset_h
74 WholeArrayIn sortVector,
75 WholeArrayOut candidate);
83 template <
typename InFieldPortalType,
typename OutFieldPortalType>
85 const InFieldPortalType& sortVector,
86 const OutFieldPortalType& candidate)
const
88 if (sortVector.Get(sortID) != sortVector.Get(sortID - 1))
89 candidate.Set(sortVector.Get(sortID), sortID);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT SubrangeOffset()
Definition: SubrangeOffset.h:81
_1 InputDomain
Definition: SubrangeOffset.h:77
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC void operator()(const vtkm::Id &sortID, const InFieldPortalType &sortVector, const OutFieldPortalType &candidate) const
Definition: SubrangeOffset.h:84
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
void(_1, _2, _3) ExecutionSignature
Definition: SubrangeOffset.h:76
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(FieldIn sortID, WholeArrayIn sortVector, WholeArrayOut candidate) ControlSignature
Definition: SubrangeOffset.h:75
Definition: SubrangeOffset.h:70
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38