------------------------------------------------------------------------------
| 918 | |
| 919 | //------------------------------------------------------------------------------ |
| 920 | void vtkAlgorithm::SetExecutive(vtkExecutive* newExecutive) |
| 921 | { |
| 922 | vtkExecutive* oldExecutive = this->Executive; |
| 923 | if (newExecutive != oldExecutive) |
| 924 | { |
| 925 | if (newExecutive) |
| 926 | { |
| 927 | newExecutive->Register(this); |
| 928 | vtkAlgorithmToExecutiveFriendship::SetAlgorithm(newExecutive, this); |
| 929 | } |
| 930 | this->Executive = newExecutive; |
| 931 | if (oldExecutive) |
| 932 | { |
| 933 | vtkAlgorithmToExecutiveFriendship::SetAlgorithm(oldExecutive, nullptr); |
| 934 | oldExecutive->UnRegister(this); |
| 935 | } |
| 936 | } |
| 937 | } |
| 938 | |
| 939 | //------------------------------------------------------------------------------ |
| 940 | vtkTypeBool vtkAlgorithm::ProcessRequest( |