Esempio n. 1
0
 public override void Start()
 {
     base.Start();
     limitTiltAngle = true;
     rayLength      = 300.0f;
     target         = new Vector3(595.0f, 50.0f, 510.0f);
     nextStepTarget = new Vector3(target.x, target.y, target.z);
     area           = new BoundRect(800.0f, 200.0f, 700.0f, 200.0f);
 }
Esempio n. 2
0
        private void btnRotateCCW_Click(object sender, EventArgs e)
        {
            var br = new BoundRect();

            foreach (var entity in this.Document.Action.SelectedEntity)
            {
                br.Union(entity.BoundRect);
            }
            if (br.IsEmpty)
            {
                return;
            }

            this.Document.Action.ActEntityRotate(this.Document.Action.SelectedEntity, 90, br.Center.X, br.Center.Y);
        }
Esempio n. 3
0
 private void btnZoomIn_Click(object sender, EventArgs e)
 {
     if (null == Document.Action.SelectedEntity || 0 == Document.Action.SelectedEntity.Count)
     {
         this.view?.OnZoomIn(new System.Drawing.Point(GLcontrol.Width / 2, GLcontrol.Height / 2));
     }
     else
     {
         var br = new BoundRect();
         foreach (var entity in Document.Action.SelectedEntity)
         {
             br.Union(entity.BoundRect);
         }
         this.view?.OnZoomIn(br);
     }
 }
Esempio n. 4
0
 public override bool isPointIn(PointF point)
 {
     return(BoundRect.Contains(point));
 }