-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Board editor: Tool to measure wire length #564
Conversation
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.
Nice, seems to work 🙂
Sorry for the amount of comments ;)
In addition to the comments, could you swap the order of the two new methods in bes_select.cpp
to have consistent order in *.h and *.cpp?
44c403a
to
455fa58
Compare
I think all comments should be addressed now. |
You forgot one 🙂:
And CI seems to be broken now ;) |
WTF, I did fix that, but for some reason it got lost during rebasing... |
455fa58
to
7a55934
Compare
Hopefully CI should be fixed now. It was due to a unused-variable warning. |
When right-clicking on an element in the board editor, if the right-clicked element is part of an active selection, keep it as-is. However, if it's not part of an active selection, clear the selection and select the right-clicked element instead.
7a55934
to
f75dd96
Compare
The tool in the right-click context menu measures the total length of all selected netlines directly connected to the netline below the cursor.
f75dd96
to
590b869
Compare
Thanks! 👍 |
Board editor: Tool to measure wire length (cherry picked from commit 7a75aa3)
Allow measuring the length of the selected wire segment.
If not all selected netlines are directly connected, a warning is shown.
The functionality is currently quite limited. It only measures from start point to end point and does not consider the width of the netline. However, it's quite hard to define what the correct behavior should be.
Other changes in this PR:
Point::getLength
now returnsUnsignedLength
BI_NetLine
now has agetLength
method