]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.template2d.ontology/graph/DrawingTemplate.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ontology / graph / DrawingTemplate.pgraph
diff --git a/bundles/org.simantics.modeling.template2d.ontology/graph/DrawingTemplate.pgraph b/bundles/org.simantics.modeling.template2d.ontology/graph/DrawingTemplate.pgraph
new file mode 100644 (file)
index 0000000..c2c41d6
--- /dev/null
@@ -0,0 +1,212 @@
+L0 = <http://www.simantics.org/Layer0-1.1>\r
+L0X = <http://www.simantics.org/Layer0X-1.1>\r
+STR = <http://www.simantics.org/Structural-1.2>\r
+DIA = <http://www.simantics.org/Diagram-2.2>\r
+MOD = <http://www.simantics.org/Modeling-1.2>\r
+TEMPLATE2D = <http://www.simantics.org/ModelingTemplate2d-1.0>\r
+ACT = <http://www.simantics.org/Action-1.1>\r
+G2D = <http://www.simantics.org/G2D-1.1>\r
+SEL = <http://www.simantics.org/SelectionView-1.2>\r
+SG = <http://www.simantics.org/Scenegraph-1.1>\r
+VIEW = <http://www.simantics.org/Views-1.2>\r
+DATA = <http://www.simantics.org/Datatypes-1.1>\r
+\r
+TEMPLATE2D.DrawingTemplateLibrary <T L0.Library\r
+\r
+TEMPLATE2D.HasDrawingTemplateRoot <R L0.DependsOn : L0.FunctionalRelation\r
+    --> L0.Library\r
+\r
+TEMPLATE2D.HasDrawingTemplate <R L0.DependsOn : L0.FunctionalRelation\r
+    --> TEMPLATE2D.DrawingTemplate\r
+\r
+TEMPLATE2D.DiagramTemplates : TEMPLATE2D.DrawingTemplateLibrary : TEMPLATE2D.DrawingTemplateLibraryUI\r
+    @L0.tag L0.Deprecated\r
+    L0.HasLabel "Diagram Templates"\r
+\r
+TEMPLATE2D.FlagTable.Column <T DIA.Scenegraph.Composite\r
+    >-- TEMPLATE2D.FlagTable.Column.HasWeight --> L0.Float <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "weight"\r
+    @L0.assert TEMPLATE2D.FlagTable.Column.HasWeight\r
+        30.0 : L0.Float\r
+//    >-- TEMPLATE2D.FlagTable.Column.horizontalAlignment --> TEMPLATE2D.FlagTable.Alignment <R L0.IsRelatedTo : SEL.GenericParameterType\r
+//        L0.HasLabel "Horizontal Alignment"\r
+//    @L0.assert TEMPLATE2D.FlagTable.Column.horizontalAlignment\r
+//        TEMPLATE2D.FlagTable.Alignment.Left\r
+//    >-- TEMPLATE2D.FlagTable.Column.verticalAlignment --> TEMPLATE2D.FlagTable.Alignment <R L0.IsRelatedTo : SEL.GenericParameterType\r
+//        L0.HasLabel "Vertical Alignment"\r
+//    @L0.assert TEMPLATE2D.FlagTable.Column.verticalAlignment\r
+//        TEMPLATE2D.FlagTable.Alignment.Left\r
+\r
+TEMPLATE2D.FlagTable.Column.Data <T DIA.Scenegraph.Monitor\r
+TEMPLATE2D.FlagTable.Column.Header <T DIA.Scenegraph.Monitor\r
+\r
+TEMPLATE2D.FlagTable.RowNumberColumn <T TEMPLATE2D.FlagTable.Column\r
+    >-- TEMPLATE2D.FlagTable.RowNumberColumn.start --> L0.Integer <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "Starting Number"\r
+    @L0.assert TEMPLATE2D.FlagTable.RowNumberColumn.start\r
+        1 : L0.Integer\r
+\r
+TEMPLATE2D.FlagTable.Alignment <T L0.Value\r
+    @L0.tag L0.Enumeration\r
+\r
+TEMPLATE2D.FlagTable.Alignment.Left : TEMPLATE2D.FlagTable.Alignment\r
+    L0.HasLabel "Left"\r
+TEMPLATE2D.FlagTable.Alignment.Right : TEMPLATE2D.FlagTable.Alignment\r
+    L0.HasLabel "Right"\r
+\r
+TEMPLATE2D.FlagTypeVisual <T DIA.Scenegraph.Composite\r
+//  >-- TEMPLATE2D.FlagTypeVisual.filters --> L0.Value <R L0.HasProperty : L0.FunctionalRelation\r
+//    L0.RequiresValueType "[Resource]"\r
+\r
+TEMPLATE2D.FlagTypeVisual.Filter <T L0.Entity\r
+    >-- TEMPLATE2D.FlagTypeVisual.Filter.HasProperty --> L0.String <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "reference"\r
+    >-- TEMPLATE2D.FlagTypeVisual.Filter.HasPattern --> L0.String <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "pattern"\r
+    >-- TEMPLATE2D.FlagTypeVisual.Filter.matchRequired--> L0.Boolean <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "match required"\r
+    @L0.assert TEMPLATE2D.FlagTypeVisual.Filter.HasProperty\r
+        "" : L0.String\r
+    @L0.assert TEMPLATE2D.FlagTypeVisual.Filter.HasPattern\r
+        ".*" : L0.String\r
+    @L0.assert TEMPLATE2D.FlagTypeVisual.Filter.matchRequired\r
+        true : L0.Boolean\r
+\r
+TEMPLATE2D.FlagTable <T DIA.Scenegraph.Composite\r
+    >-- TEMPLATE2D.FlagTable.HasAlignment --> TEMPLATE2D.FlagTable.Alignment <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "alignment"\r
+    >-- TEMPLATE2D.FlagTable.HasWidth --> L0.Float <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "width"\r
+    >-- TEMPLATE2D.FlagTable.HasRowCount --> L0.Integer <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "row count"\r
+    >-- TEMPLATE2D.FlagTable.HasRowHeigth --> L0.Float <R L0.HasProperty : SEL.GenericParameterType\r
+        L0.HasLabel "row height"\r
+    @L0.assert TEMPLATE2D.FlagTable.HasAlignment\r
+        TEMPLATE2D.FlagTable.Alignment.Left\r
+    @L0.assert TEMPLATE2D.FlagTable.HasRowCount\r
+        10 : L0.Integer\r
+    @L0.assert TEMPLATE2D.FlagTable.HasRowHeigth\r
+        10.0 : L0.Float\r
+    @L0.assert TEMPLATE2D.FlagTable.HasWidth\r
+        80.0 : L0.Float\r
+//    >-- TEMPLATE2D.FlagTable.HasRowOffset --> L0.Integer <R L0.HasProperty : SEL.GenericParameterType\r
+//        L0.HasLabel "row offset"\r
+//    @L0.assert TEMPLATE2D.FlagTable.HasRowOffset\r
+//        1 : L0.Integer\r
+\r
+\r
+TEMPLATE2D.DrawingTemplate <T L0.Entity : MOD.TypeWithChangeInformation \r
+    @L0.assert TEMPLATE2D.HasPage \r
+        _ : TEMPLATE2D.Page \r
+    @L0.assert TEMPLATE2D.HasPageOrientation TEMPLATE2D.PageOrientation.Landscape\r
+    @L0.assert TEMPLATE2D.HasMargin\r
+        [20.0, 20.0, 20.0, 20.0] : L0.FloatArray\r
+    @L0.assert TEMPLATE2D.HasBorder\r
+        _ : TEMPLATE2D.Border : TEMPLATE2D.BrowseNode\r
+            TEMPLATE2D.HasSize [1.0, 1.0, 1.0, 1.0] : L0.FloatArray\r
+            G2D.HasColor [0.0, 0.0, 0.0, 1.0] : G2D.Color\r
+    @L0.assert TEMPLATE2D.HasPadding\r
+        [10.0] : L0.FloatArray\r
+\r
+TEMPLATE2D.HasScenegraph <R L0.DependsOn : L0.FunctionalRelation\r
+\r
+// If there is only one value, it applies to all sides.\r
+// If there are two values, the top and bottom margins are set to the first value and the right and left margins are set to the second.\r
+// If there are three values, the top is set to the first value, the left and right are set to the second, and the bottom is set to the third.\r
+// If there are four values, they apply to the top, right, bottom, and left, respectively.\r
+TEMPLATE2D.HasMargin <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    --> L0.FloatArray\r
+\r
+TEMPLATE2D.HasBorder <R L0.Relation : L0.FunctionalRelation\r
+    --> TEMPLATE2D.Border\r
+\r
+TEMPLATE2D.HasPadding <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    --> L0.FloatArray\r
+\r
+// two dimensional array (width, height)\r
+TEMPLATE2D.HasSize <R L0.HasProperty : L0.FunctionalRelation\r
+    --> L0.FloatArray\r
+\r
+TEMPLATE2D.HasSize2 <R L0.HasProperty : L0.FunctionalRelation\r
+    --> TEMPLATE2D.Size\r
+\r
+TEMPLATE2D.Size <T L0.Literal\r
+    @L0.assert L0.HasDataType ${\r
+        width : Float,\r
+        heigth : Float}\r
+\r
+TEMPLATE2D.HasOffset <R L0.HasProperty : L0.FunctionalRelation\r
+    --> L0.FloatArray\r
+\r
+TEMPLATE2D.HasPage <R L0.Relation : L0.FunctionalRelation\r
+    --> TEMPLATE2D.Page\r
+\r
+TEMPLATE2D.HasVerticalAlign <R L0.IsRelatedTo : L0.FunctionalRelation\r
+    --> TEMPLATE2D.Alignment\r
+\r
+TEMPLATE2D.HasHorizontalAlign <R L0.IsRelatedTo : L0.FunctionalRelation\r
+    --> TEMPLATE2D.Alignment\r
+\r
+TEMPLATE2D.HasPageOrientation <R L0.HasProperty : SEL.GenericParameterType\r
+    --> TEMPLATE2D.PageOrientation\r
+    L0.HasLabel "orientation"\r
+\r
+TEMPLATE2D.Page <T L0.Entity\r
+    @L0.assert TEMPLATE2D.HasSize\r
+        [420.0, 297.0] : L0.FloatArray\r
+\r
+// Note! Use r, g, b and alpha values from 0.0 to 1.0\r
+TEMPLATE2D.Border <T L0.Entity\r
+    @L0.assert TEMPLATE2D.HasSize\r
+        [1.0, 1.0, 1.0, 1.0] : L0.FloatArray\r
+    @L0.assert G2D.HasColor\r
+        [0.0, 0.0, 0.0, 1.0] : G2D.Color\r
+\r
+TEMPLATE2D.Page.A4 : TEMPLATE2D.Page\r
+    TEMPLATE2D.HasSize [297.0, 210.0] : L0.FloatArray\r
+\r
+TEMPLATE2D.Page.A3 : TEMPLATE2D.Page\r
+    TEMPLATE2D.HasSize [420.0, 297.0] : L0.FloatArray\r
+\r
+TEMPLATE2D.Page.A2 : TEMPLATE2D.Page\r
+    TEMPLATE2D.HasSize [594.0, 420.0] : L0.FloatArray\r
+\r
+TEMPLATE2D.Page.A1 : TEMPLATE2D.Page\r
+    TEMPLATE2D.HasSize [841.0, 594.0] : L0.FloatArray\r
+\r
+TEMPLATE2D.Page.A0 : TEMPLATE2D.Page\r
+    TEMPLATE2D.HasSize [1189.0, 841.0] : L0.FloatArray\r
+\r
+\r
+TEMPLATE2D.PageOrientation <T L0.Value\r
+    @L0.tag L0.Enumeration\r
+\r
+TEMPLATE2D.PageOrientation.Portrait : TEMPLATE2D.PageOrientation\r
+TEMPLATE2D.PageOrientation.Landscape : TEMPLATE2D.PageOrientation\r
+\r
+TEMPLATE2D.Alignment <T L0.Property\r
+    @L0.tag L0.Enumeration\r
+\r
+TEMPLATE2D.Alignment.Top : TEMPLATE2D.Alignment : TEMPLATE2D.BrowseNode\r
+TEMPLATE2D.Alignment.Middle : TEMPLATE2D.Alignment : TEMPLATE2D.BrowseNode\r
+TEMPLATE2D.Alignment.Bottom : TEMPLATE2D.Alignment : TEMPLATE2D.BrowseNode\r
+TEMPLATE2D.Alignment.Left : TEMPLATE2D.Alignment : TEMPLATE2D.BrowseNode\r
+TEMPLATE2D.Alignment.Right : TEMPLATE2D.Alignment : TEMPLATE2D.BrowseNode\r
+\r
+/*\r
+TEMPLATE2D.DrawingTemplate.A4 <T TEMPLATE2D.DrawingTemplate\r
+  @L0.assert TEMPLATE2D.HasScenegraph \r
+    TEMPLATE2D.DrawingTemplate.A4.SG : TEMPLATE2D.DrawingTemplate.A4.Scenegraph \r
+\r
+TEMPLATE2D.DrawingTemplate.A4.Scenegraph <T DIA.Scenegraph.Composite\r
+   @L0.assert SG.Node.children\r
+     _ : L0.List\r
+       @L0.list\r
+         _ : DIA.Scenegraph.Monitor\r
+           DIA.Scenegraph.Monitor.reference "#HasLabel"\r
+           DIA.Scenegraph.AbstractText.width 0.0 : L0.Float\r
+           DIA.Scenegraph.AbstractText.horizontalAlignment 0 : L0.Byte\r
+           DIA.Scenegraph.AbstractText.color (255,0,0) : DATA.RGB.Integer\r
+           DIA.Scenegraph.AbstractText.font ("Arial",7,"Bold") : DATA.Font\r
+           DIA.Scenegraph.AbstractText.transform [1.0, 0.0, 0.0, 1.0, 220.0, 209.0] : G2D.Transform\r
+*/
\ No newline at end of file