Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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)));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 public override bool isBevat(Point p, SchetsElement s)
 {
     return(false);
 }
Ejemplo n.º 7
0
 public abstract bool isBevat(Point p, SchetsElement s);
Ejemplo n.º 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));
        }