Minor refactoring of pcl::visualization::Camera and related functions - #2901
Conversation
SergioRAgostinho
left a comment
There was a problem hiding this comment.
Final comment. You're definitely breaking the ABI with this PR, but I'm failing to see the API breakage. You've added default parameters in all methods you've changed the signature and the methods you've made const are not virtual, so it should be a safe transition no?
Initializes parameters with reasonable default values. The values were copied over from pcl::visualization::PCLVisualizer::initCameraParameters().
This commit also updates code to use the new constructors.
argc parameter does not to be a reference. Also improves function documentation.
23dd396 to
336993e
Compare
@taketwo Any comment on this? Where are you noticing API breakage? |
|
Sorry, missed this question. Yes, this should be a safe transition, certainly not "API breakage". Rather "API change" but we don't have such a label (and probably don't need anyway). |
PCLVisualizer::setupCamerasignaturegetCameraParametersmethods