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.
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