0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / XmlOcafResource / XmlOcaf_TNaming_NamedShape.xsd
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 attribute TNaming_NamedShape
22     This file is included in XmlOcaf.xsd
23     URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TNaming_NamedShape.xsd
24   </documentation>
25 </annotation>
26
27 <complexType name="Location">
28   <sequence>
29     <element name="datum" minOccurs="0">
30       <complexType>
31         <attribute name="id" type="positiveInteger" use="required"/>
32         <attribute name="trsf" use="required">
33           <simpleType>
34             <restriction base="ocaf:ListOfReal">
35               <length value="14"/>
36             </restriction>
37           </simpleType>
38         </attribute>
39       </complexType>
40     </element>
41     <element name="location" type="ocaf:Location" minOccurs="0"/>
42   </sequence>
43   <attribute name="power" type="positiveInteger" use="required"/>
44   <attribute name="datum" type="positiveInteger" use="required"/>
45 </complexType>
46
47 <element name="TNaming_NamedShape" substitutionGroup="ocaf:AbstractAttribute">
48   <complexType>
49     <complexContent>
50       <extension base="ocaf:AbstractAttributeType">
51         <sequence>
52           <element name="array" minOccurs="0" maxOccurs="2">
53             <complexType>
54               <sequence>
55                 <element name="shape" minOccurs="0" maxOccurs="unbounded">
56                   <complexType>
57                     <sequence>
58                       <element name="location" type="ocaf:Location" minOccurs="0"/>
59                     </sequence>
60                     <attribute name="tshape" use="required">
61                       <simpleType>
62                         <restriction base="string">
63                           <pattern value="[+-ie]\d+"/>
64                         </restriction>
65                       </simpleType>
66                     </attribute>
67                     <attribute name="index" type="positiveInteger" use="required"/>
68                   </complexType>
69                 </element>
70               </sequence>
71               <attribute name="id" type="positiveInteger" use="required"/>
72               <attribute name="lower" type="positiveInteger"/>
73               <attribute name="upper" type="positiveInteger"/>
74             </complexType>
75           </element>
76         </sequence>
77         <attribute name="olds" type="positiveInteger"/>
78         <attribute name="news" type="positiveInteger"/>
79         <attribute name="evolution" use="required">
80           <simpleType>
81             <restriction base="string">
82               <enumeration value="primitive"/>
83               <enumeration value="generated"/>
84               <enumeration value="modify"/>
85               <enumeration value="delete"/>
86               <enumeration value="selected"/>
87               <enumeration value="replace"/>
88             </restriction>
89           </simpleType>
90         </attribute>
91         <attribute name="version" type="positiveInteger"/>
92       </extension>
93     </complexContent>
94   </complexType>
95 </element>
96
97 </schema>