private void UpdateCatesianGrid(IUpdateColorPalette grid, GridBlockProperty property) { double axisMin, axisMax, step; ColorIndicatorAxisAutomator.Automate(property.MinValue, property.MaxValue, out axisMin, out axisMax, out step); grid.MinColorCode = (float)axisMin; grid.MaxColorCode = (float)axisMax; grid.UpdateColor(property); this.UIColorPalette.SetCodedColor(axisMin, axisMax, step); }
/// <summary> /// Show property's color binded to this script. /// </summary> public void Show() { SceneObject sceneObject = this.BindingObject; var renderer = sceneObject.Renderer as GridViewRenderer; if (renderer != null) { IUpdateColorPalette grid = renderer.Grid; UpdateCatesianGrid(grid, this.GridBlockProperty); } }