Skip to content

Minor refactoring of pcl::visualization::Camera and related functions - #2901

Merged
SergioRAgostinho merged 4 commits into
PointCloudLibrary:masterfrom
taketwo:minor-camera-refactoring
Mar 12, 2019
Merged

Minor refactoring of pcl::visualization::Camera and related functions#2901
SergioRAgostinho merged 4 commits into
PointCloudLibrary:masterfrom
taketwo:minor-camera-refactoring

Conversation

@taketwo

@taketwo taketwo commented Mar 10, 2019

Copy link
Copy Markdown
Member
  • Add default constructor for the camera
  • Add constructors from VTK objects for the camera
  • Remove reference in PCLVisualizer::setupCamera signature
  • Add viewport parameter with default value to getCameraParameters methods

@taketwo taketwo added changelog: API break Meta-information for changelog generation module: visualization labels Mar 10, 2019

@SergioRAgostinho SergioRAgostinho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Comment thread visualization/include/pcl/visualization/common/common.h
Comment thread visualization/include/pcl/visualization/common/common.h
Comment thread visualization/include/pcl/visualization/common/common.h
Comment thread visualization/src/interactor_style.cpp Outdated
taketwo added 4 commits March 11, 2019 21:39
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.
@taketwo
taketwo force-pushed the minor-camera-refactoring branch from 23dd396 to 336993e Compare March 11, 2019 20:39
@SergioRAgostinho

Copy link
Copy Markdown
Member

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?

@taketwo Any comment on this? Where are you noticing API breakage?

@taketwo

taketwo commented Mar 12, 2019

Copy link
Copy Markdown
Member Author

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

@taketwo taketwo removed the changelog: API break Meta-information for changelog generation label Mar 12, 2019
@SergioRAgostinho SergioRAgostinho added the changelog: ABI break Meta-information for changelog generation label Mar 12, 2019
@SergioRAgostinho
SergioRAgostinho merged commit 5237f12 into PointCloudLibrary:master Mar 12, 2019
@taketwo
taketwo deleted the minor-camera-refactoring branch March 12, 2019 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: ABI break Meta-information for changelog generation module: visualization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants