X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.plant3d.ontology%2Fgraph%2Fplant3d_viewpoint.pgraph;fp=org.simantics.plant3d.ontology%2Fgraph%2Fplant3d_viewpoint.pgraph;h=c2d02ada614bfcbcf3d6ca33eb6fda516e88f632;hb=a460e609147d064dd3da464bcf1626845e0f93b4;hp=0000000000000000000000000000000000000000;hpb=3e2205a22ddee674f7936da114f5d520bd83e0ff;p=simantics%2F3d.git diff --git a/org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph b/org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph new file mode 100644 index 00000000..c2d02ada --- /dev/null +++ b/org.simantics.plant3d.ontology/graph/plant3d_viewpoint.pgraph @@ -0,0 +1,73 @@ +L0 = +VP = +PROJ = +SIM = +IMAGE = +ACT = +P3D = +CSG = +SILK = + + +PBC = P3D.P3DBrowseContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn PROJ.ProjectBrowseContext + @VP.constantImageRule P3D.Plant IMAGES.Factory + @VP.constantImageRule P3D.Equipment IMAGES.Tank + @VP.constantImageRule P3D.TurnComponent IMAGES.Elbow + @VP.constantImageRule P3D.Nozzle IMAGES.Nozzle + @VP.constantImageRule P3D.InlineComponent IMAGES.Component + @VP.constantImageRule P3D.Builtin.Straight IMAGES.Straight + @VP.constantImageRule P3D.EndComponent IMAGES.Component + @VP.constantImageRule P3D.PipeRun IMAGES.Straight + @VP.relationChildRule PROJ.Project L0.ConsistsOf P3D.Plant + @VP.relationChildRule P3D.Node P3D.childen P3D.Node + @VP.relationChildRule P3D.Node P3D.HasNozzle P3D.Node + + +IMAGES = P3D.Images : L0.Library +IMAGES.Component : IMAGE.PngImage + @L0.loadBytes "images/Component.png" +IMAGES.Elbow : IMAGE.PngImage + @L0.loadBytes "images/Elbow.png" +IMAGES.Factory : IMAGE.PngImage + @L0.loadBytes "images/factory.png" +IMAGES.Nozzle : IMAGE.PngImage + @L0.loadBytes "images/Nozzle.png" +IMAGES.Straight : IMAGE.PngImage + @L0.loadBytes "images/Straight.png" +IMAGES.Tank : IMAGE.PngImage + @L0.loadBytes "images/tank.png" + +MAC = P3D.P3DActionContext : VP.BrowseContext + VP.BrowseContext.IsIncludedIn PROJ.ProjectActionContext + + +MAC.newContribution : L0.Template + @template %actionContext %label %action %image + %actionContext + VP.BrowseContext.HasActionContribution _ : VP.ActionContribution + L0.HasLabel %label + VP.ActionContribution.HasImage %image + VP.ActionContribution.HasCategory VP.NewActionCategory + VP.ActionContribution.HasNodeType P3D.Plant + VP.ActionContribution.HasAction %action + +MAC.newTypeContribution : L0.Template + @template %actionContext %label %action %type %image + %actionContext + VP.BrowseContext.HasActionContribution _ : VP.ActionContribution + L0.HasLabel %label + VP.ActionContribution.HasImage %image + VP.ActionContribution.HasCategory VP.NewActionCategory + VP.ActionContribution.HasNodeType %type + VP.ActionContribution.HasAction %action + +MAC.editTypeContribution : L0.Template + @template %actionContext %label %action %type %image + %actionContext + VP.BrowseContext.HasActionContribution _ : VP.ActionContribution + L0.HasLabel %label + VP.ActionContribution.HasImage %image + VP.ActionContribution.HasCategory VP.EditActionCategory + VP.ActionContribution.HasNodeType %type + VP.ActionContribution.HasAction %action \ No newline at end of file