-
Notifications
You must be signed in to change notification settings - Fork 61
added blink compare to ronchi compare #331
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
Conversation
|
🚀 New build available for commit |
|
Sounds great. I hope to look at this tomorrow. |
|
Deleted debug line in profile.cpp hide save button during blink. Just pushed. |
|
🚀 New build available for commit |
|
Well it works. It seems like there should be some code to stop the timer if someone closes the window though. I tried closing the window while it was blinking and closed the ronchi window also and even deleted one of the wavefronts but no crash so I guess it's okay? I'd feel better if you detected the window closing. Or does the window run a destructor which in turn runs the timer destructor which stops the timer? |
|
Yes I think that all gets deleted when the window closes. |
|
All objects created by a QDialog that have it as their parent are deleted when the dialog is deleted. Widgets that are in a layout have the layout as their parent and the layout eventually has has the dialog as it's parent. The timer has the dialog as it's parent. So it is deleted as well. |
|
agreed. timer should be gone at the end of this if statement: |
Cpp-Linter Report
|
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.
| if (stepSizeMM <= 0) return; | ||
|
|
||
| // 4. Draw Rings and Labels | ||
| for (double currentMM = stepSizeMM; currentMM <= mirrorRadiusMM; currentMM += stepSizeMM) { |
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.
clang-tidy diagnostic
foucaultview.cpp:217:5: warning: [clang-analyzer-security.FloatLoopCounter]
Variable 'currentMM' with floating point type 'double' should not be used as a loop counter
217 | for (double currentMM = stepSizeMM; currentMM <= mirrorRadiusMM; currentMM += stepSizeMM) {
| ^ ~~~~~~~~~ ~~~~~~~~~
foucaultview.cpp:217:5: note: Variable 'currentMM' with floating point type 'double' should not be used as a loop counter
217 | for (double currentMM = stepSizeMM; currentMM <= mirrorRadiusMM; currentMM += stepSizeMM) {
| ^ ~~~~~~~~~ ~~~~~~~~~|
🚀 New build available for commit |
|
I merged pr 334. @atsju go ahead and close this one and open a new one based on dale's branch. I think that is what you recommend? I have to travel for the next 4 hours and don't have time to look at any of this until much later today. |
New code to blink top two ronchi selected wave fronts