Object3DControls are dynamically added for a given part
This commit is contained in:
parent
77ec3d5909
commit
a35347df4a
17 changed files with 143 additions and 197 deletions
|
|
@ -28,6 +28,7 @@ either expressed or implied, of the FreeBSD Project.
|
|||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
|
@ -37,12 +38,14 @@ using MatterHackers.Agg.ImageProcessing;
|
|||
using MatterHackers.Agg.Platform;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.MeshVisualizer;
|
||||
using MatterHackers.PolygonMesh;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace MatterHackers.MatterControl.DesignTools
|
||||
{
|
||||
public class ImageObject3D : AssetObject3D
|
||||
public class ImageObject3D : AssetObject3D, IObject3DControlsProvider
|
||||
{
|
||||
private const double DefaultSizeMm = 60;
|
||||
|
||||
|
|
@ -126,6 +129,11 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
}
|
||||
}
|
||||
|
||||
public List<IObject3DControl> GetObject3DControls(Object3DControlsLayer object3DControlsLayer)
|
||||
{
|
||||
return new List<IObject3DControl> { new MoveInZControl(object3DControlsLayer) };
|
||||
}
|
||||
|
||||
private ImageBuffer LoadImage()
|
||||
{
|
||||
// TODO: Consider non-awful alternatives
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue