]> gerrit.simantics Code Review - simantics/3d.git/commit
Handle PipeRun removals with detaching Components. 42/3642/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 29 Nov 2019 10:44:52 +0000 (12:44 +0200)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Fri, 29 Nov 2019 10:44:52 +0000 (12:44 +0200)
commitf346390a5a8cd4262a9aa68951e55d504d412549
tree863238d0ae26b5c0c3a891773720a635c765e0ab
parent81c2595de58576c1d0f8220633557a1c77c623de
Handle PipeRun removals with detaching Components.

Some operations can move Components between PipeRuns. If we create a
PipeRun within such operation, and the undo the modification, removal of
the created PipeRun may remove Components before they are attached to
their original PipeRuns.

1. Now PipeRun removal detaches Components, so that Component structure
remains intact.
2. PipeCOntrolPoint removal work without PipeRun.
3. AbstractVTKNodeMap calls INode.remove() all removed nodes.

gitlab #35

Change-Id: I37ec56302581ab176fe630c91b3cddb301ad1210
org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/common/AbstractVTKNodeMap.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipeRun.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/PipelineComponent.java
org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/controlpoint/PipeControlPoint.java