コード例 #1
0
        public Color?OverridePointMarker(IRenderableSeries3D series, int index, IPointMetadata3D metadata)
        {
            var pmFillColor = Colors.Lime;

            if (metadata != null && metadata.IsSelected)
            {
                pmFillColor = Colors.White;
            }

            return(pmFillColor);
        }
        public Color?OverrideCellColor(IRenderableSeries3D series, int xIndex, int zIndex)
        {
            if (zIndex == 0 || xIndex == 0 ||
                zIndex == 47 || xIndex == 47)
            {
                return(_colors[_random.Next(1, _colors.Count())]);
            }
            else if ((zIndex >= 20 && zIndex <= 26) || (xIndex >= 20 && xIndex <= 26))
            {
                return((Color?)Colors.Transparent);
            }

            return(_colors[_random.Next(1, _colors.Count())]);
        }
コード例 #3
0
 public Color?OverrideCellColor(IRenderableSeries3D series, int xIndex, int zIndex)
 {
     /// override with transparent here where cells are hidden
     if (s_ds[zIndex, xIndex] == NullMaskingValue)
     {
         return((Color?)Colors.Transparent);
     }
     else
     {
         /// returning null here mean no override,
         /// returning white or any other color, will override what comes from gradient
         //return (Color?)Colors.White;
         return(null);
     }
 }
コード例 #4
0
 public void OnAttach(IRenderableSeries3D renderSeries)
 {
     _colors = GetCashedColorsCollection();
     _random = new Random();
 }
コード例 #5
0
 public void OnAttach(IRenderableSeries3D renderSeries)
 {
 }