Exemplo n.º 1
0
        private void onReceived_lefthanddata(TimedPoint2D trjdata)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <TimedPoint2D>(onReceived_lefthanddata), new object[] { trjdata });

                if (tmpleftpoint == null)
                {
                    tmpleftpoint = new Point2D();
                }

                tmpleftpoint.X = -trjdata.Data.Y;
                tmpleftpoint.Y = -trjdata.Data.X;

                //               drawpoints();
                return;
            }
        }
Exemplo n.º 2
0
        private void onReceived_righthanddata(TimedPoint2D trjdata)
        {
            if (InvokeRequired)
            {
                Invoke(new Action <TimedPoint2D>(onReceived_righthanddata), new object[] { trjdata });

                try
                {
                    tmprightpoint   = new Point2D();
                    tmprightpoint.X = -trjdata.Data.Y;
                    tmprightpoint.Y = -trjdata.Data.X;
                    addpoint();
                }
                catch { }

                if (isGraphicsUsed == false)
                {
                    drawpoints();
                }
                return;
            }
        }
Exemplo n.º 3
0
 ///<exclude/>
 public bool Equals(TimedPoint2D other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other._Tm.Equals(_Tm) && other._Data.Equals(_Data);
 }