]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph
Added support for eccentric reducers
[simantics/3d.git] / org.simantics.plant3d.ontology / graph / plant3d_viewpoint.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 VP = <http://www.simantics.org/Viewpoint-1.2>
3 PROJ = <http://www.simantics.org/Project-1.2>
4 SIM = <http://www.simantics.org/Simulation-1.1>
5 IMAGE = <http://www.simantics.org/Image2-1.2>
6 ACT = <http://www.simantics.org/Action-1.1>
7 P3D = <http://www.simantics.org/Plant3D-0.1>
8 CSG = <http://www.simantics.org/CSG-0.1>
9 SILK = <http://www.simantics.org/Silk-1.1>
10
11
12 PBC = P3D.P3DBrowseContext : VP.BrowseContext
13     VP.BrowseContext.IsIncludedIn PROJ.ProjectBrowseContext
14     @VP.constantImageRule P3D.Plant IMAGES.Factory
15     @VP.constantImageRule P3D.Equipment IMAGES.Tank
16     @VP.constantImageRule P3D.TurnComponent IMAGES.Elbow
17     @VP.constantImageRule P3D.Nozzle IMAGES.Nozzle
18     @VP.constantImageRule P3D.InlineComponent IMAGES.Component
19     @VP.constantImageRule P3D.Builtin.Straight IMAGES.Straight
20     @VP.constantImageRule P3D.EndComponent IMAGES.Component
21     @VP.constantImageRule P3D.PipeRun IMAGES.Straight
22     @VP.relationChildRule PROJ.Project L0.ConsistsOf P3D.Plant
23     @VP.relationChildRule P3D.Node P3D.childen P3D.Node
24     @VP.relationChildRule P3D.Node P3D.HasNozzle P3D.Node
25
26
27 IMAGES = P3D.Images : L0.Library
28 IMAGES.Component : IMAGE.PngImage
29     @L0.loadBytes "images/Component.png"
30 IMAGES.Elbow : IMAGE.PngImage
31     @L0.loadBytes "images/Elbow.png"
32 IMAGES.Factory : IMAGE.PngImage
33     @L0.loadBytes "images/factory.png"
34 IMAGES.Nozzle : IMAGE.PngImage
35     @L0.loadBytes "images/Nozzle.png"
36 IMAGES.Straight : IMAGE.PngImage
37     @L0.loadBytes "images/Straight.png"
38 IMAGES.Tank : IMAGE.PngImage
39     @L0.loadBytes "images/tank.png"
40     
41 MAC = P3D.P3DActionContext : VP.BrowseContext
42     VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext    
43
44
45 MAC.newContribution : L0.Template
46     @template %actionContext %label %action %image
47         %actionContext
48             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
49                 L0.HasLabel %label
50                 VP.ActionContribution.HasImage %image
51                 VP.ActionContribution.HasCategory VP.NewActionCategory
52                 VP.ActionContribution.HasNodeType P3D.Plant
53                 VP.ActionContribution.HasAction %action
54     
55 MAC.newTypeContribution : L0.Template
56     @template %actionContext %label %action %type %image
57         %actionContext
58             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
59                 L0.HasLabel %label
60                 VP.ActionContribution.HasImage %image
61                 VP.ActionContribution.HasCategory VP.NewActionCategory
62                 VP.ActionContribution.HasNodeType %type
63                 VP.ActionContribution.HasAction %action
64                 
65 MAC.editTypeContribution : L0.Template
66     @template %actionContext %label %action %type %image
67         %actionContext
68             VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
69                 L0.HasLabel %label
70                 VP.ActionContribution.HasImage %image
71                 VP.ActionContribution.HasCategory VP.EditActionCategory
72                 VP.ActionContribution.HasNodeType %type
73                 VP.ActionContribution.HasAction %action