예제 #1
0
 protected void RequestAddManip(List<SpatialManip> manips,
   Dictionary<ShapeCircle, ShapeCircleSettings> shapeSettings, Shape shape, ShapeCircle circle)
 {
   ShapeCircleSettings circleSettings = shapeSettings[circle];
   if(shape.EditTemplateMode || circleSettings.EnableOffset || circleSettings.EnableRotate)
   {
     PivotManip manip = new PivotManip(circle, shape.SceneView);
     manips.Add(manip);
     if(!shape.EditTemplateMode)
     {
       manip.EnableOffset = circleSettings.EnableOffset;
       manip.EnableRotate = circleSettings.EnableRotate;
     }
   }
 }
예제 #2
0
 public virtual SpatialManip GetSelectionManip(Shape shape)
 {
   if(shape.EditTemplateMode)
   {
     return new RefManip(shape.RootCircle, shape.SceneView);
   }
   else
   {
     PivotManip manip = new PivotManip(shape.RootCircle, shape.SceneView);
     ShapeCircleSettings shapeCircleSettings = GetCircleSettings(shape.RootCircle);
     manip.EnableRotate = shapeCircleSettings.EnableRotate;
     return manip;
   }
 }