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

Method SetNode

Common/DataModel/vtkSelection.cxx:427–443  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

425
426//------------------------------------------------------------------------------
427void 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//------------------------------------------------------------------------------
446std::string vtkSelection::GetNodeNameAtIndex(unsigned int idx) const

Callers 5

AddNodeMethod · 0.95
TestSelectionExpressionFunction · 0.45
PickPropMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45

Calls 2

findMethod · 0.45
ModifiedMethod · 0.45

Tested by 1

TestSelectionExpressionFunction · 0.36