Switch to indicating highlight, allow feature to determine highlight

This commit is contained in:
John Lewin 2019-02-22 07:41:14 -08:00
parent 1e965fc2e7
commit 2832f1f912
5 changed files with 33 additions and 17 deletions

View file

@ -36,7 +36,13 @@ namespace MatterHackers.GCodeVisualizer
{
protected int extruderIndex;
public abstract void Render(Graphics2D graphics2D, GCodeRenderInfo renderInfo, Color overrideColor = default(Color));
public static Color HighlightColor { get; set; } = new Color("#D0F476");
public static Color StartColor { get; set; } = Color.Red;
public static Color EndColor { get; set; } = new Color("#008000");
public abstract void Render(Graphics2D graphics2D, GCodeRenderInfo renderInfo, bool highlightFeature = false);
public abstract void CreateRender3DData(VectorPOD<ColorVertexData> colorVertexData, VectorPOD<int> indexData, GCodeRenderInfo renderInfo);