------------------------------------------------------------------------------
| 304 | |
| 305 | //------------------------------------------------------------------------------ |
| 306 | int vtkImageImport::InvokePipelineModifiedCallbacks() |
| 307 | { |
| 308 | if (this->PipelineModifiedCallback) |
| 309 | { |
| 310 | int ret; |
| 311 | try |
| 312 | { |
| 313 | ret = (this->PipelineModifiedCallback)(this->CallbackUserData); |
| 314 | } |
| 315 | catch (std::exception& _e) |
| 316 | { |
| 317 | vtkErrorMacro(<< "Calling PipelineModifiedCallback: " << _e.what()); |
| 318 | // if an error occurred, we don't want the pipeline to run again |
| 319 | // until the error has been rectified. It can be assumed that |
| 320 | // the rectifying actions will set the modified flag. |
| 321 | ret = 0; |
| 322 | } |
| 323 | catch (...) |
| 324 | { |
| 325 | vtkErrorMacro(<< "Unknown exception."); |
| 326 | // same logic as above |
| 327 | ret = 0; |
| 328 | } |
| 329 | |
| 330 | return ret; |
| 331 | } |
| 332 | else |
| 333 | { |
| 334 | // if there's no PipelineModified installed, we return 0 |
| 335 | return 0; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | //------------------------------------------------------------------------------ |
| 340 | void vtkImageImport::InvokeUpdateInformationCallbacks() |
no test coverage detected