Exemplo n.º 1
0
        public SurfacePointTool(FScene scene, SceneObject target) : base(scene, target)
        {
            InputBehaviors.Add(
                new SurfacePointTool_2DBehavior(scene.Context, this)
            {
                Priority = 4
            });

            scene.Context.TransformManager.PushOverrideGizmoType(TransformManager.NoGizmoType);
        }
Exemplo n.º 2
0
 public void EndSetPlaneFromSingleClick()
 {
     if (active_behavior != null)
     {
         InputBehaviors.Remove(active_behavior);
         active_behavior = null;
     }
     set_targets_visibility(false);
     Scene.Context.RegisterNextFrameAction(() => {
         set_preview_visibility(true);
     });
 }
Exemplo n.º 3
0
 public void BeginSetPlaneFromSingleClick()
 {
     active_behavior = new PlaneCutTool_2DBehavior(Scene.Context, this)
     {
         Priority = 5
     };
     InputBehaviors.Add(active_behavior);
     end_on_set = true;
     set_preview_visibility(false);
     Scene.Context.RegisterNextFrameAction(() => {
         set_targets_visibility(true);
     });
 }