X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d%2Fscl%2FPlant3d%2FUtils%2FComponentUtils.scl;h=e88d271a545c49124666b502df50112721ffc971;hb=refs%2Fchanges%2F58%2F3158%2F1;hp=c3ef6365677dcd22fd347564c7f63edc47cd97b6;hpb=11cf079ab699e65f6c97b86745a3c8cbd65817b8;p=simantics%2F3d.git diff --git a/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl b/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl index c3ef6365..e88d271a 100644 --- a/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl +++ b/org.simantics.plant3d/scl/Plant3d/Utils/ComponentUtils.scl @@ -2,6 +2,7 @@ import "Plant3d/Scenegraph/PipelineComponent" import "Plant3d/Scenegraph/Equipment" import "Plant3d/Scenegraph/Nozzle" import "Plant3d/Scenegraph/P3DRootNode" +import "G3D/Math/Vector3d" import "./P3DUtil" importJava "org.simantics.plant3d.utils.ComponentUtils" where @@ -21,11 +22,17 @@ importJava "org.simantics.plant3d.utils.ComponentUtils" where @JavaName addComponent addComponent :: P3DRootNode -> PipelineComponent -> InsertInstruction -> PipelineComponent + @JavaName connect + connect :: PipelineComponent -> PipelineComponent -> Boolean + + @JavaName connect + connect2 :: PipelineComponent -> PipelineComponent -> PositionType -> Vector3d -> Boolean + importJava "org.simantics.plant3d.utils.ComponentUtils$InsertInstruction" where data InsertInstruction @JavaName "" - createInsertInstruction :: () -> InsertInstruction + createInsertInstruction :: () -> InsertInstruction setTypeUri :: InsertInstruction -> String -> () setPosition :: InsertInstruction -> PositionType -> ()