]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkProfiles.pgraph
Value type of dynamic symbol function to Maybe String
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkProfiles.pgraph
index d00bf42259b1db2314b7a7949623d027e6b5d572..a5c5cee59b445966d6c01034e43c20dead2ffcd8 100644 (file)
@@ -9,27 +9,26 @@ SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
 G2D = <http://www.simantics.org/G2D-1.1>
 DN = <http://www.simantics.org/DistrictNetwork-1.0>
 
-/*
-DN.DistrictProfile : DIA.Profile
-    L0.HasLabel "District Network Profile"
-    DIA.Profile.priority 0.0
-    DIA.HasEntries
-      _ : DIA.Profile
-        @L0.list
-          DN.DistrictProfile.entry1
-            L0.HasLabel "Node Coloring"
-            @DIA.groupStyleProfileEntry DN.VertexStyle DN.Groups.VertexGroup
-          DN.DistrictProfile.entry2
-            L0.HasLabel "Edge Styling"
-            @DIA.groupStyleProfileEntry DN.EdgeStyle DN.Groups.EdgeGroup
-*/
-
 DN.Groups : L0.Library
 
+DN.DistrictNodeGroup <T DIA.TypeGroup
+    >-- DN.DistrictNodeGroup.hasComponentTypeName ==> "String" <R L0.HasProperty
+
 DN.Groups.VertexGroup : DIA.TypeGroup
-  DIA.TypeGroup.HasType DN.Vertex
+    DIA.TypeGroup.HasType DN.Vertex
 DN.Groups.EdgeGroup : DIA.TypeGroup
-  DIA.TypeGroup.HasType DN.Edge
+    DIA.TypeGroup.HasType DN.Edge
+
+DN.ElementColoringStyle : DIA.Style
+DN.VertexSizeStyle : DIA.Style
+DN.EdgeThicknessStyle : DIA.Style
+DN.HideStyle : DIA.Style
+DN.VertexSymbolStyle : DIA.Style
 
-DN.VertexStyle : DIA.Style
-DN.EdgeStyle : DIA.Style
+// Function for dynamic selection of symbols for a vertex
+// The input of the function is a DN.Vertex
+// The output of the function should be SVG
+DN.HasSymbolFunction <R L0.HasProperty
+    <-- DIA.ProfileEntry
+    --> L0.Value
+    ==> "Resource -> <ReadGraph> Maybe String"