]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/DiagramRouteGraphConnection.pgraph
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramRouteGraphConnection.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 STR = <http://www.simantics.org/Structural-1.2>
3 G2D = <http://www.simantics.org/G2D-1.1>
4 DIA = <http://www.simantics.org/Diagram-2.2>
5
6 // These additions are required to implement new route graph based connection storage in the graph
7
8 // NOTE: we inherit the old connection to break as little old code as possible
9 DIA.RouteGraphConnection <T DIA.Connection
10     @L0.property DIA.HasInteriorRouteNode
11
12 DIA.HasInteriorRouteNode <R L0.IsComposedOf
13     L0.HasDomain DIA.Connection
14     L0.HasRange DIA.InteriorRouteNode
15 DIA.HasLocation <R L0.HasProperty : L0.FunctionalRelation
16     L0.HasRange G2D.Point2D
17 DIA.HasRelativeLocation <R L0.HasProperty : L0.FunctionalRelation
18     L0.HasRange G2D.Point2D
19
20 DIA.HasPosition <R L0.HasProperty : L0.FunctionalRelation
21     L0.HasRange L0.Double
22 DIA.IsHorizontal <R L0.HasProperty : L0.FunctionalRelation
23     L0.HasRange L0.Boolean
24
25 DIA.RouteNode <T L0.Entity
26     @L0.property DIA.AreConnected
27 DIA.InteriorRouteNode <T DIA.RouteNode
28 DIA.RoutePoint <T DIA.InteriorRouteNode
29     @L0.singleProperty DIA.HasLocation
30     @L0.assert DIA.HasLocation [0.0,0.0]
31 DIA.RouteLine <T DIA.InteriorRouteNode
32     @L0.singleProperty DIA.HasPosition
33     @L0.singleProperty DIA.IsHorizontal
34     @L0.assert DIA.HasPosition 0.0
35     @L0.assert DIA.IsHorizontal true
36
37 DIA.Connector <T DIA.RouteNode
38     // Added DIA.RouteNode inheritance
39     @L0.property DIA.HasRelativeLocation
40     @L0.assert
41         DIA.HasRelativeLocation
42         [0.0,0.0] : G2D.Point2D
43     >-- DIA.Connector.straight --> L0.Boolean <R L0.HasProperty : L0.FunctionalRelation
44     @L0.assert DIA.Connector.straight false