Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_augmented_active_graph_find_super_and_hyper_nodes_worklet_h
54 #define vtk_m_worklet_contourtree_augmented_active_graph_find_super_and_hyper_nodes_worklet_h
63 namespace contourtree_augmented
65 namespace active_graph_inc
73 WholeArrayIn hyperarcs,
74 WholeArrayIn newHypernodePosition,
75 WholeArrayIn newSupernodePosition,
76 WholeArrayOut hyperId,
77 WholeArrayOut treeHypernodes,
78 WholeArrayOut treeSupernodes
87 template <
typename InFieldPortalType,
typename OutFieldPortalType>
89 const InFieldPortalType& hyperarcsPortal,
90 const InFieldPortalType& newHypernodePositionPortal,
91 const InFieldPortalType& newSupernodePositionPortal,
92 const OutFieldPortalType& hyperIdPortal,
93 const OutFieldPortalType& treeHypernodesPortal,
94 const OutFieldPortalType& treeSupernodesPortal)
const
97 vtkm::Id graphTarget = hyperarcsPortal.Get(graphVertex);
104 hyperIdPortal.Set(graphVertex, newHypernodePositionPortal.Get(graphVertex));
105 treeHypernodesPortal.Set(newHypernodePositionPortal.Get(graphVertex), graphVertex);
115 treeSupernodesPortal.Set(newSupernodePositionPortal.Get(graphVertex), graphVertex);
VTKM_EXEC_CONT bool IsHypernode(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:115
#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
Definition: FindSuperAndHyperNodesWorklet.h:69
VTKM_EXEC_CONT FindSuperAndHyperNodesWorklet()
Definition: FindSuperAndHyperNodesWorklet.h:85
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
_1 InputDomain
Definition: FindSuperAndHyperNodesWorklet.h:81
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void ExecutionSignature(_1, _2, _3, _4, _5, _6, _7)
Definition: FindSuperAndHyperNodesWorklet.h:80
VTKM_EXEC void operator()(const vtkm::Id &graphVertex, const InFieldPortalType &hyperarcsPortal, const InFieldPortalType &newHypernodePositionPortal, const InFieldPortalType &newSupernodePositionPortal, const OutFieldPortalType &hyperIdPortal, const OutFieldPortalType &treeHypernodesPortal, const OutFieldPortalType &treeSupernodesPortal) const
Definition: FindSuperAndHyperNodesWorklet.h:88
VTKM_EXEC_CONT bool IsSupernode(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:109
void ControlSignature(FieldIn graphVertexIndex, WholeArrayIn hyperarcs, WholeArrayIn newHypernodePosition, WholeArrayIn newSupernodePosition, WholeArrayOut hyperId, WholeArrayOut treeHypernodes, WholeArrayOut treeSupernodes)
Definition: FindSuperAndHyperNodesWorklet.h:72
constexpr vtkm::Id NO_SUCH_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:73
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38