improve primary operations
This commit is contained in:
parent
3f8eeda65b
commit
0416a941d7
14 changed files with 83 additions and 121 deletions
|
|
@ -52,8 +52,8 @@ using Polygons = System.Collections.Generic.List<System.Collections.Generic.List
|
|||
namespace MatterHackers.MatterControl.DesignTools
|
||||
{
|
||||
[HideMeterialAndColor]
|
||||
public class ImageToPathObject3D_2 : Object3D, IImageProvider, IEditorDraw, IObject3DControlsProvider, IPropertyGridModifier, IEditorWidgetModifier
|
||||
{
|
||||
public class ImageToPathObject3D_2 : PathObject3D, IImageProvider, IEditorDraw, IObject3DControlsProvider, IPropertyGridModifier, IEditorWidgetModifier
|
||||
{
|
||||
public ImageToPathObject3D_2()
|
||||
{
|
||||
Name = "Image to Path".Localize();
|
||||
|
|
@ -178,16 +178,6 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
object3DControlsLayer.AddControls(ControlTypes.Standard2D);
|
||||
}
|
||||
|
||||
public void DrawEditor(Object3DControlsLayer layer, DrawEventArgs e)
|
||||
{
|
||||
this.DrawPath();
|
||||
}
|
||||
|
||||
public AxisAlignedBoundingBox GetEditorWorldspaceAABB(Object3DControlsLayer layer)
|
||||
{
|
||||
return this.GetWorldspaceAabbOfDrawPath();
|
||||
}
|
||||
|
||||
public override bool CanApply => true;
|
||||
|
||||
[HideFromEditor]
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
Sharp,
|
||||
}
|
||||
|
||||
public class InflatePathObject3D : Object3D, IEditorDraw, IObject3DControlsProvider
|
||||
{
|
||||
public class InflatePathObject3D : PathObject3D, IEditorDraw, IObject3DControlsProvider
|
||||
{
|
||||
public InflatePathObject3D()
|
||||
{
|
||||
Name = "Inflate Path".Localize();
|
||||
|
|
@ -135,15 +135,5 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
|
||||
return joinType;
|
||||
}
|
||||
|
||||
public void DrawEditor(Object3DControlsLayer layer, DrawEventArgs e)
|
||||
{
|
||||
this.DrawPath();
|
||||
}
|
||||
|
||||
public AxisAlignedBoundingBox GetEditorWorldspaceAABB(Object3DControlsLayer layer)
|
||||
{
|
||||
return this.GetWorldspaceAabbOfDrawPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -45,8 +45,8 @@ using MatterHackers.VectorMath;
|
|||
|
||||
namespace MatterHackers.MatterControl.DesignTools.Operations
|
||||
{
|
||||
public class OutlinePathObject3D : Object3D, IEditorDraw, IObject3DControlsProvider
|
||||
{
|
||||
public class OutlinePathObject3D : PathObject3D, IEditorDraw, IObject3DControlsProvider
|
||||
{
|
||||
public OutlinePathObject3D()
|
||||
{
|
||||
Name = "Outline Path".Localize();
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ using Polygons = System.Collections.Generic.List<System.Collections.Generic.List
|
|||
|
||||
namespace MatterHackers.MatterControl.DesignTools.Operations
|
||||
{
|
||||
public class SmoothPathObject3D : Object3D, IEditorDraw, IObject3DControlsProvider
|
||||
public class SmoothPathObject3D : PathObject3D, IEditorDraw, IObject3DControlsProvider
|
||||
{
|
||||
public SmoothPathObject3D()
|
||||
{
|
||||
|
|
@ -178,15 +178,5 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
|
||||
VertexStorage = outputPolygons.CreateVertexStorage();
|
||||
}
|
||||
|
||||
public void DrawEditor(Object3DControlsLayer layer, DrawEventArgs e)
|
||||
{
|
||||
this.DrawPath();
|
||||
}
|
||||
|
||||
public AxisAlignedBoundingBox GetEditorWorldspaceAABB(Object3DControlsLayer layer)
|
||||
{
|
||||
return this.GetWorldspaceAabbOfDrawPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue