Save class for lists of Splines.
コード例 #1
0
        public static SplineSaveList FromFile(string fileName)
        {
            SplineSaveList ssl = FileManager.XmlDeserialize <SplineSaveList>(fileName);

            ssl.mFileName = fileName;
            return(ssl);
        }
コード例 #2
0
        public static SplineSaveList FromSplineList(List<Spline> splines)
        {
            SplineSaveList ssl = new SplineSaveList();

            for (int i = 0; i < splines.Count; i++)
            {
                ssl.Splines.Add(SplineSave.FromSpline(splines[i]));
            }

            return ssl;
        }
コード例 #3
0
        public static SplineSaveList FromSplineList(List <Spline> splines)
        {
            SplineSaveList ssl = new SplineSaveList();

            for (int i = 0; i < splines.Count; i++)
            {
                ssl.Splines.Add(SplineSave.FromSpline(splines[i]));
            }

            return(ssl);
        }