1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

11
src/XmlOcafResource/FILES Executable file
View File

@@ -0,0 +1,11 @@
srcinc:::XmlOcaf.xsd
srcinc:::XmlOcaf_SmallTypes.xsd
srcinc:::XmlOcaf_TDataStd.xsd
srcinc:::XmlOcaf_TDataStd_Name.xsd
srcinc:::XmlOcaf_TDF.xsd
srcinc:::XmlOcaf_TDocStd.xsd
srcinc:::XmlOcaf_TFunction.xsd
srcinc:::XmlOcaf_TNaming.xsd
srcinc:::XmlOcaf_TNaming_NamedShape.xsd
srcinc:::XmlOcaf_TPrsStd.xsd
srcinc:::XmlXcaf.xsd

117
src/XmlOcafResource/XmlOcaf.xsd Executable file
View File

@@ -0,0 +1,117 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<include schemaLocation="XmlOcaf_SmallTypes.xsd"/>
<include schemaLocation="XmlOcaf_TDataStd.xsd"/>
<include schemaLocation="XmlOcaf_TDF.xsd"/>
<include schemaLocation="XmlOcaf_TDocStd.xsd"/>
<include schemaLocation="XmlOcaf_TFunction.xsd"/>
<include schemaLocation="XmlOcaf_TNaming.xsd"/>
<include schemaLocation="XmlOcaf_TPrsStd.xsd"/>
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of XmlOcaf Persistence format.
This Schema definition resides at: $(CASROOT)/src/XmlOcafResource/XmlOcaf.xsd
</documentation>
</annotation>
<complexType name="LabelType">
<sequence>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="ocaf:AbstractStringAtt"/>
<element ref="ocaf:AbstractIntegerAtt"/>
<element ref="ocaf:AbstractRealAtt"/>
<element ref="ocaf:AbstractListIntegerAtt"/>
<element ref="ocaf:AbstractListRealAtt"/>
<element ref="ocaf:AbstractAttribute"/>
<element ref="ocaf:AbstractXPathLabel"/>
<element ref="ocaf:AbstractList3RealAtt"/>
</choice>
<element name="label" type="ocaf:LabelType" minOccurs="0" maxOccurs="unbounded">
<!-- This type of uniqueness does not alow recursive structures
<unique name="LabelUniqueness">
<selector xpath="ocaf:label"/>
<field xpath="@tag"/>
</unique> -->
</element>
</sequence>
<attribute name="tag" type="positiveInteger" use="required"/>
</complexType>
<!-- Declaration of document element +++++++++++++++++++++++++++ -->
<element name="document">
<complexType>
<sequence>
<!-- Declaration of element 'info' +++++++++++++++++++++++++++++ -->
<element name="info">
<complexType>
<sequence>
<element name="iitem" type="string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="date" type="date" use="required"/>
<attribute name="schemav" type="nonNegativeInteger" use="required"/>
<attribute name="objnb" type="nonNegativeInteger" use="required"/>
</complexType>
</element> <!-- END 'info' -->
<!-- Declaration of element 'comments' ++++++++++++++++++++++++++ -->
<element name="comments">
<complexType>
<sequence>
<element name="citem" type="string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element> <!-- END 'comments' -->
<!-- Declaration of element 'label' +++++++++++++++++++++++++++++ -->
<element name="label">
<!-- Local type redefinition from ocaf:LabelType by restriction -->
<complexType>
<complexContent>
<restriction base="ocaf:LabelType">
<sequence>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="ocaf:AbstractStringAtt"/>
<element ref="ocaf:AbstractIntegerAtt"/>
<element ref="ocaf:AbstractRealAtt"/>
<element ref="ocaf:AbstractListIntegerAtt"/>
<element ref="ocaf:AbstractListRealAtt"/>
<element ref="ocaf:AbstractAttribute"/>
<element ref="ocaf:AbstractXPathLabel"/>
<element ref="ocaf:AbstractList3RealAtt"/>
</choice>
<element name="label" type="ocaf:LabelType" minOccurs="0" maxOccurs="unbounded">
<unique name="Label1Uniqueness">
<selector xpath="ocaf:label"/>
<field xpath="@tag"/> <!-- label tags -->
</unique>
</element>
</sequence>
<!-- Difference from ocaf:LabelType is FIXEDNESS of tag attribute -->
<attribute name="tag" type="nonNegativeInteger" fixed="0"/>
</restriction>
</complexContent>
</complexType>
<!-- Uniqueness of tags in sub-labels -->
<unique name="Label0Uniqueness">
<selector xpath="ocaf:label"/>
<field xpath="@tag"/>
</unique>
<!-- Uniqueness of 'id' values of shareable objects -->
<unique name="ShareableIdUniqueness">
<selector xpath=".//ocaf:*"/>
<field xpath="@id"/>
</unique>
</element> <!-- END 'label 0' -->
<!-- Declaration of element 'shapes' +++++++++++++++++++++++++++ -->
<element name="shapes" type="string" minOccurs="0"/>
</sequence>
<attribute name="format" type="string" use="required"/>
</complexType>
</element> <!-- END 'document' -->
</schema>

View File

@@ -0,0 +1,204 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of basic types
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_SmallTypes.xsd
</documentation>
</annotation>
<!-- DEFINITIONS OF SIMPLE BASIC TYPES -->
<simpleType name="ListOfInteger">
<list itemType="int"/>
</simpleType>
<simpleType name="ListOfReal">
<list itemType="double"/>
</simpleType>
<simpleType name="ListOf3Real">
<restriction base="ocaf:ListOfReal">
<length value="3"/>
</restriction>
</simpleType>
<simpleType name="GuidType">
<restriction base="string">
<length value="36"/>
<pattern value="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"/>
</restriction>
</simpleType>
<simpleType name="XPathLabel">
<restriction base="string">
<pattern value='/document/label(/label\[@tag=\"[1-9][0-9]*\"\])*'/>
</restriction>
</simpleType>
<!-- DEFINITIONS OF BASIC TYPES FOR OCAF ATTRIBUTES -->
<complexType name="AbsStringAttributeType">
<simpleContent>
<extension base="string">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsIntegerAttributeType">
<simpleContent>
<extension base="int">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsRealAttributeType">
<simpleContent>
<extension base="double">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsListIntegerAttributeType">
<simpleContent>
<extension base="ocaf:ListOfInteger">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsListRealAttributeType">
<simpleContent>
<extension base="ocaf:ListOfReal">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsXPathLabelType">
<simpleContent>
<extension base="ocaf:XPathLabel">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<complexType name="AbsList3RealAttributeType">
<simpleContent>
<extension base="ocaf:ListOf3Real">
<attribute name="id" type="positiveInteger" use="required"/>
</extension>
</simpleContent>
</complexType>
<!-- DECLARATIONS OF ABSTRACT XML ELEMENTS FOR OCAF ATTRIBUTES -->
<element name="AbstractStringAtt" type="ocaf:AbsStringAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with String content
</documentation>
</annotation>
</element>
<element name="AbstractIntegerAtt" type="ocaf:AbsIntegerAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with Integer content
</documentation>
</annotation>
</element>
<element name="AbstractRealAtt" type="ocaf:AbsRealAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with Real content
</documentation>
</annotation>
</element>
<element name="AbstractListIntegerAtt"
type="ocaf:AbsListIntegerAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with List-Of-Integer content
</documentation>
</annotation>
</element>
<element name="AbstractListRealAtt"
type="ocaf:AbsListRealAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with List-Of-Real content
</documentation>
</annotation>
</element>
<element name="AbstractXPathLabel" type="ocaf:AbsXPathLabelType" abstract="true">
<annotation>
<documentation>
Abstract type representing XPath reference to OCAF label
</documentation>
</annotation>
</element>
<element name="AbstractList3RealAtt"
type="ocaf:AbsList3RealAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute with List-Of-3-Real content
</documentation>
</annotation>
</element>
<!-- DECLARATION OF ABSTRACT XML ELEMENT FOR OCAF ATTRIBUTES WITH NO SIMPLE CONTENT -->
<complexType name="AbstractAttributeType">
<complexContent>
<restriction base="anyType">
<attribute name="id" type="positiveInteger" use="required"/>
</restriction>
</complexContent>
</complexType>
<element name="AbstractAttribute" type="ocaf:AbstractAttributeType" abstract="true">
<annotation>
<documentation>
Abstract type corresponding to TDF_Attribute (the ancestor of all OCAF Attributes)
</documentation>
</annotation>
</element>
<!-- ELEMENT **LOCATION** -->
<complexType name="Location">
<sequence>
<element name="datum" minOccurs="0">
<complexType>
<attribute name="id" type="positiveInteger" use="required"/>
<attribute name="trsf" use="required">
<simpleType>
<restriction base="ocaf:ListOfReal">
<length value="14"/>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="location" type="ocaf:Location" minOccurs="0"/>
</sequence>
<attribute name="power" type="positiveInteger" use="required"/>
<attribute name="datum" type="positiveInteger" use="required"/>
</complexType>
<element name="location" type="ocaf:Location"/>
</schema>

View File

@@ -0,0 +1,20 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TDF
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDF.xsd
</documentation>
</annotation>
<element name="TDF_TagSource" type="ocaf:AbsIntegerAttributeType"
substitutionGroup="ocaf:AbstractIntegerAtt"/>
<element name="TDF_Reference" type="ocaf:AbsXPathLabelType"
substitutionGroup="ocaf:AbstractXPathLabel"/>
</schema>

View File

@@ -0,0 +1,215 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TDataStd
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDataStd.xsd
</documentation>
</annotation>
<element name="TDataStd_Position" type="ocaf:AbsList3RealAttributeType"
substitutionGroup="ocaf:AbstractList3RealAtt"/>
<element name="TDataStd_Name" type="ocaf:AbsStringAttributeType"
substitutionGroup="ocaf:AbstractStringAtt"/>
<element name="TDataStd_Comment" type="ocaf:AbsStringAttributeType"
substitutionGroup="ocaf:AbstractStringAtt"/>
<element name="TDataStd_Integer" type="ocaf:AbsIntegerAttributeType"
substitutionGroup="ocaf:AbstractIntegerAtt"/>
<element name="TDataStd_Real" type="ocaf:AbsRealAttributeType"
substitutionGroup="ocaf:AbstractRealAtt"/>
<element name="TDataStd_Point" type="ocaf:AbstractAttributeType"
substitutionGroup="ocaf:AbstractAttribute"/>
<element name="TDataStd_Axis" type="ocaf:AbstractAttributeType"
substitutionGroup="ocaf:AbstractAttribute"/>
<element name="TDataStd_Plane" type="ocaf:AbstractAttributeType"
substitutionGroup="ocaf:AbstractAttribute"/>
<element name="TDataStd_Shape" type="ocaf:AbstractAttributeType"
substitutionGroup="ocaf:AbstractAttribute"/>
<element name="TDataStd_Directory" type="ocaf:AbstractAttributeType"
substitutionGroup="ocaf:AbstractAttribute"/>
<element name="TDataStd_IntegerArray" substitutionGroup="ocaf:AbstractListIntegerAtt">
<complexType>
<complexContent>
<extension base="ocaf:AbsListIntegerAttributeType">
<attribute name="first" type="int" default="1"/>
<attribute name="last" type="int" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_RealArray" substitutionGroup="ocaf:AbstractListRealAtt">
<complexType>
<complexContent>
<extension base="ocaf:AbsListRealAttributeType">
<attribute name="first" type="int" default="1"/>
<attribute name="last" type="int" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_UAttribute" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="guid" type="ocaf:GuidType" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_TreeNode" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="treeid" type="ocaf:GuidType" use="required"/>
<attribute name="children" type="ocaf:ListOfInteger"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_Geometry" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="geomtype" use="required">
<simpleType>
<restriction base="string">
<enumeration value="any"/>
<enumeration value="point"/>
<enumeration value="line"/>
<enumeration value="circle"/>
<enumeration value="ellipse"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_Constraint" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="contype" use="required">
<simpleType>
<restriction base="string">
<enumeration value="radius"/>
<enumeration value="diameter"/>
<enumeration value="minorradius"/>
<enumeration value="majorradius"/>
<enumeration value="tangent"/>
<enumeration value="parallel"/>
<enumeration value="perpendicular"/>
<enumeration value="concentric"/>
<enumeration value="coincident"/>
<enumeration value="distance"/>
<enumeration value="angle"/>
<enumeration value="equalradius"/>
<enumeration value="symmetry"/>
<enumeration value="midpoint"/>
<enumeration value="equaldist"/>
<enumeration value="fix"/>
<enumeration value="rigid"/>
<enumeration value="from"/>
<enumeration value="axis"/>
<enumeration value="mate"/>
<enumeration value="alignfaces"/>
<enumeration value="alignaxes"/>
<enumeration value="axesangle"/>
<enumeration value="facesangle"/>
<enumeration value="round"/>
<enumeration value="offset"/>
</restriction>
</simpleType>
</attribute>
<attribute name="valueref" type="positiveInteger"/>
<attribute name="geometries">
<simpleType>
<restriction base="ocaf:ListOfInteger">
<minLength value="1"/>
<maxLength value="4"/>
</restriction>
</simpleType>
</attribute>
<attribute name="plane" type="positiveInteger"/>
<attribute name="flags" use="required">
<simpleType>
<restriction base="string">
<pattern value="[+-]{3}"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_Variable" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="isconst" type="boolean" default="false"/>
<attribute name="unit" type="string" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_PatternStd" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="signature" type="int" use="required"/>
<attribute name="axis1reversed" type="boolean" default="false"/>
<attribute name="axis2reversed" type="boolean" default="false"/>
<attribute name="nbinstances1" type="positiveInteger"/>
<attribute name="value1ref" type="positiveInteger"/>
<attribute name="axis1" type="positiveInteger"/>
<attribute name="nbinstances2" type="positiveInteger"/>
<attribute name="value2ref" type="positiveInteger"/>
<attribute name="axis2" type="positiveInteger"/>
<attribute name="mirror" type="positiveInteger"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_Relation" substitutionGroup="ocaf:AbstractStringAtt">
<complexType>
<complexContent>
<extension base="ocaf:AbsStringAttributeType">
<attribute name="variables" type="ocaf:ListOfInteger"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="TDataStd_Expression" substitutionGroup="ocaf:AbstractStringAtt">
<complexType>
<complexContent>
<extension base="ocaf:AbsStringAttributeType">
<attribute name="variables" type="ocaf:ListOfInteger"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,24 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attribute TDataStd_Name
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDataStd_Name.xsd
</documentation>
</annotation>
<element name="TDataStd_Name" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="extstring" type="string" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,24 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TDocStd
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDocStd.xsd
</documentation>
</annotation>
<element name="TDocStd_XLink" substitutionGroup="ocaf:AbstractXPathLabel">
<complexType>
<complexContent>
<extension base="ocaf:AbsXPathLabelType">
<attribute name="documentEntry" type="string" use="required"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,25 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TFunction
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TFunction.xsd
</documentation>
</annotation>
<element name="TFunction_Function" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="guid" type="ocaf:GuidType" use="required"/>
<attribute name="failure" type="int"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,115 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TNaming package
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TNaming.xsd
</documentation>
</annotation>
<complexType name="ArrayOfShapes">
<sequence>
<element name="shape" minOccurs="0" maxOccurs="unbounded">
<complexType>
<attribute name="tshape" use="required">
<simpleType>
<restriction base="string">
<pattern value="[+-ie]\d+"/>
</restriction>
</simpleType>
</attribute>
<attribute name="location" type="positiveInteger"/>
<attribute name="index" type="positiveInteger" use="required"/>
<attribute name="x" type="float"/>
<attribute name="y" type="float"/>
<attribute name="z" type="float"/>
</complexType>
</element> <!-- end of 'shape' -->
</sequence>
<attribute name="lower" type="positiveInteger" default="1"/>
<attribute name="upper" type="positiveInteger" default="1"/>
</complexType>
<element name="TNaming_NamedShape" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
<element name="olds" type="ocaf:ArrayOfShapes" minOccurs="0"/>
<element name="news" type="ocaf:ArrayOfShapes" minOccurs="0"/>
</sequence>
<attribute name="evolution" use="required">
<simpleType>
<restriction base="string">
<enumeration value="primitive"/>
<enumeration value="generated"/>
<enumeration value="modify"/>
<enumeration value="delete"/>
<enumeration value="selected"/>
<enumeration value="replace"/>
</restriction>
</simpleType>
</attribute>
<attribute name="version" type="positiveInteger" default="0"/>
</extension>
</complexContent>
</complexType>
<unique name="OldShapeIndexUniq">
<selector xpath="."/>
<field xpath="@id"/>
<field xpath="ocaf:olds/ocaf:shape/@index"/>
</unique>
<unique name="NewShapeIndexUniq">
<selector xpath="."/>
<field xpath="@id"/>
<field xpath="ocaf:news/ocaf:shape/@index"/>
</unique>
</element>
<element name="TNaming_Naming" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="index" type="int" use="required"/>
<attribute name="stopNS" type="positiveInteger"/>
<attribute name="nametype" use="required">
<simpleType>
<restriction base="string">
<enumeration value="unknown"/>
<enumeration value="identity"/>
<enumeration value="modifuntil"/>
<enumeration value="generation"/>
<enumeration value="intersection"/>
<enumeration value="union"/>
<enumeration value="subtraction"/>
<enumeration value="constshape"/>
<enumeration value="filterbyneigh"/>
</restriction>
</simpleType>
</attribute>
<attribute name="shapetype" use="required">
<simpleType>
<restriction base="string">
<enumeration value="compound"/>
<enumeration value="compsolid"/>
<enumeration value="solid"/>
<enumeration value="shell"/>
<enumeration value="face"/>
<enumeration value="wire"/>
<enumeration value="edge"/>
<enumeration value="vertex"/>
<enumeration value="shape"/>
</restriction>
</simpleType>
</attribute>
<attribute name="arguments" type="ocaf:ListOfInteger"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,84 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attribute TNaming_NamedShape
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TNaming_NamedShape.xsd
</documentation>
</annotation>
<complexType name="Location">
<sequence>
<element name="datum" minOccurs="0">
<complexType>
<attribute name="id" type="positiveInteger" use="required"/>
<attribute name="trsf" use="required">
<simpleType>
<restriction base="ocaf:ListOfReal">
<length value="14"/>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="location" type="ocaf:Location" minOccurs="0"/>
</sequence>
<attribute name="power" type="positiveInteger" use="required"/>
<attribute name="datum" type="positiveInteger" use="required"/>
</complexType>
<element name="TNaming_NamedShape" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
<element name="array" minOccurs="0" maxOccurs="2">
<complexType>
<sequence>
<element name="shape" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="location" type="ocaf:Location" minOccurs="0"/>
</sequence>
<attribute name="tshape" use="required">
<simpleType>
<restriction base="string">
<pattern value="[+-ie]\d+"/>
</restriction>
</simpleType>
</attribute>
<attribute name="index" type="positiveInteger" use="required"/>
</complexType>
</element>
</sequence>
<attribute name="id" type="positiveInteger" use="required"/>
<attribute name="lower" type="positiveInteger"/>
<attribute name="upper" type="positiveInteger"/>
</complexType>
</element>
</sequence>
<attribute name="olds" type="positiveInteger"/>
<attribute name="news" type="positiveInteger"/>
<attribute name="evolution" use="required">
<simpleType>
<restriction base="string">
<enumeration value="primitive"/>
<enumeration value="generated"/>
<enumeration value="modify"/>
<enumeration value="delete"/>
<enumeration value="selected"/>
<enumeration value="replace"/>
</restriction>
</simpleType>
</attribute>
<attribute name="version" type="positiveInteger"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,29 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from TPrsStd
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TPrsStd.xsd
</documentation>
</annotation>
<element name="TPrsStd_AISPresentation" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="guid" type="ocaf:GuidType" use="required"/>
<attribute name="isdisplayed" type="boolean" default="false"/>
<attribute name="color" type="int"/>
<attribute name="material" type="int"/>
<attribute name="transparency" type="double"/>
<attribute name="width" type="double"/>
</extension>
</complexContent>
</complexType>
</element>
</schema>

96
src/XmlOcafResource/XmlXcaf.xsd Executable file
View File

@@ -0,0 +1,96 @@
<schema targetNamespace="http://www.opencascade.org/OCAF/XML/XCAF"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
elementFormDefault="qualified">
<import namespace="http://www.opencascade.org/OCAF/XML"
schemaLocation="XmlOcaf.xsd"/>
<annotation>
<documentation xml:lang="en">
Open Cascade Application Framework: Definition of attributes from XCAFDoc
This file is included in XmlOcaf.xsd
URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_XCAFDoc.xsd
</documentation>
</annotation>
<element name="Area" type="ocaf:AbsRealAttributeType"
substitutionGroup="ocaf:AbstractRealAtt"/>
<element name="Volume" type="ocaf:AbsRealAttributeType"
substitutionGroup="ocaf:AbstractRealAtt"/>
<element name="Color" type="ocaf:AbsIntegerAttributeType"
substitutionGroup="ocaf:AbstractIntegerAtt"/>
<element name="Centroid" type="ocaf:AbsList3RealAttributeType"
substitutionGroup="ocaf:AbstractList3RealAtt"/>
<element name="GraphNode" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<attribute name="treeid" type="ocaf:GuidType" use="required"/>
<attribute name="children" type="ocaf:ListOfInteger"/>
<attribute name="fathers" type="ocaf:ListOfInteger"/>
</extension>
</complexContent>
</complexType>
</element>
<element name="Location" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
<element ref="ocaf:location" minOccurs="0" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="DocumentTool" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="ColorTool" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="ShapeTool" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
<element name="LayerTool" substitutionGroup="ocaf:AbstractAttribute">
<complexType>
<complexContent>
<extension base="ocaf:AbstractAttributeType">
<sequence>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
</schema>