Go to the documentation of this file.
   72 #ifndef vtkm_worklet_contourtree_edge_peak_comparator_h 
   73 #define vtkm_worklet_contourtree_edge_peak_comparator_h 
   86 template <
typename T, 
typename StorageType>
 
  149       if (this->EdgeFar.Get(i) < this->EdgeFar.Get(j))
 
  151       if (this->EdgeFar.Get(j) < this->EdgeFar.Get(i))
 
  155       vtkm::Id valueIndex1 = this->ValueIndex.Get(this->EdgeNear.Get(i));
 
  156       vtkm::Id valueIndex2 = this->ValueIndex.Get(this->EdgeNear.Get(j));
 
  158       if (this->Values.Get(valueIndex1) < this->Values.Get(valueIndex2))
 
  160       if (this->Values.Get(valueIndex2) < this->Values.Get(valueIndex1))
 
  164       if (valueIndex1 < valueIndex2)
 
  166       if (valueIndex2 < valueIndex1)
 
  183                       this->ValueIndex.PrepareForInput(device, token),
 
  184                       this->EdgeFar.PrepareForInput(device, token),
 
  185                       this->EdgeNear.PrepareForInput(device, token),
 
  186                       this->ArcArray.PrepareForInput(device, token),
 
  
Definition: EdgePeakComparator.h:87
 
#define VTKM_EXEC
Definition: ExportMacros.h:51
 
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
IdPortalType EdgeNear
Definition: EdgePeakComparator.h:141
 
ValueArrayType Values
Definition: EdgePeakComparator.h:109
 
bool IsJoinGraph
Definition: EdgePeakComparator.h:143
 
IdPortalType EdgeFar
Definition: EdgePeakComparator.h:140
 
IdArrayType ArcArray
Definition: EdgePeakComparator.h:113
 
VTKM_CONT ReadPortalType PrepareForInput(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Prepares this array to be used as an input to an operation in the execution environment.
Definition: ArrayHandle.h:574
 
ValuePortalType Values
Definition: EdgePeakComparator.h:138
 
IdArrayType EdgeNear
Definition: EdgePeakComparator.h:112
 
bool IsJoinGraph
Definition: EdgePeakComparator.h:114
 
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
 
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
 
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
 
Definition: EdgePeakComparator.h:116
 
IdArrayType ValueIndex
Definition: EdgePeakComparator.h:110
 
typename IdArrayType::ReadPortalType IdPortalType
Definition: EdgePeakComparator.h:120
 
VTKM_CONT ExecObject PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: EdgePeakComparator.h:179
 
IdPortalType ArcArray
Definition: EdgePeakComparator.h:142
 
#define VTKM_CONT
Definition: ExportMacros.h:57
 
typename ValueArrayType::ReadPortalType ValuePortalType
Definition: EdgePeakComparator.h:119
 
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
 
Definition: DeviceAdapterTag.h:52
 
VTKM_CONT ExecObject(ValuePortalType values, IdPortalType valueIndex, IdPortalType edgeFar, IdPortalType edgeNear, IdPortalType arcArray, bool isJoinGraph)
Definition: EdgePeakComparator.h:123
 
IdArrayType EdgeFar
Definition: EdgePeakComparator.h:111
 
VTKM_EXEC bool operator()(const vtkm::Id &i, const vtkm::Id &j) const
Definition: EdgePeakComparator.h:146
 
VTKM_CONT EdgePeakComparator(ValueArrayType values, IdArrayType valueIndex, IdArrayType edgeFar, IdArrayType edgeNear, IdArrayType arcArray, bool isJoinGraph)
Definition: EdgePeakComparator.h:94
 
IdPortalType ValueIndex
Definition: EdgePeakComparator.h:139