Exemple #1
0
        public static NVCFND.Point Transform(this TransformGroup xfrm, NVCFND.Point inPoint)
        {
            Point intermediatePoint = new Point(inPoint.x, inPoint.y);
            var   nxtIntPt          = xfrm.Transform(intermediatePoint);

            return(new NVCFND.Point(nxtIntPt.X, nxtIntPt.Y));
        }
 public static WIN.Point Transform
     (this TransformGroup xfg,
     NVCFND.Point ptPreXfrm
     )
 {
     pt = new WIN.Point(ptPreXfrm.x, ptPreXfrm.y);
     return(xfg.Transform(pt));
 }
        private void local_MouseWheel(object sender, MouseWheelEventArgs e)
        {
            Double actualScale = wheelZoomFactor;
            int    sign        = Math.Sign(e.Delta);

            if (sign > 0)
            {
                actualScale = 1.0 / wheelZoomFactor;
            }

            WIN.Point    screenPt = e.GetPosition(this);
            NVCFND.Point zoomPt   = GetWorldPoint(screenPt);
            this.myCadViewPort.ScaleAbout(zoomPt, actualScale);
        }