aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/animator/SkAnimate3DSchema.xsd
blob: 5063b75722ecc29812eb4be2225f2716267d76b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:Sk="http://www.skia.com/schema/SkAnimateSchema.xsd"
	targetNamespace="urn:skia3D" xmlns:Sk3D="urn:skia3D">

	<xs:simpleType name="Patch" >
		<xs:restriction base="xs:string" >
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="Point" >
		<xs:restriction base="xs:string" >
			<xs:pattern value="[+-]?([0-9]*\.[0-9]+|[0-9]+\.?)( *[ ,] *[+-]?([0-9]*\.[0-9]+|[0-9]+\.?)){2}" /> 
		</xs:restriction>
	</xs:simpleType>

	<xs:element name="camera">
		<xs:complexType >
			<xs:attribute name="axis" type="Sk3D:Point" />
			<xs:attribute name="hackHeight" type="Sk:Float" />
			<xs:attribute name="hackWidth" type="Sk:Float" />
			<xs:attribute name="location" type="Sk3D:Point" />
			<xs:attribute name="observer" type="Sk3D:Point" />
			<xs:attribute name="patch" type="Sk3D:Patch" />
			<xs:attribute name="zenith" type="Sk3D:Point" />
			<xs:attribute name="id" type="xs:ID" />
		</xs:complexType>
	</xs:element>

	<xs:element name="patch">
		<xs:complexType >
			<xs:attribute name="origin" type="Sk3D:Point" />
			<xs:attribute name="rotateDegrees" type="Sk:MemberFunction" />
			<xs:attribute name="u" type="Sk3D:Point" />
			<xs:attribute name="v" type="Sk3D:Point" />
			<xs:attribute name="id" type="xs:ID" />
		</xs:complexType>
	</xs:element>

</xs:schema>