示例#1
0
        public void SetValue(AbmachValType type, double value, double xPos, double yPos)
        {
            int xI = base.Xindex(xPos);
            int yI = base.Yindex(yPos);

            SetValue(type, value, xI, yI);
        }
示例#2
0
        public void SetValue(AbmachValType type, AbmachVal value, int xI, int yI)
        {
            AbmachVal v = base.GetValue(xI, yI);

            switch (type)
            {
            case AbmachValType.MachIndex:
                v.MachIndex = value.MachIndex;
                break;

            case AbmachValType.Mask:
                v.Mask = value.Mask;
                break;

            case AbmachValType.Model:
                v.Model = value.Model;
                break;

            case AbmachValType.Start:
                v.Start = value.Start;
                break;

            case AbmachValType.Target:
                v.Target = value.Target;
                break;

            case AbmachValType.Temp:
                v.Temp = value.Temp;
                break;
            }
            base.SetValue(v, xI, yI);
        }
示例#3
0
        public void Insert(AbmachValType type, AbmachSurface surface)
        {
            for (int i = 0; i < xSize; i++)
            {
                int xIndex = surface.Xindex(Xposition(i));
                for (int j = 0; j < ySize; j++)
                {
                    int       yIndex = surface.Yindex(Yposition(j));
                    AbmachVal v      = surface.GetValue(xIndex, yIndex);

                    SetValue(type, v, xIndex, yIndex);
                }
            }
        }
示例#4
0
 public void InitValue(AbmachValType type, double value)
 {
 }
示例#5
0
 public void SetSurfaceStatus(AbmachValType surface, SurfaceInputType status)
 {
     surfaceStatusDictionary.Remove(surface);
     surfaceStatusDictionary.Add(surface, status);
 }
示例#6
0
 public SurfaceInputType GetSurfaceStatus(AbmachValType type)
 {
     return(surfaceStatusDictionary[type]);
 }