XmlOcaf_TDataStd.xsd 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. <annotation>
  6. <documentation xml:lang="en">
  7. Copyright (c) 2001-2014 OPEN CASCADE SAS
  8. This file is part of Open CASCADE Technology software library.
  9. This library is free software; you can redistribute it and/or modify it under
  10. the terms of the GNU Lesser General Public License version 2.1 as published
  11. by the Free Software Foundation, with special exception defined in the file
  12. OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
  13. distribution for complete text of the license and disclaimer of any warranty.
  14. Alternatively, this file may be used under the terms of Open CASCADE
  15. commercial license or contractual agreement.
  16. Open Cascade Application Framework: Definition of attributes from TDataStd
  17. This file is included in XmlOcaf.xsd
  18. URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDataStd.xsd
  19. </documentation>
  20. </annotation>
  21. <element name="TDataStd_Position" type="ocaf:AbsList3RealAttributeType"
  22. substitutionGroup="ocaf:AbstractList3RealAtt"/>
  23. <element name="TDataStd_Name" type="ocaf:AbsStringAttributeType"
  24. substitutionGroup="ocaf:AbstractStringAtt"/>
  25. <element name="TDataStd_Comment" type="ocaf:AbsStringAttributeType"
  26. substitutionGroup="ocaf:AbstractStringAtt"/>
  27. <element name="TDataStd_Integer" type="ocaf:AbsIntegerAttributeType"
  28. substitutionGroup="ocaf:AbstractIntegerAtt"/>
  29. <element name="TDataStd_Real" type="ocaf:AbsRealAttributeType"
  30. substitutionGroup="ocaf:AbstractRealAtt"/>
  31. <element name="TDataStd_Point" type="ocaf:AbstractAttributeType"
  32. substitutionGroup="ocaf:AbstractAttribute"/>
  33. <element name="TDataStd_Axis" type="ocaf:AbstractAttributeType"
  34. substitutionGroup="ocaf:AbstractAttribute"/>
  35. <element name="TDataStd_Plane" type="ocaf:AbstractAttributeType"
  36. substitutionGroup="ocaf:AbstractAttribute"/>
  37. <element name="TDataStd_Shape" type="ocaf:AbstractAttributeType"
  38. substitutionGroup="ocaf:AbstractAttribute"/>
  39. <element name="TDataStd_Directory" type="ocaf:AbstractAttributeType"
  40. substitutionGroup="ocaf:AbstractAttribute"/>
  41. <element name="TDataStd_IntegerArray" substitutionGroup="ocaf:AbstractListIntegerAtt">
  42. <complexType>
  43. <complexContent>
  44. <extension base="ocaf:AbsListIntegerAttributeType">
  45. <attribute name="first" type="int" default="1"/>
  46. <attribute name="last" type="int" use="required"/>
  47. <attribute name="delta" type="int" use="required"/>
  48. </extension>
  49. </complexContent>
  50. </complexType>
  51. </element>
  52. <element name="TDataStd_RealArray" substitutionGroup="ocaf:AbstractListRealAtt">
  53. <complexType>
  54. <complexContent>
  55. <extension base="ocaf:AbsListRealAttributeType">
  56. <attribute name="first" type="int" default="1"/>
  57. <attribute name="last" type="int" use="required"/>
  58. <attribute name="delta" type="int" use="required"/>
  59. </extension>
  60. </complexContent>
  61. </complexType>
  62. </element>
  63. <element name="TDataStd_UAttribute" substitutionGroup="ocaf:AbstractAttribute">
  64. <complexType>
  65. <complexContent>
  66. <extension base="ocaf:AbstractAttributeType">
  67. <attribute name="guid" type="ocaf:GuidType" use="required"/>
  68. </extension>
  69. </complexContent>
  70. </complexType>
  71. </element>
  72. <element name="TDataStd_TreeNode" substitutionGroup="ocaf:AbstractAttribute">
  73. <complexType>
  74. <complexContent>
  75. <extension base="ocaf:AbstractAttributeType">
  76. <attribute name="treeid" type="ocaf:GuidType" use="required"/>
  77. <attribute name="children" type="ocaf:ListOfInteger"/>
  78. </extension>
  79. </complexContent>
  80. </complexType>
  81. </element>
  82. <element name="TDataStd_Geometry" substitutionGroup="ocaf:AbstractAttribute">
  83. <complexType>
  84. <complexContent>
  85. <extension base="ocaf:AbstractAttributeType">
  86. <attribute name="geomtype" use="required">
  87. <simpleType>
  88. <restriction base="string">
  89. <enumeration value="any"/>
  90. <enumeration value="point"/>
  91. <enumeration value="line"/>
  92. <enumeration value="circle"/>
  93. <enumeration value="ellipse"/>
  94. </restriction>
  95. </simpleType>
  96. </attribute>
  97. </extension>
  98. </complexContent>
  99. </complexType>
  100. </element>
  101. <element name="TDataStd_Constraint" substitutionGroup="ocaf:AbstractAttribute">
  102. <complexType>
  103. <complexContent>
  104. <extension base="ocaf:AbstractAttributeType">
  105. <attribute name="contype" use="required">
  106. <simpleType>
  107. <restriction base="string">
  108. <enumeration value="radius"/>
  109. <enumeration value="diameter"/>
  110. <enumeration value="minorradius"/>
  111. <enumeration value="majorradius"/>
  112. <enumeration value="tangent"/>
  113. <enumeration value="parallel"/>
  114. <enumeration value="perpendicular"/>
  115. <enumeration value="concentric"/>
  116. <enumeration value="coincident"/>
  117. <enumeration value="distance"/>
  118. <enumeration value="angle"/>
  119. <enumeration value="equalradius"/>
  120. <enumeration value="symmetry"/>
  121. <enumeration value="midpoint"/>
  122. <enumeration value="equaldist"/>
  123. <enumeration value="fix"/>
  124. <enumeration value="rigid"/>
  125. <enumeration value="from"/>
  126. <enumeration value="axis"/>
  127. <enumeration value="mate"/>
  128. <enumeration value="alignfaces"/>
  129. <enumeration value="alignaxes"/>
  130. <enumeration value="axesangle"/>
  131. <enumeration value="facesangle"/>
  132. <enumeration value="round"/>
  133. <enumeration value="offset"/>
  134. </restriction>
  135. </simpleType>
  136. </attribute>
  137. <attribute name="valueref" type="positiveInteger"/>
  138. <attribute name="geometries">
  139. <simpleType>
  140. <restriction base="ocaf:ListOfInteger">
  141. <minLength value="1"/>
  142. <maxLength value="4"/>
  143. </restriction>
  144. </simpleType>
  145. </attribute>
  146. <attribute name="plane" type="positiveInteger"/>
  147. <attribute name="flags" use="required">
  148. <simpleType>
  149. <restriction base="string">
  150. <pattern value="[+-]{3}"/>
  151. </restriction>
  152. </simpleType>
  153. </attribute>
  154. </extension>
  155. </complexContent>
  156. </complexType>
  157. </element>
  158. <element name="TDataStd_Variable" substitutionGroup="ocaf:AbstractAttribute">
  159. <complexType>
  160. <complexContent>
  161. <extension base="ocaf:AbstractAttributeType">
  162. <attribute name="isconst" type="boolean" default="false"/>
  163. <attribute name="unit" type="string" use="required"/>
  164. </extension>
  165. </complexContent>
  166. </complexType>
  167. </element>
  168. <element name="TDataStd_PatternStd" substitutionGroup="ocaf:AbstractAttribute">
  169. <complexType>
  170. <complexContent>
  171. <extension base="ocaf:AbstractAttributeType">
  172. <attribute name="signature" type="int" use="required"/>
  173. <attribute name="axis1reversed" type="boolean" default="false"/>
  174. <attribute name="axis2reversed" type="boolean" default="false"/>
  175. <attribute name="nbinstances1" type="positiveInteger"/>
  176. <attribute name="value1ref" type="positiveInteger"/>
  177. <attribute name="axis1" type="positiveInteger"/>
  178. <attribute name="nbinstances2" type="positiveInteger"/>
  179. <attribute name="value2ref" type="positiveInteger"/>
  180. <attribute name="axis2" type="positiveInteger"/>
  181. <attribute name="mirror" type="positiveInteger"/>
  182. </extension>
  183. </complexContent>
  184. </complexType>
  185. </element>
  186. <element name="TDataStd_Relation" substitutionGroup="ocaf:AbstractStringAtt">
  187. <complexType>
  188. <complexContent>
  189. <extension base="ocaf:AbsStringAttributeType">
  190. <attribute name="variables" type="ocaf:ListOfInteger"/>
  191. </extension>
  192. </complexContent>
  193. </complexType>
  194. </element>
  195. <element name="TDataStd_Expression" substitutionGroup="ocaf:AbstractStringAtt">
  196. <complexType>
  197. <complexContent>
  198. <extension base="ocaf:AbsStringAttributeType">
  199. <attribute name="variables" type="ocaf:ListOfInteger"/>
  200. </extension>
  201. </complexContent>
  202. </complexType>
  203. </element>
  204. </schema>