protected void ChangePlot(int idx, PlotData.PlotType type) { if (plotter == null) { return; } lock (plotter.plotDataLock) { var data = plotData[idx]; data.type = type; } }
protected int AddPlot(State q, PlotData.PlotType type, int searchIndex) { if (plotter == null) { return(-1); } int idx; lock (plotter.plotDataLock) { idx = plotData.Count; plotData.Add(new PlotData(q, type, searchIndex)); } return(idx); }