Go to the documentation of this file.
57 #ifndef vtkm_worklet_contourtree_degree_subrange_offset_h
58 #define vtkm_worklet_contourtree_degree_subrange_offset_h
75 WholeArrayIn sortVector,
76 WholeArrayOut degree);
84 template <
typename InFieldPortalType,
typename OutFieldPortalType>
86 const InFieldPortalType& sortVector,
87 const OutFieldPortalType& degree)
const
89 vtkm::Id superID = sortVector.Get(sortID);
90 vtkm::Id prevSuper = sortVector.Get(sortID - 1);
93 if (superID != prevSuper)
94 degree.Set(superID, sortID);
_1 InputDomain
Definition: DegreeSubrangeOffset.h:78
VTKM_EXEC_CONT DegreeSubrangeOffset()
Definition: DegreeSubrangeOffset.h:82
#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
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC void operator()(const vtkm::Id &sortID, const InFieldPortalType &sortVector, const OutFieldPortalType °ree) const
Definition: DegreeSubrangeOffset.h:85
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(FieldIn sortID, WholeArrayIn sortVector, WholeArrayOut degree) ControlSignature
Definition: DegreeSubrangeOffset.h:76
void(_1, _2, _3) ExecutionSignature
Definition: DegreeSubrangeOffset.h:77
Definition: DegreeSubrangeOffset.h:71
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38