-
Notifications
You must be signed in to change notification settings - Fork 205
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
Migrate measure tool #264
Migrate measure tool #264
Conversation
This avoids problems with protected Ogre::SharedPtr member.
- ToolTestFixture does not inherit from testing::Test so that it can be used together with DisplayTestFixture. Multiple inheritance of test fixtures does not work properly.
Change the default to have higher contrast
7662b9a
to
f62f8fe
Compare
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.
lgtm, I had some small comments, but they can be addressed separately or not at all.
*/ | ||
|
||
#include <gtest/gtest.h> | ||
#include <gmock/gmock.h> |
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.
I think you should only include one or the other here. I don't think it will cause a problem, but I do think it's unnecessary as I think gmock include gtest for you. At some point in the past it could cause problems to include both, but I think that's been resolved at this point. Either way, consider not doing this in the future or a small follow up pr to change this instance.
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.
We'll make a small followup PR, because there are also some other small things I'd like to polish (e.g. the select tool test isn't included in the CMakeLists, etc.). Thanks for pointing this out to us!
@@ -28,6 +28,7 @@ | |||
*/ | |||
|
|||
#include <gtest/gtest.h> | |||
#include <gmock/gmock.h> |
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.
Same here.
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.
And several places more in this pr, but I won't flag all of them.
Closes #212.
It also introduces a new property for the measure tool that allows to configure the color of the measurement line as the old default was barely visible in front of the default background. The default color was changed to a dark yellow. This property is visible once #251 is merged.