------------------------------------------------------------------------------
| 425 | |
| 426 | //------------------------------------------------------------------------------ |
| 427 | void vtkSelection::SetNode(const std::string& name, vtkSelectionNode* node) |
| 428 | { |
| 429 | vtkInternals& internals = (*this->Internals); |
| 430 | if (!node) |
| 431 | { |
| 432 | vtkErrorMacro("`node` cannot be null."); |
| 433 | } |
| 434 | else if (!internals.RegExID.find(name)) |
| 435 | { |
| 436 | vtkErrorMacro("`" << name << "` is not in the expected form."); |
| 437 | } |
| 438 | else if (internals.Items[name] != node) |
| 439 | { |
| 440 | internals.Items[name] = node; |
| 441 | this->Modified(); |
| 442 | } |
| 443 | } |
| 444 | |
| 445 | //------------------------------------------------------------------------------ |
| 446 | std::string vtkSelection::GetNodeNameAtIndex(unsigned int idx) const |