Skip to content
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

Ensure virtual functions can be called from derived ctkVTK view pimpl #1153

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Oct 29, 2023

Add protected constructor to ctkVTKRenderView and ctkVTKSliceView for associating a derived pimpl.

This is required to have the complete virtual function chain executed when virtual function are called in the pimpl init() function.

Notes

While I confirmed that building Slicer against this change did not require any additional changes, it will be needed to move forward with the integration of ENH: Allow virtual func to be called during MRML(ThreeD|Slice)View pimpl1

Footnotes

  1. https://github.com/Slicer/Slicer/pull/7311/commits/dca4f5dd541c5320ba5900f1a6c034c4cd19ee02

@jcfr jcfr changed the title Ensure slice render views virtual functions called during pimpl init Ensure virtual functions can be called from derived ctkVTK view pimpl Oct 29, 2023
@jcfr jcfr force-pushed the ensure-slice-render-views-virtual-functions-called-during-pimpl-init branch from bc7d4e5 to 2ddd76b Compare October 29, 2023 18:45
…pimpl

Add protected constructor to ctkVTKRenderView and ctkVTKSliceView for
associating a derived pimpl.

This is required to have the complete virtual function chain executed
when virtual function are called in the pimpl init() function.
@jcfr jcfr force-pushed the ensure-slice-render-views-virtual-functions-called-during-pimpl-init branch from 2ddd76b to a330e66 Compare October 29, 2023 19:18
@jcfr jcfr requested review from lassoan and pieper October 30, 2023 19:50
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

Sounds reasonable.

@jcfr jcfr merged commit f53820a into commontk:master Oct 30, 2023
3 checks passed
@jcfr jcfr deleted the ensure-slice-render-views-virtual-functions-called-during-pimpl-init branch October 30, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants