MCPcopy Create free account
hub / github.com/Kitware/VTK / FindDwLabel

Method FindDwLabel

Common/DataModel/vtkReebGraph.cxx:2278–2291  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2276
2277//------------------------------------------------------------------------------
2278vtkIdType vtkReebGraph::Implementation::FindDwLabel(vtkIdType nodeId, vtkReebLabelTag label)
2279{
2280 for (vtkIdType arcId = this->GetNode(nodeId)->ArcDownId; arcId;
2281 arcId = this->GetArc(arcId)->ArcDwId1)
2282 {
2283 for (vtkIdType labelId = this->GetArc(arcId)->LabelId0; labelId;
2284 labelId = this->GetLabel(labelId)->HNext)
2285 {
2286 if (this->GetLabel(labelId)->label == label)
2287 return labelId;
2288 }
2289 }
2290 return 0;
2291}
2292
2293//------------------------------------------------------------------------------
2294vtkIdType vtkReebGraph::Implementation::FindUpLabel(vtkIdType nodeId, vtkReebLabelTag label)

Callers

nothing calls this directly

Calls 3

GetNodeMethod · 0.95
GetArcMethod · 0.95
GetLabelMethod · 0.95

Tested by

no test coverage detected