]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkProfiles.pgraph
Remove deprecated profiles in favor of DNVisualisationStyle
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkProfiles.pgraph
index d00bf42259b1db2314b7a7949623d027e6b5d572..d17219de171b6a474ee4dc5e72c3b0c8521d3158 100644 (file)
@@ -9,27 +9,38 @@ 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.ElementGroup : DIA.TypeGroup
+    DIA.TypeGroup.HasType DN.Element
 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
+
+// 21.10.2019 by Jani: DNVisualisationStyle deprecates these
+//DN.ElementColoringStyle : DIA.Style
+//DN.ElementSizingStyle : DIA.Style
+
+//DN.ArrowLengthStyle : DIA.Style
+//DN.HideStyle : DIA.Style
+DN.VertexSymbolStyle : DIA.Style
+DN.ConnectionLineStyle : DIA.Style
+DN.ElevationRectangleStyle : DIA.Style
+
+// Style for user component-specified text grid entries
+DN.DistrictNetworkHoverInfoStyle : DIA.Style
+
+// Style for user component-specified static info text for network branches
+DN.DistrictNetworkStaticInfoStyle : 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"