/// <summary> /// 配置CPlot的图像位图和数据 /// </summary> /// <param name="mReal">实数位图</param> /// <param name="mImag">虚数位图</param> /// <param name="mFFT">FFT位图</param> /// <param name="mDFT">DFT位图</param> /// <param name="mHis">直方图位图</param> /// <param name="mData">数据</param> /// <returns></returns> public bool configureCPlot(Bitmap mReal, Bitmap mImag, Bitmap mFFT, Bitmap mDFT, Bitmap mHis, CData mData, Form1 mForm, Bitmap mConstellation) { fbitMapReal = mReal; fbitMapImag = mImag; fbitMapFFT = mFFT; fbitMapDFT = mDFT; fbitMapHis = mHis; fbitMapConstellation = mConstellation; fForm = mForm; fData = mData; return(true); }
private void Form1_Load(object sender, EventArgs e) { fStack = new Stack <int>(); fInput = new CFileBase(); bMove = false; fData = new CData(); fData.configureData(this); fData.setInputFile(fInput); //fData.createData(); fbitMapReal = new Bitmap(1000, 250); fbitMapImag = new Bitmap(1000, 250); fbitMapFFT = new Bitmap(1000, 500); fbitMapDFT = new Bitmap(1000, 500); fbitMapHis = new Bitmap(1000, 500); fbitMapConstellation = new Bitmap(1000, 500); fPlot = new CPlot(); //fData.processData(); fPlot.configureCPlot(fbitMapReal, fbitMapImag, fbitMapFFT, fbitMapDFT, fbitMapHis, fData, this, fbitMapConstellation); realPicBox.Image = fbitMapReal; imagPixBox.Image = fbitMapImag; fftPicBox.Image = fbitMapFFT; dftPicBox.Image = fbitMapDFT; hisPicBox.Image = fbitMapHis; picConstellation.Image = fbitMapConstellation; statusTimer.Start(); //自适应FFT点数 //checkBox2.Checked = true; ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 50000; toolTip1.InitialDelay = 500; toolTip1.ReshowDelay = 200; // Force the ToolTip text to be displayed whether or not the form is active. toolTip1.ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(this.button5, "读取下一部分数据"); toolTip1.SetToolTip(this.button8, "选择缩放或者移动数据"); toolTip1.SetToolTip(this.button2, "返回上一次操作的数据"); toolTip1.SetToolTip(this.button6, "显示全部数据"); toolTip1.SetToolTip(this.button4, "显示一个数据"); }