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

Method InvokePipelineModifiedCallbacks

IO/Image/vtkImageImport.cxx:306–337  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

304
305//------------------------------------------------------------------------------
306int 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//------------------------------------------------------------------------------
340void vtkImageImport::InvokeUpdateInformationCallbacks()

Callers 2

ComputePipelineMTimeMethod · 0.95

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected