public ParallelHandler(DataEntity dataEntity, DataCheckParameters dataCheckParams) { this._dataEntity = dataEntity; this._buffer = dataEntity.PlotBuf; this._option = new ParallelOptions(); this._indexOffset = 0; this._dataCheckParams = dataCheckParams; // 计算限制型配置并行度为内核个数 _option.MaxDegreeOfParallelism = Environment.ProcessorCount; this._maxDatas = new double[_option.MaxDegreeOfParallelism]; this._minDatas = new double[_option.MaxDegreeOfParallelism]; }
internal PlotManager(EasyChartX easyChart, SeriesCollection plotSeries, EasyChartXSeriesCollection lineSeries) { this._fitType = EasyChartX.FitType.Range; this.IsPlotting = false; this._easyChart = easyChart; this.CumulativePlot = false; this._plotSeriesCount = 1; this.PlotSeries = plotSeries; this._plotSeriesCount = PlotSeries.Count; this._lineSeries = lineSeries; this.PlotDatas = new List <DataEntity>(Constants.MaxPointsInSingleSeries); this.DataCheckParams = new DataCheckParameters(); }
internal PlotManager(EasyChartX parentChart, SeriesCollection plotSeries) { // LineSeries只是一个用于维护对外接口的属性 this._fitType = EasyChartX.FitType.Range; this.IsPlotting = false; this._parentChart = parentChart; this.CumulativePlot = false; this._plotSeriesCount = 1; this.PlotSeries = plotSeries; this._plotSeriesCount = PlotSeries.Count; this._series = new EasyChartXSeriesCollection(plotSeries, parentChart); LineSeries = new EasyChartXLineSeries(_series); this.PlotDatas = new List <DataEntity>(Constants.MaxPointsInSingleSeries); this.DataCheckParams = new DataCheckParameters(); this.MaxSeriesCount = Constants.DefaultMaxSeriesCount; }