コード例 #1
0
 public void Copy(DataEntityInfo src)
 {
     this.Capacity  = src.Capacity;
     this.XType     = src.XType;
     this.LineCount = src.LineCount;
     this.DataType  = src.DataType;
 }
コード例 #2
0
        public PlotBuffer(int lineCount, int displayCount)
        {
            _dataInfo       = new DataEntityInfo();
            _plotCount      = 0;
            SparseRatio     = int.MaxValue;
            this.PlotXStart = double.NaN;
            this.PlotXEnd   = double.NaN;

            _xPlotBuffer = new List <int>(Constants.MaxPointsInSingleSeries);
            FillDefaultToListBuffer(_xPlotBuffer, 0, Constants.MaxPointsInSingleSeries);
            _yPlotBuffer   = new List <IList <TDataType> >(Constants.DefaultLineCapacity);
            YShallowBuffer = new List <IList <TDataType> >(Constants.DefaultLineCapacity);
            for (int i = 0; i < lineCount; i++)
            {
                IList <TDataType> yBuf = new List <TDataType>(Constants.MaxPointsInSingleSeries);
                _yPlotBuffer.Add(yBuf);
            }
            foreach (IList <TDataType> yBuf in _yPlotBuffer)
            {
                FillZeroToNumericCollection(yBuf);
            }
        }
コード例 #3
0
        protected DataEntityBase(PlotManager plotManager, DataEntityInfo dataInfo)
        {
            this.ParentManager   = plotManager;
            this.FitType         = plotManager.FitType;
            this.DataInfo        = dataInfo;
            this.ParallelHandler = new ParallelHandler(ParentManager.DataCheckParams);

            _lastXStart       = int.MinValue;
            _lastXEnd         = int.MinValue;
            _lastXSparseRatio = int.MinValue;
            LastYStartIndex   = new int[DataInfo.LineCount];
            LastYEndIndex     = new int[DataInfo.LineCount];
            SparseRatio       = new int[DataInfo.LineCount];
            _maxYValues       = new double[DataInfo.LineCount];
            _minYValues       = new double[DataInfo.LineCount];
            for (int i = 0; i < DataInfo.LineCount; i++)
            {
                LastYStartIndex[i] = int.MinValue;
                LastYEndIndex[i]   = int.MinValue;
                SparseRatio[i]     = int.MaxValue;
                _maxYValues[i]     = double.MinValue;
                _minYValues[i]     = double.MaxValue;
            }
        }
コード例 #4
0
 public bool Equals(DataEntityInfo src)
 {
     return(this.XType == src.XType && ReferenceEquals(DataType, src.DataType) &&
            this.LineCount == src.LineCount && this.Capacity == src.Capacity);
 }