Example #1
0
        /// <summary>
        /// Needed for coordinate transforming styles to plot the data.
        /// </summary>
        /// <param name="g">Graphics context.</param>
        /// <param name="layer">The plot layer.</param>
        /// <param name="plotdata">The plot data. Since the data are transformed, you should not rely that the physical values in this item correspond to the area coordinates.</param>
        /// <param name="prevPlotData">Plot data of the previous plot item.</param>
        /// <param name="nextPlotData">Plot data of the next plot item.</param>
        public virtual void Paint(IGraphicsContext3D g, IPlotArea layer, Processed3DPlotData plotdata, Processed3DPlotData prevPlotData, Processed3DPlotData nextPlotData)
        {
            _cachedPlotDataUsedForPainting = plotdata ?? throw new ArgumentNullException(nameof(plotdata));

            if (null != _plotStyles)
            {
                _plotStyles.Paint(g, layer, plotdata, prevPlotData, nextPlotData);
            }
        }