Exemplo n.º 1
0
 public DHitTest HitTest(DPoint pt, Figure f, double scale)
 {
     if (IsVisible(f.Selected))
     {
         if (DGeom.PointInRect(pt, GetRect(pos, f.GetSelectRect(), scale)))
             return DHitTest.Glyph;
     }
     return DHitTest.None;
 }
Exemplo n.º 2
0
 public override void Paint(DGraphics dg, Figure f, double scale)
 {
     dg.DrawBitmap(bmp, GetRect(Position, f.GetSelectRect(), scale));
 }
Exemplo n.º 3
0
 double GetRotationOfPointComparedToFigure(Figure f, DPoint pt)
 {
     return DGeom.AngleBetweenPoints(f.GetSelectRect().Center, pt);
 }