]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/scl/Plant3d/Utils/P3DUtil.scl
d185992dcbb7bc67a1b9b31586ee6e88f8cc9591
[simantics/3d.git] / org.simantics.plant3d / scl / Plant3d / Utils / P3DUtil.scl
1 import "Simantics/DB"
2
3 importJava "org.simantics.plant3d.utils.Item$Type" where
4     data ItemType
5     
6     EQUIPMENT :: ItemType
7     INLINE :: ItemType
8     TURN :: ItemType
9     END :: ItemType
10     NOZZLE :: ItemType
11     
12
13 importJava "org.simantics.plant3d.utils.Item" where
14     data Item
15     
16     getUri :: Item -> <Proc> String
17     getName :: Item -> <Proc> String
18     getType :: Item -> <Proc> ItemType
19     
20     isCode :: Item -> <Proc> Boolean
21     isVariable :: Item -> <Proc> Boolean
22     isSizeChange :: Item -> <Proc> Boolean
23
24 importJava "org.simantics.plant3d.utils.P3DUtil" where
25
26     getEquipments :: () -> <Proc> [Item]
27     getNozzles :: () -> <Proc> [Item]
28     getTurns :: () -> <Proc> [Item]
29     getInlines :: () -> <Proc> [Item]
30     getEnds :: () -> <Proc> [Item]
31     filterUserComponents :: [Item] -> <Proc> [Item]
32     
33     createModel :: String -> <WriteGraph> Resource
34