-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MITK upgrade #79
MITK upgrade #79
Conversation
Due to the removal of the MeshUtil class from the MITK, this function needs to be rewritten. Until then, it's been commented out.
⚡ Code Analysis Results ⚡ 🔴 Cppcheck found 22 issues! Click here to see details.CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1813 to 1818 in 0c691e3
!Line: 1813 - style: Redundant initialization for 'scalars'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1806 to 1811 in 0c691e3
!Line: 1806 - note: scalars is initialized CemrgApp/CemrgApp/Modules/CemrgAppModule/src/CemrgCommonUtils.cpp Lines 1813 to 1818 in 0c691e3
!Line: 1813 - note: scalars is overwritten CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.h Lines 55 to 60 in 0c691e3
!Line: 55 - style: The class 'AtrialFibresClipperView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.h Lines 66 to 71 in 0c691e3
!Line: 66 - style: The class 'AtrialFibresView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 451 to 456 in 0c691e3
!Line: 451 - style: Redundant initialization for 'radii'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 450 to 455 in 0c691e3
!Line: 450 - note: radii is initialized CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresClipperView.cpp Lines 451 to 456 in 0c691e3
!Line: 451 - note: radii is overwritten CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresLandmarksView.h Lines 53 to 58 in 0c691e3
!Line: 53 - style: The class 'AtrialFibresLandmarksView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresLandmarksView.cpp Lines 392 to 397 in 0c691e3
!Line: 392 - style: The scope of the variable 'distance' can be reduced. [variableScope] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresLandmarksView.cpp Lines 248 to 253 in 0c691e3
!Line: 248 - style: Unused variable: fileRough [unusedVariable] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresVisualiseView.h Lines 50 to 55 in 0c691e3
!Line: 50 - style: The class 'AtrialFibresVisualiseView' does not have a constructor although it has private member variables. [noConstructor] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1794 to 1799 in 0c691e3
!Line: 1794 - style: Condition '!userInputAccepted' is always true [knownConditionTrueFalse] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1792 to 1797 in 0c691e3
!Line: 1792 - note: Assignment 'userInputAccepted=false', assigned value is 0 CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 1794 to 1799 in 0c691e3
!Line: 1794 - note: Condition '!userInputAccepted' is always true CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 2339 to 2344 in 0c691e3
!Line: 2339 - style: Variable 'segImage' is assigned a value that is never used. [unreadVariable] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 192 to 197 in 0c691e3
!Line: 192 - style: Redundant initialization for 'reply1'. The initialized value is overwritten before it is read. [redundantInitialization] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 189 to 194 in 0c691e3
!Line: 189 - note: reply1 is initialized CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.atrialfibres/src/internal/AtrialFibresView.cpp Lines 192 to 197 in 0c691e3
!Line: 192 - note: reply1 is overwritten CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.mmcwplugin/src/internal/MmcwView.cpp Lines 723 to 728 in 0c691e3
!Line: 723 - style: Condition 'dcm_path_fix' is always true [knownConditionTrueFalse] CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.mmcwplugin/src/internal/MmcwView.cpp Lines 722 to 727 in 0c691e3
!Line: 722 - note: Assignment 'dcm_path_fix=true', assigned value is 1 CemrgApp/CemrgApp/Plugins/kcl.cemrgapp.mmcwplugin/src/internal/MmcwView.cpp Lines 723 to 728 in 0c691e3
!Line: 723 - note: Condition 'dcm_path_fix' is always true |
This seems necessary to avoid a linker error on macOS
Docs were a bit unclear, so follow their example code: https://gitlab.kitware.com/vtk/vtk/-/blob/v9.3.0/Examples/Medical/Cxx/GenerateModelsFromLabels.cxx#L119
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking really good @JostMigenda! 🚀
I've left a couple of comments but go ahead and merge this when you're ready, those comments won't need any further review.
I have also given this PR a go on my Linux machine today. Mixed results there - it builds fine, but the applcation won't open. I suspect any fixes will inolve the setup instructions rather than the code, do don't let that block this PR 👍
Co-authored-by: Louise Bowler <LouiseABowler@users.noreply.github.com>
5051b12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the revisions @JostMigenda, this looks good to me 🙌
Test’s are failing during the “Download precompiled Build folder” step; no logs for that step is available, but the error message for the overall workflow run says: Anyway, since the tests already fail on the head of the |
This combines work from the previous MITK upgrade effort and @alonsoJASL’s fork … and then rebased all of it onto of the current
development
branch. This was a bit of a painful rebase—going forward, we really should avoid having branches diverge for multiple years!—but José and I completed it this afternoon.Next up, I’ll try to build it on my machine and see what further changes are needed. Therefore, I’ll leave this as a draft PR for now.