public void addPoint(BioSignPoint point)
 {
     point.Order = this.maxOrder;
     maxOrder++;
     if (point.Pressure > 0)
     {
         this.pointsWithPressure++;
     }
     this.points.Add(point);
 }
 public static BioSignPoint toBioSignPoint(wgssSTU.IPenData penData)
 {
     BioSignPoint result = new BioSignPoint();
     result.Pressure = penData.pressure;
     result.Rdy = penData.rdy;
     result.Sw = penData.sw;
     result.X = penData.x;
     result.Y = penData.y;
     result.Time = System.DateTime.Now;
     return result;
 }
 private Point tabletToScreen(BioSignPoint penData)
 {
     // Screen means LCD screen of the tablet.
     return Point.Round(new PointF((float)penData.X * m_capability.screenWidth / m_capability.tabletMaxX, (float)penData.Y * m_capability.screenHeight / m_capability.tabletMaxY));
 }
 private PointF tabletToClient(BioSignPoint penData)
 {
     // Client means the Windows Form coordinates.
     return new PointF((float)penData.X * this.ClientSize.Width / m_capability.tabletMaxX, (float)penData.Y * this.ClientSize.Height / m_capability.tabletMaxY);
 }
 public static wgssSTU.IPenData toIPenData(BioSignPoint point)
 {
     //wgssSTU.IPenData result = new wgssSTU.
     //result.pressure = point.Pressure;
     throw new NotImplementedException();
 }