コード例 #1
0
        public bool IsNeedAdaptYBuffer(DataEntityInfo latestInfo)
        {
            bool notNeedDeepCopyYPlotBuffer = NotNeedDeepCopyYPlotBuffer();

            return((notNeedDeepCopyYPlotBuffer ^ latestInfo.NotNeedDeepCopyYPlotBuffer()) ||
                   this.LineNum != latestInfo.LineNum);
        }
コード例 #2
0
 public DataEntity(DataCheckParameters dataCheckParams)
 {
     DataInfo         = new DataEntityInfo();
     PlotBuf          = new PlotBuffer(this);
     _transBuf        = null;
     _dataCheckParams = dataCheckParams;
     Parallel         = new ParallelHandler(this, dataCheckParams);
 }
コード例 #3
0
        public void Copy(DataEntityInfo src)
        {
            this.Size           = src.Size;
            this.IsDeepCopy     = src.IsDeepCopy;
            this.XDataInputType = src.XDataInputType;
            this.LineNum        = src.LineNum;
//            this.XDataType = src.XDataType;
        }
コード例 #4
0
ファイル: PlotBuffer.cs プロジェクト: spartajet/SeeSharpTools
 public PlotBuffer(DataEntity dataEntity)
 {
     this._dataEntity = dataEntity;
     _dataInfo        = new DataEntityInfo();
     _plotSize        = 0;
     SparseRatio      = int.MaxValue;
     _xPlotBuffer     = null;
     _yPlotBuffer     = new List <IList <double> >(Constants.DefaultLineCapacity);
     _yShallowBuffer  = new List <IList <double> >(Constants.DefaultLineCapacity);
     this.PlotXStart  = double.NaN;
     this.PlotXEnd    = double.NaN;
 }
コード例 #5
0
        public bool IsNeedAdaptXBuffer(DataEntityInfo latestInfo)
        {
//            return NotNeedDeepCopyXPlotBuffer() ^ latestInfo.NotNeedDeepCopyXPlotBuffer();
            // TODO 为了保证稳定性,暂时强制配置
            return(true);
        }
コード例 #6
0
 public bool IsEqual(DataEntityInfo src)
 {
     return(this.IsDeepCopy == src.IsDeepCopy && this.XDataInputType == src.XDataInputType &&
            this.LineNum == src.LineNum &&
            !(this.Size <= Constants.MaxPointsInSingleSeries ^ src.Size <= Constants.MaxPointsInSingleSeries));
 }