Beispiel #1
0
 // Copy constructor
 internal ThingsFilter(ThingsFilter f)
 {
     // Copy
     name            = f.name;
     categoryname    = f.categoryname;
     thingtype       = f.thingtype;
     requiredfields  = new List <string>(f.requiredfields);
     forbiddenfields = new List <string>(f.forbiddenfields);
 }
Beispiel #2
0
        // Copy constructor
        internal ThingsFilter(ThingsFilter f)
        {
            // Copy
            name         = f.name;
            categoryname = f.categoryname;
            thingtype    = f.thingtype;
            thingzheight = f.thingzheight;
            thingangle   = f.thingangle;
            thingaction  = f.thingaction;
            thingargs    = new int[Thing.NUM_ARGS];
            Array.Copy(f.thingargs, thingargs, Thing.NUM_ARGS);
            thingtag        = f.thingtag;
            customfields    = new UniFields(f.customfields);
            requiredfields  = new List <string>(f.requiredfields);
            forbiddenfields = new List <string>(f.forbiddenfields);

            AdjustForMapFormat();
        }
Beispiel #3
0
        public const string DEFAULT_NAME = "Unnamed filter";         //mxd

        #endregion

        #region ================== Constructor / Disposer

        // Copy constructor
        internal ThingsFilter(ThingsFilter f)
        {
            // Copy
            name         = f.name;
            categoryname = f.categoryname;
            invert       = f.invert;       //mxd
            displaymode  = f.displaymode;  //mxd
            thingtype    = f.thingtype;
            thingzheight = f.thingzheight;
            thingangle   = f.thingangle;
            thingaction  = f.thingaction;
            thingargs    = new int[Thing.NUM_ARGS];
            Array.Copy(f.thingargs, thingargs, Thing.NUM_ARGS);
            thingtag        = f.thingtag;
            customfields    = new UniFields(f.customfields);
            requiredfields  = new List <string>(f.requiredfields);
            forbiddenfields = new List <string>(f.forbiddenfields);

            AdjustForMapFormat();

            // We have no destructor
            GC.SuppressFinalize(this);
        }