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); }
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); }
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); } } }
public void InitValue(AbmachValType type, double value) { }
public void SetSurfaceStatus(AbmachValType surface, SurfaceInputType status) { surfaceStatusDictionary.Remove(surface); surfaceStatusDictionary.Add(surface, status); }
public SurfaceInputType GetSurfaceStatus(AbmachValType type) { return(surfaceStatusDictionary[type]); }