Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_initialize_counts_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_initialize_counts_worklet_h
63 namespace contourtree_distributed
65 namespace hierarchical_hyper_sweeper
73 using ControlSignature = void(WholeArrayIn superparents, WholeArrayInOut superarcRegularCounts);
81 template <
typename InFieldPortalType,
typename InOutFieldPortalType>
83 const InFieldPortalType superparentsPortal,
84 const InOutFieldPortalType superarcRegularCountsPortal)
const
88 vtkm::Id superparent = superparentsPortal.Get(vertex);
96 if (vertex == superparentsPortal.GetNumberOfValues() - 1)
98 superarcRegularCountsPortal.Set(superparent, vertex + 1);
103 if (superparentsPortal.Get(vertex + 1) != superparent)
105 superarcRegularCountsPortal.Set(superparent, vertex + 1);
#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(WholeArrayIn superparents, WholeArrayInOut superarcRegularCounts) ControlSignature
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:73
_1 InputDomain
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:75
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC void operator()(const vtkm::Id &vertex, const InFieldPortalType superparentsPortal, const InOutFieldPortalType superarcRegularCountsPortal) const
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:82
VTKM_EXEC_CONT bool NoSuchElement(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:97
Worklet used in HierarchicalHyperSweeper.InitializeIntrinsicVertexCount(...) to set the count to the ...
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:70
VTKM_EXEC_CONT InitializeIntrinsicVertexCountInitalizeCountsWorklet()
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:79
void(InputIndex, _1, _2) ExecutionSignature
Definition: InitializeIntrinsicVertexCountInitalizeCountsWorklet.h:74
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38