Target any widget for mesh GLDraw
This commit is contained in:
parent
24513bf19d
commit
1962db4210
4 changed files with 134 additions and 18 deletions
|
|
@ -79,7 +79,7 @@ namespace MatterHackers.MeshVisualizer
|
|||
|
||||
private PrinterConfig printer;
|
||||
|
||||
public MeshViewerWidget(PrinterConfig printer, TrackballTumbleWidget trackballTumbleWidget, InteractionLayer interactionLayer, string startingTextMessage = "", EditorType editorType = EditorType.Part)
|
||||
public MeshViewerWidget(PrinterConfig printer, InteractionLayer interactionLayer, string startingTextMessage = "", EditorType editorType = EditorType.Part)
|
||||
{
|
||||
this.EditorMode = editorType;
|
||||
this.scene = printer.Bed.Scene;
|
||||
|
|
@ -106,8 +106,7 @@ namespace MatterHackers.MeshVisualizer
|
|||
BedColor = new RGBA_Floats(.8, .8, .8, .7).GetAsRGBA_Bytes();
|
||||
BuildVolumeColor = new RGBA_Floats(.2, .8, .3, .2).GetAsRGBA_Bytes();
|
||||
|
||||
this.trackballTumbleWidget = trackballTumbleWidget;
|
||||
this.trackballTumbleWidget.DrawGlContent += this.trackballTumbleWidget_DrawGlContent;
|
||||
this.interactionLayer.DrawGlContent += this.trackballTumbleWidget_DrawGlContent;
|
||||
}
|
||||
|
||||
public override void OnParentChanged(EventArgs e)
|
||||
|
|
@ -365,9 +364,6 @@ namespace MatterHackers.MeshVisualizer
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private TrackballTumbleWidget trackballTumbleWidget;
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
private void DrawObject(IObject3D object3D, Matrix4X4 transform, bool parentSelected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue