]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ontology/graph/DistrictNetworkDiagramSettings.pgraph
Added Edge.ThicknessProperty for generic edge-thickness styling
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkDiagramSettings.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DIA = <http://www.simantics.org/Diagram-2.2>
3 STR = <http://www.simantics.org/Structural-1.2>
4 MOD = <http://www.simantics.org/Modeling-1.2>
5 VP = <http://www.simantics.org/Viewpoint-1.2>
6 IMAGE = <http://www.simantics.org/Image2-1.2>
7 SEL = <http://www.simantics.org/SelectionView-1.2>
8 SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
9 G2D = <http://www.simantics.org/G2D-1.1>
10 DN = <http://www.simantics.org/DistrictNetwork-1.0>
11
12 // ----------------------------------------------------------------------------
13
14 DN.EdgeThicknessPropertyParameterType <T SEL.GenericParameterType
15     @L0.assert SEL.HasDisplayValue
16         _ : SEL.DisplayValue
17             SEL.HasEnumerationValues DN.Functions.edgeThicknessPropertyEnumerationValues : L0.Function
18             SEL.HasCustomModifier DN.Functions.edgeThicknessPropertyModifier : L0.Function
19
20 DN.Vertex.ScaleProperty <T L0.Value
21     >-- DN.Vertex.ScaleProperty.value --> L0.Relation <R L0.HasProperty : SEL.GenericParameterType
22         L0.readOnly true
23     >-- DN.Vertex.ScaleProperty.scale ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
24         L0.readOnly true
25
26 DN.Edge.ThicknessProperty <T L0.Value
27     >-- DN.Edge.ThicknessProperty.scale --> L0.Double <R L0.HasProperty : SEL.GenericParameterType
28         L0.readOnly true
29     >-- DN.Edge.ThicknessProperty.value --> L0.Relation <R L0.HasProperty : SEL.GenericParameterType
30         L0.readOnly true
31
32 DN.Diagram
33     //>-- DN.Diagram.nodeScale ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
34     //    L0.HasLabel "Node Scale"
35     //>-- DN.Diagram.nodeScalingProperty --> DN.Vertex.ScaleProperty <R L0.HasProperty : SEL.GenericParameterType
36     //   L0.HasLabel "Node Scaling Property"
37     >-- DN.Diagram.edgeThicknessScale ==> "Double" <R L0.HasProperty : SEL.GenericParameterType
38         L0.HasLabel "Edge Thickness Scale"
39     >-- DN.Diagram.edgeThicknessProperty --> DN.Edge.ThicknessProperty <R L0.HasProperty : DN.EdgeThicknessPropertyParameterType
40         L0.HasLabel "Edge Thickness Property"
41     //@L0.assert DN.Diagram.nodeScale 1.0
42     //@L0.assert DN.Diagram.nodeScaleProperty DN.Vertex.ScaleProperty.SupplyPressure
43     @L0.assert DN.Diagram.edgeThicknessScale 1.0
44     @L0.assert DN.Diagram.edgeThicknessProperty DN.Edge.ThicknessProperty.Diameter
45
46 // ----------------------------------------------------------------------------
47 // Built-in enumerated ScaleProperty & ThicknessProperty instances
48
49 DN.Vertex.ScaleProperty.SupplyPressure : DN.Vertex.ColorProperty
50     L0.HasLabel "Nominal Supply Pressure"
51     DN.Vertex.ScaleProperty.value DN.Vertex.HasSupplyPressure
52     DN.Vertex.ScaleProperty.scale 1.0
53
54 DN.Edge.ThicknessProperty.Diameter : DN.Edge.ThicknessProperty
55     L0.HasLabel "Diameter"
56     DN.Edge.ThicknessProperty.value DN.Edge.HasDiameter
57     DN.Edge.ThicknessProperty.scale 0.001
58
59 DN.Edge.ThicknessProperty.NominalMassFlow : DN.Edge.ThicknessProperty
60     L0.HasLabel "Nominal Mass Flow"
61     DN.Edge.ThicknessProperty.value DN.Edge.HasNominalMassFlow
62     DN.Edge.ThicknessProperty.scale 1.0
63