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); } }
public void Read(LC4Formatter fmtr) { ushort version; fmtr.Read(out version); fmtr.Read(out Unit); }
public void Read(LC4Formatter fmtr) { ushort version; fmtr.Read(out version); BaseRead(fmtr); }
protected void Read_SingleGroove(LC4Formatter serHelper) { ushort version; base.Read_GrooveDescription(serHelper); serHelper.Read(out version); }
protected void Read_AngularCutDescription(LC4Formatter serHelper) { ushort version; base.Read_CutInfoDescription(serHelper); serHelper.Read(out version); }
public void Write(LC4Formatter fmtr) { fmtr.Write((ushort)2); fmtr.Write(Name); fmtr.Write(Value); fmtr.Write(IsValueChanged); }
public virtual void Read(LC4Formatter fmtr) { Parent = null; ushort version; fmtr.Read(out version); }
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); } }
internal void Read(LC4Formatter fmtr) { ushort version; fmtr.Read(out version); fmtr.Read(out m_scaled); fmtr.Read(out m_isNaN); }
//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); }
public void Read(LC4Formatter fmtr) { ushort version; fmtr.Read(out version); fmtr.Read(out CutInfoDescription); CutInfoDescription.Parent = this; CutList = null; }
//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); }
public void Read(LC4Formatter fmtr) { ushort version; fmtr.Read(out version); fmtr.Read(out Name); fmtr.Read(out Value); fmtr.Read(out IsValueChanged); }
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); } }
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); }
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); }
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); }
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); }
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); }
//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); }
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); }
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); }
//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); }
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); }
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); }
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); }
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); }
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); }
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); } }
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; } }