Ejemplo n.º 1
0
        public void UpdateMaxAndMin(MapPosition position)
        {
            if (position == null)
            {
                return;
            }

            if (Max == null || Min == null)
            {
                Max = new MapPosition(position.X, position.Y);
                Min = new MapPosition(position.X, position.Y);
            }
            else
            {
                if (position.X > Max.X)
                {
                    Max.X = position.X;
                }
                else if (position.X < Min.X)
                {
                    Min.X = position.X;
                }

                if (position.Y > Max.Y)
                {
                    Max.Y = position.Y;
                }
                else if (position.Y < Min.Y)
                {
                    Min.Y = position.Y;
                }
            }
        }
Ejemplo n.º 2
0
 public BarocdeLineMap(string id, int start_Number, MapPosition start_Position, int end_Number, MapPosition end_Position, EnumAGVPositionType type)
 {
     ID             = id;
     Start_Number   = start_Number;
     Start_Position = start_Position;
     End_Number     = end_Number;
     End_Position   = end_Position;
     Type           = type;
 }
Ejemplo n.º 3
0
 public LocateAGVPosition(MapPosition position, double theta, double value, double scanTime, DateTime getDataTime, uint count, EnumAGVPositionType type, string device, int oreder)
 {
     AGVPosition = new MapAGVPosition(position, theta);
     Value       = value;
     ScanTime    = scanTime;
     GetDataTime = getDataTime;
     Count       = count;
     Type        = type;
     Device      = device;
     Order       = oreder;
 }
Ejemplo n.º 4
0
 public MapAGVPosition(MapPosition position, double theta)
 {
     Position = position;
     Angle    = theta;
 }
Ejemplo n.º 5
0
 public MapAGVPosition(MapAGVPosition old)
 {
     Angle    = old.Angle;
     Position = new MapPosition(old.Position.X, old.Position.Y);
 }
Ejemplo n.º 6
0
 public BarcodeData(int id, double x, double y)
 {
     ID           = id;
     ViewPosition = new MapPosition((float)x, (float)y);
 }