8 namespace droid.Runtime.Prototyping.Displayers.Cells {
13 [AddComponentMenu(DisplayerComponentMenuPath._ComponentMenuPath
15 + DisplayerComponentMenuPath._Postfix)]
17 [SerializeField]
bool _plot_random_series =
false;
18 [SerializeField]
bool _retain_last_plot =
true;
20 public Boolean PlotRandomSeries {
21 get {
return this._plot_random_series; }
22 set { this._plot_random_series = value; }
27 protected override void Setup() { }
29 public override void Display(Double value) { }
31 public override void Display(
float[] values) { }
33 public override void Display(String values) { }
35 public override void Display(Vector3 value) {
throw new NotImplementedException(); }
36 public override void Display(Vector3[] value) { this.ScatterPlot(value); }
45 public override void Display(
float values) { }
48 if (this._retain_last_plot) {
49 if (this._Values != null) {
50 PlotSeries(this._Values);
67 if (this._Values == null || this._Values.Length == 0) {
68 if (this._plot_random_series) {
69 var vs = PlotFunctions.SampleRandomSeries(9);
70 this._Values = vs.Select(v => v._Val).ToArray();
84 Debug.Log(
"Plotting value points");
88 this._Values = points;
90 foreach (var point
in points) {
92 switch ((
int)point._Val) {
94 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.forward, Color.cyan);
97 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.back, Color.cyan);
100 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.up, Color.cyan);
103 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.down, Color.cyan);
106 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.left, Color.cyan);
109 NeodroidDrawingUtilities.ForDebug(point._Pos, Vector3.right, Color.cyan);
override void Display(Vector3 value)
override void Display(Points.ValuePoint points)
override void Display(Points.StringPoint point)
new void PlotSeries(Points.ValuePoint[] points)
override void Display(Points.ValuePoint[] points)
override void Display(Vector3[] value)
override void Display(float values)
override void Display(Double value)
override void Display(String values)
override void Display(Points.StringPoint[] points)
override void Display(float[] values)
new void ScatterPlot(Vector3[] points)