コード例 #1
0
ファイル: Shape.cs プロジェクト: unhammer/gimp-sharp
        protected void Combine(params ShapeDescription[] list)
        {
            var empty = new ShapeDescriptionSet();
              _set.Add(empty);

              foreach (var val in list)
            {
              var copy = new List<ShapeDescriptionSet>();
              foreach (var ele in _set)
            {
              for (int i = 0; i <= ele.Count; i++)
            {
              var tmp = new ShapeDescriptionSet(ele);
              tmp.Insert(i, val);
              copy.Add(tmp);
            }
            }
              _set = copy;
            }
        }
コード例 #2
0
        protected void Combine(params ShapeDescription[] list)
        {
            var empty = new ShapeDescriptionSet();

            _set.Add(empty);

            foreach (var val in list)
            {
                var copy = new List <ShapeDescriptionSet>();
                foreach (var ele in _set)
                {
                    for (int i = 0; i <= ele.Count; i++)
                    {
                        var tmp = new ShapeDescriptionSet(ele);
                        tmp.Insert(i, val);
                        copy.Add(tmp);
                    }
                }
                _set = copy;
            }
        }
コード例 #3
0
 public ShapeDescriptionSet(ShapeDescriptionSet s)
 {
     _set = new List<ShapeDescription>(s._set);
 }
コード例 #4
0
 public ShapeDescriptionSet(ShapeDescriptionSet s)
 {
     Set = new List <ShapeDescription>(s.Set);
 }