------------------------------------------------------------------------------
| 370 | |
| 371 | //------------------------------------------------------------------------------ |
| 372 | vtkSelectionNode* 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 | //------------------------------------------------------------------------------ |
| 385 | vtkSelectionNode* vtkSelection::GetNode(const std::string& name) const |