public Align(string name, string ICDtext, string SQXtext, string DMXtext, string CGtext = null, bool isReadVert = true) { Name = name; curPQX = new PQX(Name + "_PQX"); curPQX.ReadICDFile(ICDtext); if (isReadVert) { curDMX = new DMX(Regex.Split(ICDtext, "\\s+")); curSQX = new SQX(Regex.Split(SQXtext, "\\s+")); curCG = new CG(Regex.Split(DMXtext, "\\s+")); } WorkDir = ""; }
public Align(string workDir, bool isReadVert = true) { var dd = new DirectoryInfo(workDir); Name = dd.Name; curPQX = new PQX(Name + "_PQX"); curPQX.ReadICDFile(dd.FullName + "\\" + Name + ".ICD"); if (isReadVert) { curDMX = new DMX(dd.FullName + "\\" + Name + ".DMX"); curSQX = new SQX(dd.FullName + "\\" + Name + ".SQX"); curCG = new CG(dd.FullName + "\\" + Name + ".CG"); curHDX = new HDX(dd.FullName + "\\" + Name + ".HDX"); } WorkDir = workDir; }
public Align(string name, string[] ICDtext, string[] SQXtext, string[] DMXtext, string[] CGtext = null, string[] HDXtext = null, bool isReadVert = true) { Name = name; curPQX = new PQX(Name + "_PQX"); curPQX.ReadICDFile(ICDtext); if (isReadVert) { curDMX = new DMX(DMXtext); curSQX = new SQX(SQXtext); if (CGtext != null) { curCG = new CG(CGtext); } if (HDXtext != null) { curHDX = new HDX(HDXtext); } } WorkDir = ""; }