/// <summary> /// This routine ensures that the plot item updates all its cached data and send the appropriate /// events if something has changed. Called before the layer paint routine paints the axes because /// it must be ensured that the axes are scaled correctly before the plots are painted. /// </summary> /// <param name="layer">The plot layer.</param> public override void PrepareScales(IPlotArea layer) { if (null != this.m_PlotAssociation) { m_PlotAssociation.CalculateCachedData(); } }
/// <summary> /// This routine ensures that the plot item updates all its cached data and send the appropriate /// events if something has changed. Called before the layer paint routine paints the axes because /// it must be ensured that the axes are scaled correctly before the plots are painted. /// </summary> /// <param name="layer">The plot layer.</param> public override void PrepareScales(IPlotArea layer) { if (null != _plotData) { _plotData.CalculateCachedData(layer.XAxis.DataBoundsObject, layer.YAxis.DataBoundsObject, layer.ZAxis.DataBoundsObject); // in case our plot style uses its own scale for coloring the mesh, we do prepare the scale used by the style _plotStyle?.PrepareScales(layer, _plotData); } }
/// <summary> /// This routine ensures that the plot item updates all its cached data and send the appropriate /// events if something has changed. Called before the layer paint routine paints the axes because /// it must be ensured that the axes are scaled correctly before the plots are painted. /// </summary> /// <param name="layer">The plot layer.</param> public override void PrepareScales(IPlotArea layer) { if (null != _plotData) { _plotData.CalculateCachedData(layer.XAxis.DataBoundsObject, layer.YAxis.DataBoundsObject); if (null != _plotStyle) { _plotStyle.PrepareScales(layer, _plotData); } } }