Beispiel #1
0
        /*
         *        METHODS    :    VALIDATORS SOURCE
         */
        internal StatusGV.TypeStatusExec ValidateTypeGlyphSource(GErrList gerrlist)
        {
            DIAction dia = DIActionBuilder.DIA(gerrlist, "DIAFunc_AddToListUnique");

            gerrlist.DIW = new DIWrapperSource(this.index,
                                               GConsts.TypeGlyph.Undef,
                                               GScope.TypeGScope._GG_);

            I_IOGlyphs i_IOGlyphs = this.fm.IIOGlyphs;

            if (i_IOGlyphs == null)
            {
                //throw new ExceptionGlyph("Glyph","ValidateTypeGlyphSource",null);
                return(StatusGV.TypeStatusExec.Aborted);
            }

            int numErrBefore = gerrlist.Length;

            i_IOGlyphs.ReadTypeGlyph(this.index, out this.typeGlyph, dia);
            int numErrAfter = gerrlist.Length;
            int iErr;

            for (iErr = numErrBefore; iErr < numErrAfter; iErr++)
            {
                gerrlist[iErr].TypeGlyph = this.typeGlyph;
            }
            gerrlist.DIW = null;
            return(StatusGV.TypeStatusExec.Completed);
        }
Beispiel #2
0
        internal StatusGV.TypeStatusExec ValidateCompSource(GErrList gerrlist)
        {
            if (this.bbox != null)
            {
                this.bbox.Clear();
                this.bbox = null;
            }
            if (this.comp != null)
            {
                this.comp.ClearDestroy();
                this.comp = null;
            }
            if (this.outl != null)
            {
                this.outl.ClearDestroy();
                this.outl = null;
            }

            if (this.typeGlyph == GConsts.TypeGlyph.Empty)
            {
                return(StatusGV.TypeStatusExec.Completed);
            }
            if (this.typeGlyph != GConsts.TypeGlyph.Composite)
            {
                //throw new ExceptionGlyph("Glyph","ValidateCompSource",null);
                return(StatusGV.TypeStatusExec.Aborted);
            }
            DIAction dia = DIActionBuilder.DIA(gerrlist, "DIAFunc_AddToListUnique");

            gerrlist.DIW = new DIWrapperSource(this.index, this.typeGlyph, GScope.TypeGScope._GGB_);

            I_IOGlyphs i_IOGlyphs = this.fm.IIOGlyphs;

            if (i_IOGlyphs == null)
            {
                //throw new ExceptionGlyph("Glyph","ValidateCompSource",null);
                return(StatusGV.TypeStatusExec.Aborted);
            }
            i_IOGlyphs.ReadGGB(this.index, out this.bbox, dia);
            i_IOGlyphs.ReadGGC(this.index, out this.comp, dia);
            if (this.comp != null)
            {
                this.fm.OnGComposite(this.index);
            }


            gerrlist.DIW = null;
            return(StatusGV.TypeStatusExec.Completed);
        }
Beispiel #3
0
        public FManager(I_IOGlyphs i_IOGlyphs,
                        I_ProgressUpdater i_ProgressUpdater,
                        I_TestReader i_TestReader) :
            this()
        {
            this.i_IOGlyphs = i_IOGlyphs;
            if (this.i_IOGlyphs != null)
            {
                if (!this.i_IOGlyphs.ReadNumGlyph(out this.fwNumGlyph, null))
                {
                    this.fwNumGlyph = GConsts.IND_UNDEFINED;
                }
            }

            this.i_ProgressUpdater = i_ProgressUpdater;
            // TODO: init flags from i_TestReader
        }
Beispiel #4
0
        public void ClearDestroy()
        {
            this.gerrPool.ClearDestroy();
            this.gStore.ClearDestroy();
            // clear common information
            this.fwNumGlyph = GConsts.IND_UNINITIALIZED;

            this.gerrPool = null;
            this.gStore   = null;

            this.f_performGV.Clear();
            this.f_performGC.Clear();
            this.f_performGV = null;
            this.f_performGC = null;

            this.i_IOGlyphs        = null;
            this.i_ProgressUpdater = null;
        }
Beispiel #5
0
        /*
         *            CONSTRUCTORS
         */
        public FManager()
        {
            // storage
            this.gerrPool = new GErrPool();
            this.gStore   = new GStore();
            this.grel     = new GRelations();

            this.indGM        = new ArrayList();
            this.pathCompBind = new ArrayList();
            // font information
            this.fwNumGlyph = GConsts.IND_UNINITIALIZED;

            // interfaces
            this.i_IOGlyphs = null;

            // flags - which tests shoud be performed
            this.f_performGV = new FlagsGV();
            this.f_performGC = new Flags(typeof(DefsGM.TypeGM));
            this.FlagsSetDefault();

            // glyph as fm holder
            // Glyph glyph=new Glyph(GConsts.IND_UNDEFINED,this);
        }
        /*
         *            CONSTRUCTORS
         */
        public FManager()
        {
            // storage
            this.gerrPool=new GErrPool();
            this.gStore=new GStore();
            this.grel=new GRelations();

            this.indGM=new ArrayList();
            this.pathCompBind=new ArrayList();
            // font information
            this.fwNumGlyph=GConsts.IND_UNINITIALIZED;
    
            // interfaces
            this.i_IOGlyphs=null;
            
            // flags - which tests should be performed
            this.f_performGV=new FlagsGV();
            this.f_performGC=new Flags(typeof(DefsGM.TypeGM));
            this.FlagsSetDefault();

            // glyph as fm holder
            // Glyph glyph=new Glyph(GConsts.IND_UNDEFINED,this);
        }
        public void ClearDestroy()
        {
            this.gerrPool.ClearDestroy();
            this.gStore.ClearDestroy();
            // clear common information
            this.fwNumGlyph=GConsts.IND_UNINITIALIZED;

            this.gerrPool=null;
            this.gStore=null;

            this.f_performGV.Clear();
            this.f_performGC.Clear();
            this.f_performGV=null;
            this.f_performGC=null;
                
            this.i_IOGlyphs=null;
            this.i_ProgressUpdater=null;
        }
 public FManager(I_IOGlyphs i_IOGlyphs,
     I_ProgressUpdater i_ProgressUpdater, 
     I_TestReader i_TestReader) : 
     this()
 {
     this.i_IOGlyphs=i_IOGlyphs;
     if (this.i_IOGlyphs!=null)
     {
         if (!this.i_IOGlyphs.ReadNumGlyph(out this.fwNumGlyph,null))
             this.fwNumGlyph=GConsts.IND_UNDEFINED;
     }
         
     this.i_ProgressUpdater=i_ProgressUpdater;
     // TODO: init flags from i_TestReader
 }