-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Use strongly typed 'enum' instead of 'int' for properties in PCLVisua… #5526
base: master
Are you sure you want to change the base?
Use strongly typed 'enum' instead of 'int' for properties in PCLVisua… #5526
Conversation
e0eb54e
to
1d9340d
Compare
1d9340d
to
f4b6104
Compare
* \note The list of properties can be found in \ref pcl::visualization::LookUpTableRepresentationProperties. | ||
*/ | ||
bool | ||
setPointCloudRenderingProperties (int property, double val1, double val2, double val3, |
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.
All setters return some boolean flag which is never checked in code. I was thinking adding and attribute [[noreturn]] if the wrong behavior (false value return) could cause issues. If is not critical, without the attribute should also be fine.
@mvieth/ @larshg: Could you please review this PR? |
@theoniko Sorry for the late response, this pull request was kind of lost in my notifications list Similar problem for the removal of the parameter Maybe it would also make sense to state in the documentation which properties are accepted? For example that the functions with 3 double parameters only accepts
You probably mean |
…lizer code
Fixes #1692