0031642: Visualization - crash in Graphic3d_Structure::SetVisual() on redisplaying...
[occt.git] / src / XmlOcafResource / XmlOcaf_TDataStd.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 attributes from TDataStd
22     This file is included in XmlOcaf.xsd
23     URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDataStd.xsd
24   </documentation>
25 </annotation>
26
27 <element name="TDataStd_Position" type="ocaf:AbsList3RealAttributeType"
28          substitutionGroup="ocaf:AbstractList3RealAtt"/>
29
30 <element name="TDataStd_Name"           type="ocaf:AbsStringAttributeType"
31          substitutionGroup="ocaf:AbstractStringAtt"/>
32
33 <element name="TDataStd_Comment"        type="ocaf:AbsStringAttributeType"
34          substitutionGroup="ocaf:AbstractStringAtt"/>
35
36 <element name="TDataStd_Integer"        type="ocaf:AbsIntegerAttributeType"
37          substitutionGroup="ocaf:AbstractIntegerAtt"/>
38
39 <element name="TDataStd_Real"           type="ocaf:AbsRealAttributeType"
40          substitutionGroup="ocaf:AbstractRealAtt"/>
41
42 <element name="TDataStd_Point"          type="ocaf:AbstractAttributeType"
43          substitutionGroup="ocaf:AbstractAttribute"/>
44
45 <element name="TDataStd_Axis"           type="ocaf:AbstractAttributeType"
46          substitutionGroup="ocaf:AbstractAttribute"/>
47
48 <element name="TDataStd_Plane"          type="ocaf:AbstractAttributeType"
49          substitutionGroup="ocaf:AbstractAttribute"/>
50
51 <element name="TDataStd_Shape"          type="ocaf:AbstractAttributeType"
52          substitutionGroup="ocaf:AbstractAttribute"/>
53
54 <element name="TDataStd_Directory"      type="ocaf:AbstractAttributeType"
55          substitutionGroup="ocaf:AbstractAttribute"/>
56
57 <element name="TDataStd_IntegerArray" substitutionGroup="ocaf:AbstractListIntegerAtt">
58   <complexType>
59     <complexContent>
60       <extension base="ocaf:AbsListIntegerAttributeType">
61         <attribute name="first" type="int" default="1"/>
62         <attribute name="last" type="int" use="required"/>
63         <attribute name="delta" type="int" use="required"/>
64       </extension>
65     </complexContent>
66   </complexType>
67 </element>
68
69 <element name="TDataStd_RealArray" substitutionGroup="ocaf:AbstractListRealAtt">
70   <complexType>
71     <complexContent>
72       <extension base="ocaf:AbsListRealAttributeType">
73         <attribute name="first" type="int" default="1"/>
74         <attribute name="last" type="int" use="required"/>
75         <attribute name="delta" type="int" use="required"/>
76       </extension>
77     </complexContent>
78   </complexType>
79 </element>
80
81 <element name="TDataStd_UAttribute" substitutionGroup="ocaf:AbstractAttribute">
82   <complexType>
83     <complexContent>
84       <extension base="ocaf:AbstractAttributeType">
85         <attribute name="guid" type="ocaf:GuidType" use="required"/>
86       </extension>
87     </complexContent>
88   </complexType>
89 </element>
90
91 <element name="TDataStd_TreeNode" substitutionGroup="ocaf:AbstractAttribute">
92   <complexType>
93     <complexContent>
94       <extension base="ocaf:AbstractAttributeType">
95         <attribute name="treeid" type="ocaf:GuidType" use="required"/>
96         <attribute name="children" type="ocaf:ListOfInteger"/>
97       </extension>
98     </complexContent>
99   </complexType>
100 </element>
101
102 <element name="TDataStd_Geometry" substitutionGroup="ocaf:AbstractAttribute">
103   <complexType>
104     <complexContent>
105       <extension base="ocaf:AbstractAttributeType">
106         <attribute name="geomtype" use="required">
107           <simpleType>
108             <restriction base="string">
109               <enumeration value="any"/>
110               <enumeration value="point"/>
111               <enumeration value="line"/>
112               <enumeration value="circle"/>
113               <enumeration value="ellipse"/>
114             </restriction>
115           </simpleType>
116         </attribute>
117       </extension>
118     </complexContent>
119   </complexType>
120 </element>
121
122 <element name="TDataStd_Constraint" substitutionGroup="ocaf:AbstractAttribute">
123   <complexType>
124     <complexContent>
125       <extension base="ocaf:AbstractAttributeType">
126         <attribute name="contype" use="required">
127           <simpleType>
128             <restriction base="string">
129               <enumeration value="radius"/>
130               <enumeration value="diameter"/>
131               <enumeration value="minorradius"/>
132               <enumeration value="majorradius"/>
133               <enumeration value="tangent"/>
134               <enumeration value="parallel"/>
135               <enumeration value="perpendicular"/>
136               <enumeration value="concentric"/>
137               <enumeration value="coincident"/>
138               <enumeration value="distance"/>
139               <enumeration value="angle"/>
140               <enumeration value="equalradius"/>
141               <enumeration value="symmetry"/>
142               <enumeration value="midpoint"/>
143               <enumeration value="equaldist"/>
144               <enumeration value="fix"/>
145               <enumeration value="rigid"/>
146               <enumeration value="from"/>
147               <enumeration value="axis"/>
148               <enumeration value="mate"/>
149               <enumeration value="alignfaces"/>
150               <enumeration value="alignaxes"/>
151               <enumeration value="axesangle"/>
152               <enumeration value="facesangle"/>
153               <enumeration value="round"/>
154               <enumeration value="offset"/>
155             </restriction>
156           </simpleType>
157         </attribute>
158         <attribute name="valueref" type="positiveInteger"/>
159         <attribute name="geometries">
160           <simpleType>
161             <restriction base="ocaf:ListOfInteger">
162               <minLength value="1"/>
163               <maxLength value="4"/>
164             </restriction>
165           </simpleType>
166         </attribute>
167         <attribute name="plane" type="positiveInteger"/>
168         <attribute name="flags" use="required">
169           <simpleType>
170             <restriction base="string">
171               <pattern value="[+-]{3}"/>
172             </restriction>
173           </simpleType>
174         </attribute>
175       </extension>
176     </complexContent>
177   </complexType>
178 </element>
179
180 <element name="TDataStd_Variable" substitutionGroup="ocaf:AbstractAttribute">
181   <complexType>
182     <complexContent>
183       <extension base="ocaf:AbstractAttributeType">
184         <attribute name="isconst" type="boolean" default="false"/>
185         <attribute name="unit" type="string" use="required"/>
186       </extension>
187     </complexContent>
188   </complexType>
189 </element>
190
191 <element name="TDataStd_PatternStd" substitutionGroup="ocaf:AbstractAttribute">
192   <complexType>
193     <complexContent>
194       <extension base="ocaf:AbstractAttributeType">
195         <attribute name="signature" type="int" use="required"/>
196         <attribute name="axis1reversed" type="boolean" default="false"/>
197         <attribute name="axis2reversed" type="boolean" default="false"/>
198         <attribute name="nbinstances1" type="positiveInteger"/>
199         <attribute name="value1ref" type="positiveInteger"/>
200         <attribute name="axis1" type="positiveInteger"/>
201         <attribute name="nbinstances2" type="positiveInteger"/>
202         <attribute name="value2ref" type="positiveInteger"/>
203         <attribute name="axis2" type="positiveInteger"/>
204         <attribute name="mirror" type="positiveInteger"/>
205       </extension>
206     </complexContent>
207   </complexType>
208 </element>
209
210 <element name="TDataStd_Relation" substitutionGroup="ocaf:AbstractStringAtt">
211   <complexType>
212     <complexContent>
213       <extension base="ocaf:AbsStringAttributeType">
214         <attribute name="variables" type="ocaf:ListOfInteger"/>
215       </extension>
216     </complexContent>
217   </complexType>
218 </element>
219
220 <element name="TDataStd_Expression" substitutionGroup="ocaf:AbstractStringAtt">
221   <complexType>
222     <complexContent>
223       <extension base="ocaf:AbsStringAttributeType">
224         <attribute name="variables" type="ocaf:ListOfInteger"/>
225       </extension>
226     </complexContent>
227   </complexType>
228 </element>
229
230 </schema>