]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/scl/plant3d/utils/P3DUtil.scl
SCL bindings to some G3D and Plant3D Java classes
[simantics/3d.git] / org.simantics.plant3d / scl / plant3d / utils / P3DUtil.scl
diff --git a/org.simantics.plant3d/scl/plant3d/utils/P3DUtil.scl b/org.simantics.plant3d/scl/plant3d/utils/P3DUtil.scl
new file mode 100644 (file)
index 0000000..1e73caf
--- /dev/null
@@ -0,0 +1,34 @@
+import "Simantics/DB"
+
+importJava "org.simantics.plant3d.utils.Item$Type" where
+    data ItemType
+    
+    EQUIPMENT :: ItemType
+    INLINE :: ItemType
+    TURN :: ItemType
+    END :: ItemType
+    NOZZLE :: ItemType
+    
+
+importJava "org.simantics.plant3d.utils.Item" where
+    data Item
+    
+    getUri :: Item -> String
+    getName :: Item -> String
+    getType :: Item -> ItemType
+    
+    isCode :: Item -> Boolean
+    isVariable :: Item -> Boolean
+    isSizeChange :: Item -> Boolean
+
+importJava "org.simantics.plant3d.utils.P3DUtil" where
+
+    getEquipments :: () -> [Item]
+    getNozzles :: () -> [Item]
+    getTurns :: () -> [Item]
+    getInlines :: () -> [Item]
+    getEnds :: () -> [Item]
+    filterUserComponents :: [Item] -> [Item]
+    
+    createModel :: String -> <WriteGraph> Resource
+