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

Method GetNode

Common/DataModel/vtkSelection.cxx:372–382  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

370
371//------------------------------------------------------------------------------
372vtkSelectionNode* vtkSelection::GetNode(unsigned int idx) const
373{
374 const vtkInternals& internals = (*this->Internals);
375 if (static_cast<unsigned int>(internals.Items.size()) > idx)
376 {
377 auto iter = std::next(internals.Items.begin(), static_cast<int>(idx));
378 assert(iter != internals.Items.end());
379 return iter->second;
380 }
381 return nullptr;
382}
383
384//------------------------------------------------------------------------------
385vtkSelectionNode* vtkSelection::GetNode(const std::string& name) const

Callers 15

PaintMethod · 0.45
UpdateMethod · 0.45
MakeSelectionMethod · 0.45
UpdateMethod · 0.45
PaintMethod · 0.45
mimeDataMethod · 0.45
mimeDataMethod · 0.45
dataMethod · 0.45
SetVTKSelectionMethod · 0.45

Calls 6

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

Tested by 15

PrintSelectionNodesFunction · 0.36
TestSelectionSubtractFunction · 0.36
checkSelectionFunction · 0.36
ExecuteMethod · 0.36
SelectMethod · 0.36
onMouseMoveMethod · 0.36
_on_pick_finishedMethod · 0.36
_on_pick_finishedMethod · 0.36
ExecuteMethod · 0.36
SetPointIdsMethod · 0.36