예제 #1
0
        protected void ReadLaneData(LC4Formatter fmtr, Job job)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Remarks);
            fmtr.Read(out Size);
            fmtr.Read(out Copies);
            fmtr.Read(out LaneType);
            fmtr.Read(out SizeType);
            m_lagen.Read(fmtr, job);
            fmtr.Read(out m_zusatzSchnitte);
            LanesList lanesList;

            fmtr.Read(out lanesList, job);
            Clear();
            foreach (Lane lane in lanesList)
            {
                Add(lane);
            }
            if (version >= 2)
            {
                fmtr.Read(out IsCopy);
            }
        }
예제 #2
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Unit);
        }
예제 #3
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            BaseRead(fmtr);
        }
예제 #4
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_SingleGroove(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out version);
        }
예제 #5
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_AngularCutDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
        }
예제 #6
0
 public void Write(LC4Formatter fmtr)
 {
     fmtr.Write((ushort)2);
     fmtr.Write(Name);
     fmtr.Write(Value);
     fmtr.Write(IsValueChanged);
 }
예제 #7
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        public virtual void Read(LC4Formatter fmtr)
        {
            Parent = null;
            ushort version;

            fmtr.Read(out version);
        }
예제 #8
0
 public void SaveLC4(string fileName, bool overWrite)
 {
     using (FileStream stm = new FileStream(fileName, overWrite ? FileMode.Create : FileMode.CreateNew))
     {
         LC4Formatter fmtr = new LC4Formatter(stm, Encoding.Default);
         fmtr.Write(this);
     }
 }
예제 #9
0
        internal void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out m_scaled);
            fmtr.Read(out m_isNaN);
        }
예제 #10
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
 //public DistancedGroove()
 //{
 //    // Evaluation version.
 //}
 //protected DistancedGroove(DistancedGroove pGroove)
 //    : base(pGroove)
 //{
 //    this.m_Distance = pGroove.m_Distance;
 //    this.m_Count = pGroove.m_Count;
 //    this.m_DistanceReference = pGroove.m_DistanceReference;
 //    this.m_AdditionalCutReference = pGroove.m_AdditionalCutReference;
 //}
 //public override object Clone()
 //{
 //    // Evaluation version.
 //}
 protected void Write_DistancedGroove(LC4Formatter serHelper)
 {
     base.Write_GrooveDescription(serHelper);
     serHelper.Write((ushort)1);
     serHelper.Write(this.m_Distance);
     serHelper.Write(this.m_Count);
     serHelper.Write(this.m_DistanceReference);
     serHelper.Write(this.m_AdditionalCutReference);
 }
예제 #11
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out CutInfoDescription);
            CutInfoDescription.Parent = this;
            CutList = null;
        }
예제 #12
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
 //protected FilledGroove(FilledGroove pGroove)
 //{
 //    // Evaluation version.
 //}
 //public override object Clone()
 //{
 //    return new FilledGroove(this);
 //}
 protected void Write_FilledGroove(LC4Formatter serHelper)
 {
     base.Write_GrooveDescription(serHelper);
     serHelper.Write((ushort)1);
     serHelper.Write(this.m_SecondaryDistance);
     serHelper.Write(this.m_Distance);
     serHelper.Write(this.m_Count);
     serHelper.Write(this.m_CalculationType);
 }
예제 #13
0
        public void Read(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Value);
            fmtr.Read(out IsValueChanged);
        }
예제 #14
0
 public static Job LoadLC4(string fileName)
 {
     using (FileStream stm = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read))
     {
         LC4Formatter fmtr = new LC4Formatter(stm, Encoding.Default);
         Job          doc;
         fmtr.Read(out doc);
         return(doc);
     }
 }
예제 #15
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_FilledGroove(LC4Formatter serHelper)
        {
            ushort usht;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out usht);
            serHelper.Read(out this.m_SecondaryDistance);
            serHelper.Read(out this.m_Distance);
            serHelper.Read(out this.m_Count);
            serHelper.Read(out this.m_CalculationType);
        }
예제 #16
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_DistancedGroove(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_GrooveDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_Distance);
            serHelper.Read(out this.m_Count);
            serHelper.Read(out this.m_DistanceReference);
            serHelper.Read(out this.m_AdditionalCutReference);
        }
예제 #17
0
 public void Write(LC4Formatter fmtr)
 {
     fmtr.Write((ushort)1);
     fmtr.Write(Code);
     fmtr.Write(Identifier);
     fmtr.Write(Material);
     fmtr.Write(Thickness);
     fmtr.Write(Allowance);
     fmtr.Write(FunctionCode);
     fmtr.Write(Maserung);
     fmtr.Write(KanteVorSchneidenAufgebracht);
 }
예제 #18
0
 public void Write(LC4Formatter fmtr)
 {
     fmtr.Write((ushort)3);
     fmtr.Write(Name);
     fmtr.Write(Remarks);
     fmtr.Write(m_details);
     fmtr.Write(m_sheets);
     fmtr.Write(m_remains);
     fmtr.Write(Plans, this);
     fmtr.Write(TitelTeileListe);
     fmtr.Write(TitelPlattenListe);
     fmtr.Write(m_kantes);
 }
예제 #19
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
 protected void Write_SinglePartArrayDescription(LC4Formatter serHelper)
 {
     base.Write_CutInfoDescription(serHelper);
     serHelper.Write((ushort)1);
     serHelper.Write(this.m_Length);
     serHelper.Write(this.m_LengthCount);
     serHelper.Write(this.m_Width);
     serHelper.Write(this.m_WidthCount);
     serHelper.Write(this.m_TrimCutRip);
     serHelper.Write(this.m_TrimCutCross);
     serHelper.Write(this.m_Workmode);
     serHelper.Write(this.m_CalculateBoardDim);
 }
예제 #20
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
 //protected CutOutDescription(CutOutDescription pCutOutDescription)
 //{
 //    // Evaluation version.
 //}
 //public override object Clone()
 //{
 //    return new CutOutDescription(this);
 //}
 protected void Write_CutOutDescription(LC4Formatter serHelper)
 {
     base.Read_CutInfoDescription(serHelper);
     serHelper.Write((ushort)1);
     serHelper.Write(this.m_X);
     serHelper.Write(this.m_Y);
     serHelper.Write(this.m_Width);
     serHelper.Write(this.m_Length);
     serHelper.Write(this.m_VertexReference);
     serHelper.Write(this.m_CutOutReference);
     serHelper.Write(this.m_VertexDisctance);
     serHelper.Write(this.m_MeasurementReference);
 }
예제 #21
0
        public void Read(LC4Formatter fmtr)
        {
            ushort prefix;

            fmtr.Read(out prefix);
            fmtr.Read(out Code);
            fmtr.Read(out Identifier);
            fmtr.Read(out Material);
            fmtr.Read(out Thickness);
            fmtr.Read(out Allowance);
            fmtr.Read(out FunctionCode);
            fmtr.Read(out Maserung);
            fmtr.Read(out KanteVorSchneidenAufgebracht);
        }
예제 #22
0
 protected void WriteLaneData(LC4Formatter fmtr, Job job)
 {
     fmtr.Write((ushort)2);
     fmtr.Write(Name);
     fmtr.Write(Remarks);
     fmtr.Write(Size);
     fmtr.Write(Copies);
     fmtr.Write(LaneType);
     fmtr.Write(SizeType);
     m_lagen.Write(fmtr, job);
     fmtr.Write(m_zusatzSchnitte);
     fmtr.Write((LanesList)this, job);
     fmtr.Write(IsCopy);
 }
예제 #23
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
 //protected GrooveDescription(GrooveDescription pGroove)
 //{
 //    // Evaluation version.
 //}
 //public override object Clone()
 //{
 //    return new GrooveDescription(this);
 //}
 protected void Write_GrooveDescription(LC4Formatter serHelper)
 {
     base.Write_CutInfoDescription(serHelper);
     serHelper.Write((ushort)1);
     serHelper.Write(this.m_EdgeReference);
     serHelper.Write(this.m_CutReference);
     serHelper.Write(this.m_PrimaryDistance);
     serHelper.Write(this.m_Width);
     serHelper.Write(this.m_Depth);
     serHelper.Write(this.m_StepWidth);
     serHelper.Write(this.m_InsertMode);
     serHelper.Write(this.m_EnteringPosition);
     serHelper.Write(this.m_LeavingPosition);
 }
예제 #24
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_SinglePartArrayDescription(LC4Formatter serHelper)
        {
            base.Read_CutInfoDescription(serHelper);
            ushort version;

            serHelper.Read(out version);
            serHelper.Read(out this.m_Length);
            serHelper.Read(out this.m_LengthCount);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_WidthCount);
            serHelper.Read(out this.m_TrimCutRip);
            serHelper.Read(out this.m_TrimCutCross);
            serHelper.Read(out this.m_Workmode);
            serHelper.Read(out this.m_CalculateBoardDim);
        }
예제 #25
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_CutOutDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_X);
            serHelper.Read(out this.m_Y);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_Length);
            serHelper.Read(out this.m_VertexReference);
            serHelper.Read(out this.m_CutOutReference);
            serHelper.Read(out this.m_VertexDisctance);
            serHelper.Read(out this.m_MeasurementReference);
        }
예제 #26
0
 internal void BaseWrite(LC4Formatter fmtr)
 {
     fmtr.Write((ushort)2);
     fmtr.Write(Name);
     fmtr.Write(Remarks);
     fmtr.Write(Material);
     fmtr.Write(Length);
     fmtr.Write(Width);
     fmtr.Write(Thickness);
     fmtr.Write(Amount);
     fmtr.Write(AmountInWork);
     fmtr.Write(TextureDirection);
     fmtr.Write(IsKeepSafe);
     fmtr.Write(Variables);
     fmtr.Write(InVerwendung);
 }
예제 #27
0
파일: Cuts.cs 프로젝트: shtspk/raskroy
        protected void Read_GrooveDescription(LC4Formatter serHelper)
        {
            ushort version;

            base.Read_CutInfoDescription(serHelper);
            serHelper.Read(out version);
            serHelper.Read(out this.m_EdgeReference);
            serHelper.Read(out this.m_CutReference);
            serHelper.Read(out this.m_PrimaryDistance);
            serHelper.Read(out this.m_Width);
            serHelper.Read(out this.m_Depth);
            serHelper.Read(out this.m_StepWidth);
            serHelper.Read(out this.m_InsertMode);
            serHelper.Read(out this.m_EnteringPosition);
            serHelper.Read(out this.m_LeavingPosition);
        }
예제 #28
0
        internal void BaseRead(LC4Formatter fmtr)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Name);
            fmtr.Read(out Remarks);
            fmtr.Read(out Material);
            fmtr.Read(out Length);
            fmtr.Read(out Width);
            fmtr.Read(out Thickness);
            fmtr.Read(out Amount);
            fmtr.Read(out AmountInWork);
            fmtr.Read(out TextureDirection);
            fmtr.Read(out IsKeepSafe);
            fmtr.Read(out Variables);
            fmtr.Read(out InVerwendung);
        }
예제 #29
0
 public void Write(LC4Formatter fmtr, Job job)
 {
     fmtr.Write((ushort)2);
     fmtr.Write(Amount);
     fmtr.Write(Postforming);
     fmtr.Write(Quality);
     fmtr.Write(IsFinishPart);
     if (BaseDetail != null)
     {
         fmtr.Write(true);
         e_LagenRefList refType;
         int            i;
         if (BaseDetail is Detail)
         {
             i       = job.Details.IndexOf((Detail)BaseDetail);
             refType = e_LagenRefList.DetailsList;
         }
         else if (BaseDetail is Sheet)
         {
             i       = job.Sheets.IndexOf((Sheet)BaseDetail);
             refType = e_LagenRefList.SheetsList;
         }
         else if (BaseDetail is Remain)
         {
             i       = job.Remains.IndexOf((Remain)BaseDetail);
             refType = e_LagenRefList.RemainsList;
         }
         else
         {
             throw new LC4FormatException("BaseDetail имеет неизвестный тип");
         }
         if (i == -1)
         {
             throw new LC4FormatException("BaseDetail не найден в списке");
         }
         fmtr.Write(refType);
         fmtr.Write(i);
     }
     else
     {
         fmtr.Write(false);
     }
 }
예제 #30
0
        public void Read(LC4Formatter fmtr, Job job)
        {
            ushort version;

            fmtr.Read(out version);
            fmtr.Read(out Amount);
            fmtr.Read(out Postforming);
            fmtr.Read(out Quality);
            if (version > 1)
            {
                fmtr.Read(out IsFinishPart);
            }
            bool haveRefs;

            fmtr.Read(out haveRefs);
            if (haveRefs)
            {
                fmtr.Read(out m_ref_list);
                fmtr.Read(out m_ref_idx);
                switch (m_ref_list)
                {
                case e_LagenRefList.DetailsList:
                    BaseDetail = job.Details[m_ref_idx];
                    break;

                case e_LagenRefList.SheetsList:
                    BaseDetail = job.Sheets[m_ref_idx];
                    break;

                case e_LagenRefList.RemainsList:
                    BaseDetail = job.Remains[m_ref_idx];
                    break;

                default:
                    throw new LC4FormatException("Неизвестный тип списка " + m_ref_list);
                }
                return;
            }
            else
            {
                BaseDetail = null;
            }
        }