| 1 | <schema targetNamespace="http://www.opencascade.org/OCAF/XML" |
| 2 | xmlns="http://www.w3.org/2001/XMLSchema" |
| 3 | xmlns:ocaf="http://www.opencascade.org/OCAF/XML" |
| 4 | elementFormDefault="qualified"> |
| 5 | |
| 6 | <annotation> |
| 7 | <documentation xml:lang="en"> |
| 8 | Copyright (c) 2001-2014 OPEN CASCADE SAS |
| 9 | |
| 10 | This file is part of Open CASCADE Technology software library. |
| 11 | |
| 12 | This library is free software; you can redistribute it and/or modify it under |
| 13 | the terms of the GNU Lesser General Public License version 2.1 as published |
| 14 | by the Free Software Foundation, with special exception defined in the file |
| 15 | OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
| 16 | distribution for complete text of the license and disclaimer of any warranty. |
| 17 | |
| 18 | Alternatively, this file may be used under the terms of Open CASCADE |
| 19 | commercial license or contractual agreement. |
| 20 | |
| 21 | Open Cascade Application Framework: Definition of attributes from TNaming package |
| 22 | This file is included in XmlOcaf.xsd |
| 23 | URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TNaming.xsd |
| 24 | </documentation> |
| 25 | </annotation> |
| 26 | |
| 27 | <complexType name="ArrayOfShapes"> |
| 28 | <sequence> |
| 29 | <element name="shape" minOccurs="0" maxOccurs="unbounded"> |
| 30 | <complexType> |
| 31 | <attribute name="tshape" use="required"> |
| 32 | <simpleType> |
| 33 | <restriction base="string"> |
| 34 | <pattern value="[+-ie]\d+"/> |
| 35 | </restriction> |
| 36 | </simpleType> |
| 37 | </attribute> |
| 38 | <attribute name="location" type="positiveInteger"/> |
| 39 | <attribute name="index" type="positiveInteger" use="required"/> |
| 40 | <attribute name="x" type="float"/> |
| 41 | <attribute name="y" type="float"/> |
| 42 | <attribute name="z" type="float"/> |
| 43 | </complexType> |
| 44 | </element> <!-- end of 'shape' --> |
| 45 | </sequence> |
| 46 | <attribute name="lower" type="positiveInteger" default="1"/> |
| 47 | <attribute name="upper" type="positiveInteger" default="1"/> |
| 48 | </complexType> |
| 49 | |
| 50 | <element name="TNaming_NamedShape" substitutionGroup="ocaf:AbstractAttribute"> |
| 51 | <complexType> |
| 52 | <complexContent> |
| 53 | <extension base="ocaf:AbstractAttributeType"> |
| 54 | <sequence> |
| 55 | <element name="olds" type="ocaf:ArrayOfShapes" minOccurs="0"/> |
| 56 | <element name="news" type="ocaf:ArrayOfShapes" minOccurs="0"/> |
| 57 | </sequence> |
| 58 | <attribute name="evolution" use="required"> |
| 59 | <simpleType> |
| 60 | <restriction base="string"> |
| 61 | <enumeration value="primitive"/> |
| 62 | <enumeration value="generated"/> |
| 63 | <enumeration value="modify"/> |
| 64 | <enumeration value="delete"/> |
| 65 | <enumeration value="selected"/> |
| 66 | <enumeration value="replace"/> |
| 67 | </restriction> |
| 68 | </simpleType> |
| 69 | </attribute> |
| 70 | <attribute name="version" type="positiveInteger" default="0"/> |
| 71 | </extension> |
| 72 | </complexContent> |
| 73 | </complexType> |
| 74 | <unique name="OldShapeIndexUniq"> |
| 75 | <selector xpath="."/> |
| 76 | <field xpath="@id"/> |
| 77 | <field xpath="ocaf:olds/ocaf:shape/@index"/> |
| 78 | </unique> |
| 79 | <unique name="NewShapeIndexUniq"> |
| 80 | <selector xpath="."/> |
| 81 | <field xpath="@id"/> |
| 82 | <field xpath="ocaf:news/ocaf:shape/@index"/> |
| 83 | </unique> |
| 84 | </element> |
| 85 | |
| 86 | <element name="TNaming_Naming" substitutionGroup="ocaf:AbstractAttribute"> |
| 87 | <complexType> |
| 88 | <complexContent> |
| 89 | <extension base="ocaf:AbstractAttributeType"> |
| 90 | <attribute name="index" type="int" use="required"/> |
| 91 | <attribute name="stopNS" type="positiveInteger"/> |
| 92 | <attribute name="nametype" use="required"> |
| 93 | <simpleType> |
| 94 | <restriction base="string"> |
| 95 | <enumeration value="unknown"/> |
| 96 | <enumeration value="identity"/> |
| 97 | <enumeration value="modifuntil"/> |
| 98 | <enumeration value="generation"/> |
| 99 | <enumeration value="intersection"/> |
| 100 | <enumeration value="union"/> |
| 101 | <enumeration value="subtraction"/> |
| 102 | <enumeration value="constshape"/> |
| 103 | <enumeration value="filterbyneigh"/> |
| 104 | </restriction> |
| 105 | </simpleType> |
| 106 | </attribute> |
| 107 | <attribute name="shapetype" use="required"> |
| 108 | <simpleType> |
| 109 | <restriction base="string"> |
| 110 | <enumeration value="compound"/> |
| 111 | <enumeration value="compsolid"/> |
| 112 | <enumeration value="solid"/> |
| 113 | <enumeration value="shell"/> |
| 114 | <enumeration value="face"/> |
| 115 | <enumeration value="wire"/> |
| 116 | <enumeration value="edge"/> |
| 117 | <enumeration value="vertex"/> |
| 118 | <enumeration value="shape"/> |
| 119 | </restriction> |
| 120 | </simpleType> |
| 121 | </attribute> |
| 122 | <attribute name="arguments" type="ocaf:ListOfInteger"/> |
| 123 | </extension> |
| 124 | </complexContent> |
| 125 | </complexType> |
| 126 | </element> |
| 127 | |
| 128 | </schema> |