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

Method GetNodeNameAtIndex

Common/DataModel/vtkSelection.cxx:446–456  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

444
445//------------------------------------------------------------------------------
446std::string vtkSelection::GetNodeNameAtIndex(unsigned int idx) const
447{
448 const vtkInternals& internals = (*this->Internals);
449 if (static_cast<unsigned int>(internals.Items.size()) > idx)
450 {
451 auto iter = std::next(internals.Items.begin(), static_cast<int>(idx));
452 assert(iter != internals.Items.end());
453 return iter->first;
454 }
455 return std::string();
456}
457
458//------------------------------------------------------------------------------
459void vtkSelection::RemoveNode(unsigned int idx)

Callers 6

EvaluateMethod · 0.95
TestSelectionExpressionFunction · 0.80
PickPropMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80

Calls 6

nextFunction · 0.50
assertFunction · 0.50
stringClass · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestSelectionExpressionFunction · 0.64