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
Extend vtkMRMLNode::Copy behavior #2608
Milestone
Comments
jcfr
pushed a commit
to jcfr/Slicer
that referenced
this issue
Apr 16, 2020
This commit updates the MRML node API for copying node content to allow shallow/deep-copy of node content (without node references, name, ID, etc.) It adds CopyContent method to copy node content only (without node name, references, etc.) with the option of doing fast shallow-copy or full deep-copy. It adds vtkMRMLCopyContentMacro to specify if CopyContent method is implemented for the current class. Since it is easy to suppress modified events externally, it also removes CopyWithSingleModifiedEvent, CopyWithoutModifiedEvent, and CopyWithSceneWithSingleModifiedEvent to simplify node copy API. See Slicer#2608
jcfr
pushed a commit
to jcfr/Slicer
that referenced
this issue
Apr 16, 2020
This commit updates the MRML node API for copying node content to allow shallow/deep-copy of node content (without node references, name, ID, etc.) It adds CopyContent method to copy node content only (without node name, references, etc.) with the option of doing fast shallow-copy or full deep-copy. It adds vtkMRMLCopyContentMacro to specify if CopyContent method is implemented for the current class. Since it is easy to suppress modified events externally, it also removes CopyWithSingleModifiedEvent, CopyWithoutModifiedEvent, and CopyWithSceneWithSingleModifiedEvent to simplify node copy API. See Slicer#2608
jcfr
pushed a commit
that referenced
this issue
Apr 17, 2020
This commit updates the MRML node API for copying node content to allow shallow/deep-copy of node content (without node references, name, ID, etc.) It adds CopyContent method to copy node content only (without node name, references, etc.) with the option of doing fast shallow-copy or full deep-copy. It adds vtkMRMLCopyContentMacro to specify if CopyContent method is implemented for the current class. Since it is easy to suppress modified events externally, it also removes CopyWithSingleModifiedEvent, CopyWithoutModifiedEvent, and CopyWithSceneWithSingleModifiedEvent to simplify node copy API. See #2608
Closing. Fixed in #4830 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The text was updated successfully, but these errors were encountered: