Beispiel #1
0
        public Source(XPathNodeIterator iterator, string uri)
        {
            XPathNodeIterator attributeIterator;
            attributeIterator = iterator.Current.Select("@" + XmlCollada.Source.id);
            if (attributeIterator.Count > 0)
            {
                attributeIterator.MoveNext();
                _id = attributeIterator.Current.Value;
            }
            attributeIterator = iterator.Current.Select("@" + XmlCollada.Source.name);
            if (attributeIterator.Count > 0)
            {
                attributeIterator.MoveNext();
                _name = attributeIterator.Current.Value;
            }

            XPathNodeIterator float_arrayNodesIterator = iterator.Current.SelectChildren(XmlCollada.Float_Array.root, uri);
            if (float_arrayNodesIterator.MoveNext())
            {
                _floatArray = new Float_Array(float_arrayNodesIterator, uri);
            }

            XPathNodeIterator technique_commonNodesIterator = iterator.Current.SelectChildren(XmlCollada.Technique_Common.root, uri);
            if (technique_commonNodesIterator.MoveNext())
            {
                _techniqueCommon = new Technique_Common(technique_commonNodesIterator, uri);
            }

            _value = iterator.Current.Value;
        }
Beispiel #2
0
 public Bind_Material(XPathNodeIterator iterator, string uri)
 {
     XPathNodeIterator techniqueCommonIterator = iterator.Current.SelectChildren(XmlCollada.Technique_Common.root, uri);
     if (techniqueCommonIterator.MoveNext())
     {
         _techniqueCommon = new Technique_Common(techniqueCommonIterator, uri);
     }
 }
Beispiel #3
0
 public Source(string id, string name, Technique_Common techniqueCommon, Float_Array floatArray, string value)
 {
     _id = id;
     _name = name;
     _techniqueCommon = techniqueCommon;
     _floatArray = floatArray;
     _value = value;
 }
Beispiel #4
0
 public Bind_Material(Technique_Common techniqueCommon)
 {
     _techniqueCommon = techniqueCommon;
 }