コード例 #1
0
        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;
        }
コード例 #2
0
        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 = "";
        }