예제 #1
0
        public override bool isBevat(Point p, SchetsElement s)
        {
            GraphicsPath myPath = new GraphicsPath();

            myPath.AddLine(s.Beginpunt, s.Eindpunt);
            myPath.Widen(MaakPen(kwast, 3));
            return(myPath.IsVisible(p));
        }
예제 #2
0
        public override bool isBevat(Point p, SchetsElement s)
        {
            Size         siz       = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y));
            Rectangle    myEllipse = new Rectangle(s.Beginpunt, siz);
            GraphicsPath myPath    = new GraphicsPath();

            myPath.AddEllipse(myEllipse);
            return(myPath.IsVisible(p));
        }
예제 #3
0
        public override bool isBevat(Point p, SchetsElement s)
        {
            Size         siz         = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y));
            Rectangle    myRectangle = new Rectangle(s.Beginpunt, siz);
            GraphicsPath myPath      = new GraphicsPath();

            myPath.AddRectangle(myRectangle);
            return(myPath.IsOutlineVisible(p.X, p.Y, MaakPen(kwast, 3)));
        }
예제 #4
0
        public override bool isBevat(Point p, SchetsElement s)
        {
            GraphicsPath myPath = new GraphicsPath();

            myPath.AddString(s.Tekst, new FontFamily("Tahoma"), (int)FontStyle.Regular, 48, s.Beginpunt, StringFormat.GenericDefault);
            Matrix m = new Matrix();

            m.RotateAt(s.Gedraaid, s.Beginpunt);
            myPath.Transform(m);
            return(myPath.IsVisible(p));
        }
예제 #5
0
 public override bool isBevat(Point p, SchetsElement s)
 {
     for (int i = 0; i < (s.penPunten.Count - 1); i++)
     {
         GraphicsPath myPath = new GraphicsPath();
         myPath.AddLine(s.penPunten[i], s.penPunten[i + 1]);
         myPath.Widen(MaakPen(kwast, 3));
         if (myPath.IsVisible(p))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #6
0
 public override bool isBevat(Point p, SchetsElement s)
 {
     return(false);
 }
예제 #7
0
 public abstract bool isBevat(Point p, SchetsElement s);
예제 #8
0
        public override bool isBevat(Point p, SchetsElement s)
        {
            Size siz = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y));

            return(new Rectangle(s.Beginpunt, siz).Contains(p));
        }