------------------------------------------------------------------------------
| 350 | |
| 351 | //------------------------------------------------------------------------------ |
| 352 | vtkTypeUInt32 vtkObjectManager::RegisterObject(vtkSmartPointer<vtkObjectBase> objectBase) |
| 353 | { |
| 354 | if (objectBase == nullptr) |
| 355 | { |
| 356 | return 0; |
| 357 | } |
| 358 | this->Context->KeepAlive(this->OWNERSHIP_KEY(), objectBase); |
| 359 | vtkTypeUInt32 identifier = 0; |
| 360 | this->Context->RegisterObject(objectBase, identifier); |
| 361 | return identifier; |
| 362 | } |
| 363 | |
| 364 | //------------------------------------------------------------------------------ |
| 365 | bool vtkObjectManager::UnRegisterObject(vtkTypeUInt32 identifier) |