Therefore, I am seeking advice on how to copy the data.
When I have the original node A and the copied node A’, I want to ensure that any transformations (such as color, transparency, position, etc.) applied to node A are reflected in node A’ and vice versa.
This way, any modifications made in one view will be consistently reflected in both the transformed view and the non-transformed view.
The nodes to be copied include Volume, Model, Markup, and Transform. I also plan to create copies for any new nodes that are added.
I don’t think there’s any code that does the specific operation currently, but it shouldn’t be too much work to make a kind of “dynamic clone” node.
Effectively you would just need to observe modify events from the source node and copy parameters to the cloned nodes when anything change, but filter out any changes you don’t have to have apply to the clone, like setting the transforms. This same code could handle the shared bulk data (both nodes pointing to the same vtkImageData for example).
If this approach works and you find it useful it would be great to consider making it a core feature somehow, or maybe part of an extension or just an example in the script repository.