Пример #1
0
        public static PaintTrack LoadTrack(string fileName)
        {
            byte[]     rdd = DataUtils.ReadBinary(fileName);
            PaintTrack rrs = DataUtils.BytesToObject <PaintTrack>(rdd, 0, rdd.Length);

            return(rrs);
        }
Пример #2
0
        public static List <PaintTrack> LoadTracks(string dirname)
        {
            List <PaintTrack> tracks  = new List <PaintTrack>();
            DirectoryInfo     dirInfo = new DirectoryInfo(dirname);

            FileInfo[] trackFiles = dirInfo.GetFiles();

            foreach (FileInfo trackFile in trackFiles)
            {
                byte[]     rdd = DataUtils.ReadBinary(trackFile.FullName);
                PaintTrack rrs = DataUtils.BytesToObject <PaintTrack>(rdd, 0, rdd.Length);
                tracks.Add(rrs);
            }

            return(tracks);
        }
Пример #3
0
 public PaintTrack(PaintTrack old)
 {
     this.GUID  = new JointKey(old.GUID);
     this.Track = new List <RobotPosition>();
     foreach (RobotPosition rp in old.Track)
     {
         this.Track.Add(new RobotPosition(rp));
     }
     this.BaseDirect        = old.BaseDirect;
     this.OutsidePaint      = old.OutsidePaint;
     this.InsidePaint       = old.InsidePaint;
     this.InnerSideGroove   = old.InnerSideGroove;
     this.InnerLine         = old.InnerLine;
     this.FacadeFace        = old.FacadeFace;
     this.LongSideSymmetry  = old.LongSideSymmetry;
     this.ShortSideSymmetry = old.ShortSideSymmetry;
 }