예제 #1
0
        public void NotifyMouseUp(object sender, MouseButtonEventArgs e)
        {
            var VP = sender as ViewPort3D;

            if (e.ChangedButton == MouseButton.Left)
            {
                if (_state == 0)
                {
                    this.StartPoint = DrawPlane.PointAt(DrawPlane.Project(VP.CurrentPoint));
                    _state++;
                }

                else if (_state == 1)
                {
                    EndPoint = DrawPlane.PointAt(DrawPlane.Project(VP.CurrentPoint));
                    VP.Entities.Add(new devDept.Eyeshot.Entities.Line(StartPoint, EndPoint));
                    VP.ReleaseDrawing <ProfileHelper>();
                }
            }

            else if (e.ChangedButton == MouseButton.Right)
            {
                VP.ReleaseDrawing <ProfileHelper>();
                VP.Entities.Clear();
            }
        }
예제 #2
0
 public PointT(devDept.Geometry.Point3D another) : base(another)
 {
 }