MCPcopy Create free account
hub / github.com/MITK/MITK / onFitEvent

Function onFitEvent

Modules/ModelFit/cmdapps/GenericFitting.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void onFitEvent(::itk::Object* caller, const itk::EventObject & event, void* /*data*/)
48{
49 itk::ProgressEvent progressEvent;
50
51 if (progressEvent.CheckEvent(&event))
52 {
53 mitk::ParameterFitImageGeneratorBase* castedReporter = dynamic_cast<mitk::ParameterFitImageGeneratorBase*>(caller);
54 std::cout <<castedReporter->GetProgress()*100 << "% ";
55 }
56}
57
58
59void setupParser(mitkCommandLineParser& parser)

Callers

nothing calls this directly

Calls 2

CheckEventMethod · 0.45
GetProgressMethod · 0.45

Tested by

no test coverage detected