示例#1
0
		public ColladaInitFrom() : base(Enums.ColladaElementType.Undefined)
		{
			Fields.Add(_mip = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_slice = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_face = new ColladaObjectAttribute<Enums.ColladaFXSurfaceFaceEnum>(Enums.ColladaFXSurfaceFaceEnum.POSITIVE_X));
			Fields.Add(_text = new ColladaObjectValue<string>(""));
		}
		public ColladaAnimation() : base(Enums.ColladaElementType.Core_Animation) 
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaAnimation>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_animation = new ColladaObjectElementList<ColladaAnimation>());
			Fields.Add(_source = new ColladaObjectElementList<ColladaSource>());
			Fields.Add(_sampler = new ColladaObjectElementList<ColladaSampler>());
			Fields.Add(_channel = new ColladaObjectElementList<ColladaChannel>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			List<ColladaObject> mutually_inclusive = new List<ColladaObject>();
			mutually_inclusive.Add(_sampler);
			mutually_inclusive.Add(_channel);

			List<ColladaObject> mutually_exclusive1 = new List<ColladaObject>();
			mutually_inclusive.Add(_animation);
			mutually_inclusive.Add(_sampler);

			List<ColladaObject> mutually_exclusive2 = new List<ColladaObject>();
			mutually_inclusive.Add(_animation);
			mutually_inclusive.Add(_channel);

			ValidationTests.Add(new ColladaMutuallyInclusive(Enums.ColladaElementType.All, mutually_inclusive));
			ValidationTests.Add(new ColladaMutuallyExclusive(Enums.ColladaElementType.All, mutually_exclusive1));
			ValidationTests.Add(new ColladaMutuallyExclusive(Enums.ColladaElementType.All, mutually_exclusive2));
		}
示例#3
0
		public ColladaTechnique() : base(Enums.ColladaElementType.Core_Technique)
		{
			Fields.Add(_profile = new ColladaObjectAttribute<string>(""));
			Fields.Add(_xmlns = new ColladaObjectAttribute<string>(""));

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _profile));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _profile));
		}
		public ColladaInputUnshared() : base(Enums.ColladaElementType.Core_InputUnshared)
		{
			Fields.Add(_semantic = new ColladaObjectAttribute<Enums.ColladaInputSharedSemantic>(Enums.ColladaInputSharedSemantic.BINORMAL));
			Fields.Add(_source = new ColladaObjectAttribute<string>(""));

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _source));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _source));
		}
		public ColladaTechniqueHint() : base(Enums.ColladaElementType.Fx_TechniqueHint)
		{
			Fields.Add(_platform = new ColladaObjectAttribute<string>(""));
			Fields.Add(_ref = new ColladaObjectAttribute<string>(""));
			Fields.Add(_profile = new ColladaObjectAttribute<string>(""));

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _ref));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _ref));
		}
示例#6
0
		public ColladaInstanceNode() : base(Enums.ColladaElementType.Core_InstanceNode)
		{
			Fields.Add(_sid = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_url = new ColladaObjectAttribute<string>(""));
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _url));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _url));
		}
示例#7
0
		public ColladaAccessor() : base(Enums.ColladaElementType.Core_Accessor)
		{
			Fields.Add(_count = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_offset = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_source = new ColladaObjectAttribute<string>(""));
			Fields.Add(_param = new ColladaObjectElementList<ColladaParam>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _source));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _source));
		}
示例#8
0
		public ColladaCamera() : base(Enums.ColladaElementType.Core_Camera)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_optics = new ColladaObjectElement<ColladaOptics>());
			Fields.Add(_imager = new ColladaObjectElement<ColladaImager>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

		}
示例#9
0
		public ColladaChannel() : base(Enums.ColladaElementType.Core_Channel)
		{
			Fields.Add(_source = new ColladaObjectAttribute<string>(""));
			Fields.Add(_target = new ColladaObjectAttribute<string>(""));

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _source));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _target));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _source));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _target));
		}
示例#10
0
		public ColladaMaterial() : base(Enums.ColladaElementType.Fx_Material)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<Core.ColladaAsset>());
			Fields.Add(_instanceEffect = new ColladaObjectElement<ColladaInstanceEffect>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _instanceEffect));
		}
示例#11
0
		public ColladaSampler() : base(Enums.ColladaElementType.Core_Sampler)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaSampler>>(""));
			Fields.Add(_input = new ColladaObjectElementList<ColladaInputUnshared>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _input));
			ValidationTests.Add(new ColladaListMinCount<ColladaInputUnshared>(Enums.ColladaElementType.All, _input, 1));
			ValidationTests.Add(new ColladaListHasValue<ColladaInputUnshared, Enums.ColladaInputSharedSemantic>(Enums.ColladaElementType.All,
				_input, "Semantic", Enums.ColladaInputSharedSemantic.INTERPOLATION));
		}
示例#12
0
		public ColladaLight() : base(Enums.ColladaElementType.Core_Light)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_techniqueCommon = new ColladaObjectElement<ColladaTechniqueCommon>());
			Fields.Add(_technique = new ColladaObjectElementList<ColladaTechnique>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _techniqueCommon));
		}
		public ColladaLibraryControllers() : base(Enums.ColladaElementType.Core_LibraryControllers)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaLibraryControllers>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_controller = new ColladaObjectElementList<ColladaController>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _controller));
			ValidationTests.Add(new ColladaListMinCount<ColladaController>(Enums.ColladaElementType.All, _controller, 1));
		}
		public ColladaLibraryEffects() : base(Enums.ColladaElementType.Fx_LibraryEffects)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaLibraryEffects>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<Core.ColladaAsset>());
			Fields.Add(_effect = new ColladaObjectElementList<ColladaEffect>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _effect));
			ValidationTests.Add(new ColladaListMinCount<ColladaEffect>(Enums.ColladaElementType.All, _effect, 1));
		}
		public ColladaLibraryGeometries() : base(Enums.ColladaElementType.Core_LibraryGeometries)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaLibraryGeometries>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_geometry = new ColladaObjectElementList<ColladaGeometry>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _geometry));
			ValidationTests.Add(new ColladaListMinCount<ColladaGeometry>(Enums.ColladaElementType.All, _geometry, 1));
		}
		public ColladaLibraryMaterials() : base(Enums.ColladaElementType.Fx_LibraryMaterials)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<Core.ColladaAsset>());
			Fields.Add(_material = new ColladaObjectElementList<ColladaMaterial>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _material));
			ValidationTests.Add(new ColladaListMinCount<ColladaMaterial>(Enums.ColladaElementType.All, _material, 1));
		}
示例#17
0
		public ColladaLibraryCameras() : base(Enums.ColladaElementType.Core_LibraryCameras)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_camera = new ColladaObjectElementList<ColladaCamera>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _camera));
			ValidationTests.Add(new ColladaListMinCount<ColladaCamera>(Enums.ColladaElementType.All, _camera, 1));
		}
		public ColladaVisualScene() : base(Enums.ColladaElementType.Core_VisualScene)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaVisualScene>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_node = new ColladaObjectElementList<ColladaNode>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _node));
			ValidationTests.Add(new ColladaListMinCount<ColladaNode>(Enums.ColladaElementType.All, _node, 1));
		}
示例#19
0
		public ColladaTexture() : base(Enums.ColladaElementType.Undefined)
		{
			Fields.Add(_texture = new ColladaObjectAttribute<string>(""));
			Fields.Add(_texCoord = new ColladaObjectAttribute<string>(""));
			Fields.Add(_extra = new ColladaObjectElement<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.Fx_CommonColorOrTextureType, _texture));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.Fx_CommonColorOrTextureType, _texture));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.Fx_CommonColorOrTextureType, _texCoord));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.Fx_CommonColorOrTextureType, _texCoord));
		}
示例#20
0
		public ColladaExtra() : base(Enums.ColladaElementType.Core_Extra)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_type = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_technique = new ColladaObjectElementList<ColladaTechnique>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _technique));
			ValidationTests.Add(new ColladaListMinCount<ColladaTechnique>(Enums.ColladaElementType.All, _technique, 1));
		}
示例#21
0
		public ColladaProfileCOMMON() : base(Enums.ColladaElementType.Fx_ProfileCOMMON)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_asset = new ColladaObjectElement<Core.ColladaAsset>());
			Fields.Add(_image = new ColladaObjectElementList<ColladaImage>());
			Fields.Add(_newparam = new ColladaObjectElementList<ColladaNewparam>());
			Fields.Add(_technique = new ColladaObjectElement<ColladaTechnique>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _technique));
		}
		public ColladaBindVertexInput() : base(Enums.ColladaElementType.Fx_BindVertexInput)
		{
			Fields.Add(_semantic = new ColladaObjectAttribute<string>(""));
			Fields.Add(_inputSemantic = new ColladaObjectAttribute<string>(""));
			Fields.Add(_inputSet = new ColladaObjectAttribute<uint>(0));

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _semantic));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _semantic));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _inputSemantic));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _inputSemantic));
		}
示例#23
0
		public ColladaSpline() : base(Enums.ColladaElementType.Core_Spline)
		{
			Fields.Add(_closed = new ColladaObjectAttribute<bool>(false));
			Fields.Add(_source = new ColladaObjectElementList<ColladaSource>());
			Fields.Add(_controlVertices = new ColladaObjectElement<ColladaControlVertices>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _source));
			ValidationTests.Add(new ColladaListMinCount<ColladaSource>(Enums.ColladaElementType.All, _source, 1));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _controlVertices));
		}
		public ColladaLibraryAnimations() : base(Enums.ColladaElementType.Core_LibraryAnimations)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaLibraryAnimations>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_animation = new ColladaObjectElementList<ColladaAnimation>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _animation));
			ValidationTests.Add(new ColladaListMinCount<ColladaAnimation>(Enums.ColladaElementType.All, _animation, 1));
		}
		public ColladaInstanceController() : base(Enums.ColladaElementType.Core_InstanceController)
		{
			Fields.Add(_sid = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_url = new ColladaObjectAttribute<string>(""));
			Fields.Add(_skeleton = new ColladaObjectElementList<ColladaSkeleton>());
			Fields.Add(_bindMaterial = new ColladaObjectElementList<Fx.ColladaBindMaterial>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _url));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _url));
		}
示例#26
0
		public ColladaParam() : base(Enums.ColladaElementType.Core_Param)
		{
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_sid = new ColladaObjectAttribute<string>(""));
			Fields.Add(_type = new ColladaObjectAttribute<string>(""));
			Fields.Add(_semantic = new ColladaObjectAttribute<string>(""));

			List<string> validTypes = new List<string>(validTypesAccessor);

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _type));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _type));
			ValidationTests.Add(new ColladaHasValidValue<string>(Enums.ColladaElementType.Core_Accessor, _type, validTypes));
		}
示例#27
0
		public ColladaInstanceEffect() : base(Enums.ColladaElementType.Fx_InstanceEffect)
		{
			Fields.Add(_sid = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_url = new ColladaObjectAttribute<string>(""));
			Fields.Add(_techniqueHint = new ColladaObjectElementList<ColladaTechniqueHint>());
			Fields.Add(_setparam = new ColladaObjectElementList<ColladaSetparam>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _sid));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _sid));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _url));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _url));
		}
示例#28
0
		public ColladaAnimationClip() : base(Enums.ColladaElementType.Core_AnimationClip)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_start = new ColladaObjectAttribute<double>(0.0));
			Fields.Add(_end = new ColladaObjectAttribute<double>(0.0));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));

			Fields.Add(_asset = new ColladaObjectElement<ColladaAsset>());
			Fields.Add(_instanceAnimation = new ColladaObjectElementList<ColladaInstanceAnimation>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _instanceAnimation));
			ValidationTests.Add(new ColladaListMinCount<ColladaInstanceAnimation>(Enums.ColladaElementType.All, _instanceAnimation, 1));
		}
示例#29
0
		public ColladaVertices() : base(Enums.ColladaElementType.Core_Vertices)
		{
			Fields.Add(_id = new ColladaObjectAttribute<string>(""));
			Fields.Add(_name = new ColladaObjectAttribute<string>(""));
			Fields.Add(_input = new ColladaObjectElementList<ColladaInputUnshared>());
			Fields.Add(_extra = new ColladaObjectElementList<ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _id));
			ValidationTests.Add(new ColladaEmptyString(Enums.ColladaElementType.All, _id));
			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _input));
			ValidationTests.Add(new ColladaListMinCount<ColladaInputUnshared>(Enums.ColladaElementType.All, _input, 1));
			ValidationTests.Add(new ColladaListHasValue<ColladaInputUnshared, Enums.ColladaInputSharedSemantic>(Enums.ColladaElementType.All,
				_input, "Semantic", Enums.ColladaInputSharedSemantic.POSITION));
		}
示例#30
0
		public ColladaImage() : base(Enums.ColladaElementType.Fx_Image)
		{
			Fields.Add(_id = new ColladaObjectAttribute<ColladaID<ColladaImage>>(""));
			Fields.Add(_name = new ColladaObjectAttribute<ColladaNCName>(""));
			Fields.Add(_format = new ColladaObjectAttribute<string>(""));
			Fields.Add(_height = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_width = new ColladaObjectAttribute<uint>(0));
			Fields.Add(_depth = new ColladaObjectAttribute<uint>(1));
			Fields.Add(_asset = new ColladaObjectElement<Core.ColladaAsset>());
			Fields.Add(_initFrom = new ColladaObjectElement<ColladaInitFrom>());
			Fields.Add(_extra = new ColladaObjectElementList<Core.ColladaExtra>());

			ValidationTests.Add(new ColladaIsNull(Enums.ColladaElementType.All, _initFrom));
		}
示例#31
0
 public ColladaBoolArray() : base(Enums.ColladaElementType.Core_BoolArray)
 {
     Fields.Add(_id   = new ColladaObjectAttribute <ColladaID <ColladaBoolArray> >(""));
     Fields.Add(_name = new ColladaObjectAttribute <ColladaNCName>(""));
 }
示例#32
0
 public ColladaSurface() : base(Enums.ColladaElementType.Fx_Surface)
 {
     Fields.Add(_type     = new ColladaObjectAttribute <Enums.ColladaFXSurfaceTypeEnum>(Enums.ColladaFXSurfaceTypeEnum.UNTYPED));
     Fields.Add(_initFrom = new ColladaObjectElement <ColladaInitFrom>());
 }
 public ColladaGeometryCommonAttributes(Enums.ColladaElementType type) : base(type)
 {
     Fields.Add(_name     = new ColladaObjectAttribute <string>(""));
     Fields.Add(_count    = new ColladaObjectAttribute <uint>(0));
     Fields.Add(_material = new ColladaObjectAttribute <string>(""));
 }
示例#34
0
 public ColladaNameArray() : base(Enums.ColladaElementType.Core_NameArray)
 {
     Fields.Add(_id   = new ColladaObjectAttribute <string>(""));
     Fields.Add(_name = new ColladaObjectAttribute <string>(""));
 }