Browse Source

Merge branch 'master' of http://43.143.235.246:9080/lhb/RadarSim

Haobin Luo 2 years ago
parent
commit
06668c3f0c
9 changed files with 1490 additions and 11 deletions
  1. 9 4
      RadarSim.pro
  2. 56 0
      interceptradar.cpp
  3. 36 0
      interceptradar.h
  4. 138 1
      mainwindow.cpp
  5. 25 1
      mainwindow.h
  6. 1123 5
      mainwindow.ui
  7. 16 0
      simdisplay.cpp
  8. 19 0
      simdisplay.h
  9. 68 0
      simdisplay.ui

+ 9 - 4
RadarSim.pro

@@ -1,6 +1,6 @@
 QT       += core gui
 QT += websockets
-
+QT += charts
 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
 CONFIG += c++11
@@ -18,7 +18,9 @@ SOURCES += \
     main.cpp \
     mainwindow.cpp \
     radarserver.cpp \
-    radarsiggen.cpp
+    radarsiggen.cpp \
+    interceptradar.cpp \
+    simdisplay.cpp
 
 HEADERS += \
     SigGen/Radar001/LinearFMWaveform.h \
@@ -30,10 +32,13 @@ HEADERS += \
     SigGen/tmwtypes.h \
     mainwindow.h \
     radarserver.h \
-    radarsiggen.h
+    radarsiggen.h \
+    interceptradar.h \
+    simdisplay.h
 
 FORMS += \
-    mainwindow.ui
+    mainwindow.ui \
+    simdisplay.ui
 
 # Default rules for deployment.
 qnx: target.path = /tmp/$${TARGET}/bin

+ 56 - 0
interceptradar.cpp

@@ -0,0 +1,56 @@
+#include "interceptradar.h"
+
+interceptRadar::interceptRadar(char waveform,double fc,double simTime,
+                               double BW,double T,double PRF,
+                               double fs)
+{
+    this->waveform = waveform;
+    this->simTime = simTime;
+    this->fs = fs;
+    this->fc = fc;
+    this->BW = BW;
+    this->T = T;
+    this->PRF = PRF;
+
+}
+interceptRadar::interceptRadar()
+{
+
+
+}
+double interceptRadar::getSimTime(){
+    return this->simTime;
+}
+double interceptRadar::getBW(){
+    return this->BW;
+}
+double interceptRadar::getFc(){
+    return this->fc;
+}
+double interceptRadar::getFs(){
+    return this->fs;
+}
+double interceptRadar::getPRF(){
+    return this->PRF;
+}
+double interceptRadar::getT(){
+    return this->T;
+}
+char interceptRadar::getWaveForm(){
+    return this->waveform;
+}
+double* interceptRadar::getSig(){
+
+    return this->sig;
+}
+void interceptRadar::setIndex(std::string index){
+    this->index = index;
+}
+std::string interceptRadar::getIndex(){
+    return this->index;
+}
+void interceptRadar::setSig(double *sig){
+
+    this->sig = sig;
+
+}

+ 36 - 0
interceptradar.h

@@ -0,0 +1,36 @@
+#ifndef INTERCEPTRADAR_H
+#define INTERCEPTRADAR_H
+#include <string>
+#include <iostream>
+class interceptRadar
+{
+private:
+    char waveform;//信号类型
+    double fc = 1000000000;//载波频率
+    double simTime;//仿真时间
+    double BW;//脉冲带宽
+    double T;//脉宽
+    double PRF;//脉冲重复周期
+    double fs;//系统采样率
+    double* sig;
+    std::string index;//雷达编号
+public:
+    interceptRadar(char waveform,double fc,double simTime,
+                   double BW,double T,double PRF,
+                   double fs);
+    interceptRadar();
+    char getWaveForm();
+    void setIndex(std::string index);
+    std::string getIndex();
+    double getFc();
+    double getSimTime();
+    double getBW();
+    double getT();
+    double getPRF();
+    double getFs();
+    double* getSig();
+    void setSig(double *sig);
+
+};
+
+#endif // INTERCEPTRADAR_H

+ 138 - 1
mainwindow.cpp

@@ -6,10 +6,16 @@ MainWindow::MainWindow(QWidget *parent)
     , ui(new Ui::MainWindow)
 {
     ui->setupUi(this);
+    this->setWindowTitle("蓝方模型创建及雷达信号模拟生成软件");
     //radarServer = new RadarServer(this, 1234);
     radarServerThread = new QThread(this);
     radarSigGenThread = new QThread(this);
-
+     tableview = new QStandardItemModel;
+     tableview->setHorizontalHeaderItem(0,new QStandardItem("雷达编号"));
+     tableview->setHorizontalHeaderItem(1,new QStandardItem("工作状态"));
+     tableview->setHorizontalHeaderItem(2,new QStandardItem("信号类型"));
+     tableview->setHorizontalHeaderItem(3,new QStandardItem("载波频率"));
+     rows = 0;
     radarServer = new RadarServer();
     radarSigGen = new RadarSigGen();
 
@@ -18,8 +24,27 @@ MainWindow::MainWindow(QWidget *parent)
 
     connect(radarServer,SIGNAL(SigRadarGen(int)),radarSigGen,SLOT(SlotRadarGen(int)));
 
+
     radarServerThread->start();
     radarSigGenThread->start();
+
+    ui->lineEdit_sigType->setText(QString::fromStdString("相位编码"));
+    ui->lineEdit_fc->setText(QString::number(1e9,'f',2));
+    ui->lineEdit_T->setText(QString::number(5e-6,'f',6));
+    ui->lineEdit_PRF->setText(QString::number(1/(20e6),'f',8));
+    ui->lineEdit_BW->setText(QString::number(20e6,'f',2));
+
+    simDisplay = new SimDisplay(this);
+
+
+    ui->lineEdit_sigType->setDisabled(true);
+    ui->lineEdit_fc->setDisabled(true);
+    ui->lineEdit_T->setDisabled(true);
+    ui->lineEdit_PRF->setDisabled(true);
+    ui->lineEdit_BW->setDisabled(true);
+
+
+
 }
 
 MainWindow::~MainWindow()
@@ -27,3 +52,115 @@ MainWindow::~MainWindow()
     delete ui;
 }
 
+void MainWindow::on_pushButton_42_clicked()
+{
+    simDisplay->show();
+    simDisplay->setModal(true);
+}
+
+
+
+void MainWindow::on_comboBox_radarType_currentIndexChanged(const QString &arg1)
+{
+    if(arg1.toStdString()=="模型1"){
+
+        ui->lineEdit_sigType->setText(QString::fromStdString("相位编码"));
+        ui->lineEdit_fc->setText(QString::number(1e9,'f',2));
+        ui->lineEdit_T->setText(QString::number(5e-6,'f',6));
+        ui->lineEdit_PRF->setText(QString::number(1/(20e6),'f',8));
+        ui->lineEdit_BW->setText(QString::number(20e6,'f',2));
+
+    }
+
+}
+
+void MainWindow::on_pushButton_5_clicked()
+{
+    // 1.获取画布
+        std::string chooseIndex = ui->comboBox_28->currentText().toStdString();
+        MyChartView = ui->SimShow;
+        QValueAxis MyAxisX;         // X轴
+        QValueAxis MyAxisY;         // Y轴
+        MyAxisX.setRange(0,100);
+        MyAxisY.setRange(-1,1);
+        MyAxisX.setTitleText(QStringLiteral("时间"));
+        MyAxisX.setTitleFont(QFont("宋体"));
+        MyAxisX.setTickCount(10);
+        MyAxisX.setGridLineVisible(true);
+        MyAxisX.setLineVisible(true);
+        MyAxisX.setGridLineColor(Qt::black);
+        MyChart.addAxis(&MyAxisX,Qt::AlignLeft);
+        MyChart.addAxis(&MyAxisY,Qt::AlignBottom);
+        MyChartView->setChart(&MyChart);
+        MyChartView->setRubberBand(QChartView::RectangleRubberBand);
+        MyChart.setTitle(QString::fromStdString("信号生成预览"));
+//        MyLineSeries.attachAxis(MyAxisX);
+//        MyLineSeries.attachAxis(MyAxisY);
+
+        double *currentSig;
+        for(int i=0;i<interceptRadarNum;i++)
+        {
+            if(chooseIndex==interceptRadarList[i]->getIndex()){
+                currentSig = interceptRadarList[i]->getSig();
+            }
+        }
+        // 3.给序列对象添加数据
+        for(int i = 0; i < 200000; i ++)
+        {
+            MyPointf << QPointF(i,currentSig[i]);
+        }
+        MyLineSeries.replace(MyPointf);
+        MyLineSeries.attachAxis(&MyAxisX);
+        // 4.将序列添加到坐标对象中
+        MyChart.addSeries(&MyLineSeries);
+        MyChart.addAxis(&MyAxisX,Qt::AlignLeft);
+        MyChart.addAxis(&MyAxisY,Qt::AlignBottom);
+        // 2.展示坐标对象(将坐标对象放到画布上)
+
+
+
+
+
+
+}
+
+
+
+void MainWindow::on_CreateInterceptRadarButton_clicked()
+{
+    std::cout<<ui->comboBox_radarType->currentIndex();
+    if(ui->comboBox_radarType->currentIndex()==0){//模型1
+        radarSigGen->SlotRadarGen(1);
+         interceptRadarList[interceptRadarNum] = new interceptRadar();
+         interceptRadarList[interceptRadarNum]->setIndex(ui->lineEdit_interceptRadarId->text().toStdString());
+         interceptRadarList[interceptRadarNum++]->setSig(radarSigGen->sig);
+
+
+         int lines = 0;
+
+             tableview->setItem(rows, lines++, new QStandardItem(ui->lineEdit_interceptRadarId->text()));
+
+             tableview->setItem(rows, lines++, new QStandardItem("正常"));
+              tableview->setItem(rows, lines++, new QStandardItem("相位编码"));
+               tableview->setItem(rows++, lines++, new QStandardItem(ui->lineEdit_fc->text()));
+           ui->tableView_6->setModel(tableview);
+           ui->tableView_11->setModel(tableview);
+           ui->comboBox_28->addItem(ui->lineEdit_interceptRadarId->text());
+
+    }
+    if(ui->comboBox_radarType->currentIndex()==1){//模型1
+        radarSigGen->SlotRadarGen(2);
+         interceptRadarList[interceptRadarNum] = new interceptRadar();
+         interceptRadarList[interceptRadarNum++]->setSig(radarSigGen->sig);
+         ui->comboBox_28->addItem(ui->lineEdit_interceptRadarId->text());
+    }
+    if(ui->comboBox_radarType->currentIndex()==2){//模型1
+        radarSigGen->SlotRadarGen(3);
+         interceptRadarList[interceptRadarNum] = new interceptRadar();
+         interceptRadarList[interceptRadarNum++]->setSig(radarSigGen->sig);
+         ui->comboBox_28->addItem(ui->lineEdit_interceptRadarId->text());
+    }
+
+
+
+}

+ 25 - 1
mainwindow.h

@@ -4,7 +4,11 @@
 #include <QMainWindow>
 #include "radarserver.h"
 #include "radarsiggen.h"
-
+#include "simdisplay.h"
+#include "interceptradar.h"
+#include <iostream>
+#include <QStandardItemModel>
+#include <QtCharts>
 QT_BEGIN_NAMESPACE
 namespace Ui { class MainWindow; }
 QT_END_NAMESPACE
@@ -22,7 +26,27 @@ public:
     MainWindow(QWidget *parent = nullptr);
     ~MainWindow();
 
+private slots:
+    void on_pushButton_42_clicked();
+
+    void on_comboBox_radarType_currentIndexChanged(const QString &arg1);
+    void on_pushButton_5_clicked();
+    void on_CreateInterceptRadarButton_clicked();
+
+
 private:
     Ui::MainWindow *ui;
+    SimDisplay *simDisplay;
+    interceptRadar *interceptRadarList[100];
+    int interceptRadarNum = 0;
+    QChartView * MyChartView;   // 画布对象
+    QChart MyChart;             // 图表对象
+    QLineSeries MyLineSeries;   // 展示在图表对象上面的线对象
+    QVector<QPointF> MyPointf;  // 绘制线对象所需要的数据
+    QValueAxis MyAxisX;         // X轴
+    QValueAxis MyAxisY;         // Y轴
+    QStandardItemModel *tableview;
+    int rows;
+
 };
 #endif // MAINWINDOW_H

+ 1123 - 5
mainwindow.ui

@@ -6,17 +6,1135 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>800</width>
-    <height>600</height>
+    <width>1410</width>
+    <height>929</height>
    </rect>
   </property>
   <property name="windowTitle">
    <string>MainWindow</string>
   </property>
-  <widget class="QWidget" name="centralwidget"/>
-  <widget class="QMenuBar" name="menubar"/>
-  <widget class="QStatusBar" name="statusbar"/>
+  <widget class="QWidget" name="centralWidget">
+   <widget class="QTabWidget" name="tabWidget">
+    <property name="geometry">
+     <rect>
+      <x>-10</x>
+      <y>10</y>
+      <width>1391</width>
+      <height>861</height>
+     </rect>
+    </property>
+    <property name="currentIndex">
+     <number>0</number>
+    </property>
+    <widget class="QWidget" name="tab_22">
+     <attribute name="title">
+      <string>蓝方模型</string>
+     </attribute>
+     <widget class="Line" name="line_69">
+      <property name="geometry">
+       <rect>
+        <x>40</x>
+        <y>40</y>
+        <width>20</width>
+        <height>251</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_73">
+      <property name="geometry">
+       <rect>
+        <x>50</x>
+        <y>70</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_74">
+      <property name="geometry">
+       <rect>
+        <x>50</x>
+        <y>40</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_52">
+      <property name="geometry">
+       <rect>
+        <x>120</x>
+        <y>50</y>
+        <width>91</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>预警卫星模型</string>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_17">
+      <property name="geometry">
+       <rect>
+        <x>170</x>
+        <y>250</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>清空</string>
+      </property>
+     </widget>
+     <widget class="QComboBox" name="comboBox_14">
+      <property name="geometry">
+       <rect>
+        <x>160</x>
+        <y>130</y>
+        <width>87</width>
+        <height>22</height>
+       </rect>
+      </property>
+      <item>
+       <property name="text">
+        <string>卫星1</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>卫星2</string>
+       </property>
+      </item>
+     </widget>
+     <widget class="QPushButton" name="pushButton_18">
+      <property name="geometry">
+       <rect>
+        <x>60</x>
+        <y>250</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>创建</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_75">
+      <property name="geometry">
+       <rect>
+        <x>270</x>
+        <y>40</y>
+        <width>20</width>
+        <height>251</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_153">
+      <property name="geometry">
+       <rect>
+        <x>70</x>
+        <y>130</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>卫星类型:</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_76">
+      <property name="geometry">
+       <rect>
+        <x>50</x>
+        <y>290</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_154">
+      <property name="geometry">
+       <rect>
+        <x>60</x>
+        <y>160</y>
+        <width>101</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>轨迹文件路径: </string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_87">
+      <property name="geometry">
+       <rect>
+        <x>60</x>
+        <y>200</y>
+        <width>171</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_19">
+      <property name="geometry">
+       <rect>
+        <x>240</x>
+        <y>200</y>
+        <width>31</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string/>
+      </property>
+     </widget>
+     <widget class="QTableView" name="tableView_5">
+      <property name="geometry">
+       <rect>
+        <x>30</x>
+        <y>410</y>
+        <width>256</width>
+        <height>281</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_155">
+      <property name="geometry">
+       <rect>
+        <x>100</x>
+        <y>360</y>
+        <width>121</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>已创建的预警卫星</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_156">
+      <property name="geometry">
+       <rect>
+        <x>70</x>
+        <y>90</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>卫星编号:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_88">
+      <property name="geometry">
+       <rect>
+        <x>150</x>
+        <y>90</y>
+        <width>113</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="Line" name="line_77">
+      <property name="geometry">
+       <rect>
+        <x>370</x>
+        <y>30</y>
+        <width>20</width>
+        <height>711</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_20">
+      <property name="geometry">
+       <rect>
+        <x>630</x>
+        <y>700</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>清空</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_78">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>20</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_157">
+      <property name="geometry">
+       <rect>
+        <x>500</x>
+        <y>40</y>
+        <width>171</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>中远程雷达末端拦截模型</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_158">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>80</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>雷达编号:</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_79">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>730</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="CreateInterceptRadarButton">
+      <property name="geometry">
+       <rect>
+        <x>470</x>
+        <y>700</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>创建</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_80">
+      <property name="geometry">
+       <rect>
+        <x>780</x>
+        <y>30</y>
+        <width>20</width>
+        <height>711</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_81">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>60</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_interceptRadarId">
+      <property name="geometry">
+       <rect>
+        <x>542</x>
+        <y>80</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_159">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>250</y>
+        <width>101</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>载波频率/Hz:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_fc">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>250</y>
+        <width>111</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_160">
+      <property name="geometry">
+       <rect>
+        <x>398</x>
+        <y>290</y>
+        <width>131</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>脉内调制带宽/Hz:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_BW">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>290</y>
+        <width>111</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_161">
+      <property name="geometry">
+       <rect>
+        <x>398</x>
+        <y>500</y>
+        <width>101</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>单边阵元数量:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_92">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>500</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_162">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>370</y>
+        <width>101</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>脉冲宽度/s:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_T">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>370</y>
+        <width>91</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_163">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>330</y>
+        <width>121</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>脉冲重复周期/s:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_PRF">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>330</y>
+        <width>91</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_164">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>170</y>
+        <width>91</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>辐射源类型:</string>
+      </property>
+     </widget>
+     <widget class="QComboBox" name="comboBox_radarType">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>170</y>
+        <width>111</width>
+        <height>22</height>
+       </rect>
+      </property>
+      <item>
+       <property name="text">
+        <string>模型1</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>模型2</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>模型3</string>
+       </property>
+      </item>
+     </widget>
+     <widget class="QLabel" name="label_165">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>210</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>信号类型:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_95">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>540</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_166">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>540</y>
+        <width>121</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>阵元间距/m:</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_168">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>580</y>
+        <width>121</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>天线增益/dB:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_97">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>580</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_169">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>620</y>
+        <width>151</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>发动机功率/W:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_98">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>620</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_99">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>660</y>
+        <width>161</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_170">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>660</y>
+        <width>151</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>工作频率/Hz:</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_172">
+      <property name="geometry">
+       <rect>
+        <x>1000</x>
+        <y>40</y>
+        <width>241</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>已创建的中远程雷达末端拦截模型</string>
+      </property>
+     </widget>
+     <widget class="QTableView" name="tableView_6">
+      <property name="geometry">
+       <rect>
+        <x>865</x>
+        <y>80</y>
+        <width>501</width>
+        <height>281</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="Line" name="line_82">
+      <property name="geometry">
+       <rect>
+        <x>990</x>
+        <y>730</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_83">
+      <property name="geometry">
+       <rect>
+        <x>980</x>
+        <y>480</y>
+        <width>20</width>
+        <height>251</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_23">
+      <property name="geometry">
+       <rect>
+        <x>1000</x>
+        <y>690</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>创建</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_173">
+      <property name="geometry">
+       <rect>
+        <x>1010</x>
+        <y>570</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>x坐标:</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_84">
+      <property name="geometry">
+       <rect>
+        <x>990</x>
+        <y>510</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_174">
+      <property name="geometry">
+       <rect>
+        <x>1060</x>
+        <y>490</y>
+        <width>91</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>指挥控制中心</string>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_24">
+      <property name="geometry">
+       <rect>
+        <x>1110</x>
+        <y>690</y>
+        <width>93</width>
+        <height>28</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>清空</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_101">
+      <property name="geometry">
+       <rect>
+        <x>1090</x>
+        <y>570</y>
+        <width>113</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="Line" name="line_85">
+      <property name="geometry">
+       <rect>
+        <x>990</x>
+        <y>480</y>
+        <width>231</width>
+        <height>3</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_86">
+      <property name="geometry">
+       <rect>
+        <x>1210</x>
+        <y>480</y>
+        <width>20</width>
+        <height>251</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Vertical</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_175">
+      <property name="geometry">
+       <rect>
+        <x>1070</x>
+        <y>540</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>中心位置</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_176">
+      <property name="geometry">
+       <rect>
+        <x>1010</x>
+        <y>610</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>y坐标:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_102">
+      <property name="geometry">
+       <rect>
+        <x>1090</x>
+        <y>610</y>
+        <width>113</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_177">
+      <property name="geometry">
+       <rect>
+        <x>1010</x>
+        <y>650</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>z坐标:</string>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_103">
+      <property name="geometry">
+       <rect>
+        <x>1090</x>
+        <y>650</y>
+        <width>113</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="Line" name="line_101">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>110</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="Line" name="line_102">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>150</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_171">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>130</y>
+        <width>171</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>信号参数设置</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_231">
+      <property name="geometry">
+       <rect>
+        <x>650</x>
+        <y>250</y>
+        <width>121</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>范围:(5e8~2e9)</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_232">
+      <property name="geometry">
+       <rect>
+        <x>650</x>
+        <y>290</y>
+        <width>121</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>范围:(1e6~1e8)</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_233">
+      <property name="geometry">
+       <rect>
+        <x>630</x>
+        <y>330</y>
+        <width>141</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>范围:(3e-6~5e-2)</string>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_234">
+      <property name="geometry">
+       <rect>
+        <x>630</x>
+        <y>370</y>
+        <width>141</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>范围:(1e-7~1e-3)</string>
+      </property>
+     </widget>
+     <widget class="QComboBox" name="comboBox_27">
+      <property name="geometry">
+       <rect>
+        <x>540</x>
+        <y>460</y>
+        <width>161</width>
+        <height>22</height>
+       </rect>
+      </property>
+      <item>
+       <property name="text">
+        <string>方阵</string>
+       </property>
+      </item>
+      <item>
+       <property name="text">
+        <string>线阵</string>
+       </property>
+      </item>
+     </widget>
+     <widget class="QLabel" name="label_167">
+      <property name="geometry">
+       <rect>
+        <x>400</x>
+        <y>460</y>
+        <width>72</width>
+        <height>15</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>阵列类型:</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_103">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>400</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_235">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>420</y>
+        <width>171</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>发射机参数设置</string>
+      </property>
+     </widget>
+     <widget class="Line" name="line_104">
+      <property name="geometry">
+       <rect>
+        <x>380</x>
+        <y>440</y>
+        <width>411</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+     </widget>
+     <widget class="QLineEdit" name="lineEdit_sigType">
+      <property name="geometry">
+       <rect>
+        <x>530</x>
+        <y>210</y>
+        <width>111</width>
+        <height>21</height>
+       </rect>
+      </property>
+     </widget>
+    </widget>
+    <widget class="QWidget" name="tab_4">
+     <attribute name="title">
+      <string>雷达信号模拟生成</string>
+     </attribute>
+     <widget class="QLabel" name="label_236">
+      <property name="geometry">
+       <rect>
+        <x>205</x>
+        <y>60</y>
+        <width>241</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>已创建的中远程雷达末端拦截模型</string>
+      </property>
+     </widget>
+     <widget class="QTableView" name="tableView_11">
+      <property name="geometry">
+       <rect>
+        <x>70</x>
+        <y>100</y>
+        <width>501</width>
+        <height>281</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_237">
+      <property name="geometry">
+       <rect>
+        <x>110</x>
+        <y>440</y>
+        <width>221</width>
+        <height>16</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>中远程雷达末端拦截模型编号:</string>
+      </property>
+     </widget>
+     <widget class="QComboBox" name="comboBox_28">
+      <property name="geometry">
+       <rect>
+        <x>350</x>
+        <y>440</y>
+        <width>141</width>
+        <height>22</height>
+       </rect>
+      </property>
+     </widget>
+     <widget class="QLabel" name="label_243">
+      <property name="geometry">
+       <rect>
+        <x>940</x>
+        <y>60</y>
+        <width>111</width>
+        <height>20</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>辐射源信号预览</string>
+      </property>
+     </widget>
+     <widget class="QPushButton" name="pushButton_5">
+      <property name="geometry">
+       <rect>
+        <x>210</x>
+        <y>530</y>
+        <width>201</width>
+        <height>61</height>
+       </rect>
+      </property>
+      <property name="text">
+       <string>雷达信号生成</string>
+      </property>
+     </widget>
+     <widget class="QChartView" name="SimShow" native="true">
+      <property name="geometry">
+       <rect>
+        <x>630</x>
+        <y>100</y>
+        <width>721</width>
+        <height>531</height>
+       </rect>
+      </property>
+     </widget>
+    </widget>
+   </widget>
+  </widget>
+  <widget class="QMenuBar" name="menuBar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>1410</width>
+     <height>26</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QToolBar" name="mainToolBar">
+   <attribute name="toolBarArea">
+    <enum>TopToolBarArea</enum>
+   </attribute>
+   <attribute name="toolBarBreak">
+    <bool>false</bool>
+   </attribute>
+  </widget>
+  <widget class="QStatusBar" name="statusBar"/>
  </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <customwidgets>
+  <customwidget>
+   <class>QChartView</class>
+   <extends>QWidget</extends>
+   <header>qchartview.h</header>
+   <container>1</container>
+  </customwidget>
+ </customwidgets>
  <resources/>
  <connections/>
 </ui>

+ 16 - 0
simdisplay.cpp

@@ -0,0 +1,16 @@
+#include "simdisplay.h"
+#include "ui_simdisplay.h"
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+SimDisplay::SimDisplay(QWidget *parent) :
+    QDialog(parent),
+     ui(new Ui::SimDisplay)
+{
+    ui->setupUi(this);
+    this->setParent(parent);
+}
+
+
+SimDisplay::~SimDisplay(){
+    delete ui;
+}

+ 19 - 0
simdisplay.h

@@ -0,0 +1,19 @@
+#ifndef SIMDISPLAY_H
+#define SIMDISPLAY_H
+#include <QDialog>
+
+namespace Ui {
+class SimDisplay;
+}
+class SimDisplay : public QDialog
+{
+    Q_OBJECT
+public:
+    explicit SimDisplay(QWidget *parent = 0);
+    ~SimDisplay();
+
+private:
+Ui::SimDisplay *ui;
+};
+
+#endif // SIMDISPLAY_H

+ 68 - 0
simdisplay.ui

@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>SimDisplay</class>
+ <widget class="QDialog" name="SimDisplay">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>1120</width>
+    <height>755</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>态势展示</string>
+  </property>
+  <widget class="QGraphicsView" name="graphicsView">
+   <property name="geometry">
+    <rect>
+     <x>20</x>
+     <y>21</y>
+     <width>1071</width>
+     <height>651</height>
+    </rect>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton">
+   <property name="geometry">
+    <rect>
+     <x>130</x>
+     <y>687</y>
+     <width>141</width>
+     <height>41</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>启动</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_2">
+   <property name="geometry">
+    <rect>
+     <x>480</x>
+     <y>690</y>
+     <width>141</width>
+     <height>41</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>暂停</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton_3">
+   <property name="geometry">
+    <rect>
+     <x>840</x>
+     <y>690</y>
+     <width>141</width>
+     <height>41</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string>终止</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>