|
@@ -113,19 +113,15 @@ namespace MainWidget
|
|
|
|
|
|
//网格生成
|
|
|
_MeshData = MeshData::MeshData::getInstance();
|
|
|
- _gridRoot= new QTreeWidgetItem(this);
|
|
|
- _gridRoot->setText(0,"网格生成");
|
|
|
- this->addTopLevelItem(_gridRoot);
|
|
|
- _gridRoot->setExpanded(true);
|
|
|
- _meshRoot = new QTreeWidgetItem(_gridRoot, TreeItemType::MeshRoot);
|
|
|
- _meshRoot->setText(0, tr("流体网格"));
|
|
|
- _meshRoot->setIcon(0, QIcon(":/QUI/icon/mesh.png"));
|
|
|
+ _meshRoot = new QTreeWidgetItem(this, TreeItemType::MeshRoot);
|
|
|
+ _meshRoot->setText(0,"流体网格");
|
|
|
+ this->addTopLevelItem(_meshRoot);
|
|
|
+ _meshRoot->setExpanded(true);
|
|
|
+ _meshTempItem = new QTreeWidgetItem(_meshRoot, TreeItemType::CFDmeshTemp);
|
|
|
+ _meshTempItem->setText(0,"单击添加流体网格");
|
|
|
// _setRoot = new QTreeWidgetItem(_gridRoot, TreeItemType::MeshSetRoot);
|
|
|
// _setRoot->setText(0, tr("分组"));
|
|
|
// _setRoot->setIcon(0, QIcon(":/QUI/icon/mesh.png"));
|
|
|
- _IRmeshRoot = new QTreeWidgetItem(_gridRoot, TreeItemType::MeshRoot);
|
|
|
- _IRmeshRoot->setText(0, tr("红外网格"));
|
|
|
- _IRmeshRoot->setIcon(0, QIcon(":/QUI/icon/mesh.png"));
|
|
|
|
|
|
//CFD计算
|
|
|
_cfdItem = new QTreeWidgetItem(this);
|
|
@@ -183,6 +179,14 @@ namespace MainWidget
|
|
|
_cfdResultItem->setText(0,"结果");
|
|
|
_cfdResultItem->setIcon(0,QIcon(":/QUI/icons/pqLineChart16.png"));
|
|
|
|
|
|
+ //红外网格
|
|
|
+ _irMeshRoot = new QTreeWidgetItem(this,TreeItemType::MeshRoot);
|
|
|
+ _irMeshRoot->setText(0,"红外网格");
|
|
|
+ this->addTopLevelItem(_irMeshRoot);
|
|
|
+ _irMeshRoot->setExpanded(true);
|
|
|
+ _irMeshTempItem = new QTreeWidgetItem(_irMeshRoot,TreeItemType::IRmeshTemp);
|
|
|
+ _irMeshTempItem->setText(0,"单击添加红外网格");
|
|
|
+
|
|
|
//IR计算
|
|
|
_irItem = new QTreeWidgetItem(this,TreeItemType::IRRoot);
|
|
|
_irItem->setText(0,"IR计算");
|
|
@@ -209,19 +213,23 @@ namespace MainWidget
|
|
|
_irResultItem = new QTreeWidgetItem(_irItem);
|
|
|
_irResultItem->setText(0,"结果");
|
|
|
_irResultItem->setIcon(0,QIcon(":/QUI/icons/pqLineChart16.png"));
|
|
|
- // _irFusheqiangdu = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irFusheqiangdu->setText(0,"角度分布辐射强度");
|
|
|
- // _irMianji = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irMianji->setText(0,"面积");
|
|
|
- // _irFusheLiangdu = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irFusheLiangdu->setText(0,"辐射亮度效果图");
|
|
|
- // _irSanweiFushe = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irSanweiFushe->setText(0,"三维分布辐射效果");
|
|
|
- // _irGuangpuQiangdu = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irGuangpuQiangdu->setText(0,"光谱强度效果图");
|
|
|
- // _irFusheWendu = new QTreeWidgetItem(_irResultItem);
|
|
|
- // _irFusheWendu->setText(0,"辐射温度图");
|
|
|
- //红外热成像\直角坐标图\极坐标图\
|
|
|
+ _irTouyingMianJi = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irTouyingMianJi->setText(0,"投影面积");
|
|
|
+
|
|
|
+ _irKuanpuDaiGuangPu = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irKuanpuDaiGuangPu->setText(0,"宽谱带光谱");
|
|
|
+
|
|
|
+ _irKuanpuDaiJiFen = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irKuanpuDaiJiFen->setText(0,"宽谱带积分");
|
|
|
+
|
|
|
+ _irWenduChengXiang = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irWenduChengXiang->setText(0,"温度成像图");
|
|
|
+
|
|
|
+ _irLiangduChengXiang = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irLiangduChengXiang->setText(0,"亮度成像图");
|
|
|
+
|
|
|
+ _irBujianGongXian = new QTreeWidgetItem(_irResultItem,TreeItemType::IRtouyingmianji);
|
|
|
+ _irBujianGongXian->setText(0,"部件贡献");
|
|
|
|
|
|
setStyleSheet("QTreeWidget::item{height:20px;}");
|
|
|
}
|
|
@@ -319,6 +327,11 @@ namespace MainWidget
|
|
|
item->setCheckState(0, state);
|
|
|
item->setIcon(0, QIcon(":/QUI/icon/mesh.png"));
|
|
|
}
|
|
|
+ if(_meshRoot->childCount() == 0)
|
|
|
+ {
|
|
|
+ _meshTempItem = new QTreeWidgetItem(_meshRoot, TreeItemType::CFDmeshTemp);
|
|
|
+ _meshTempItem->setText(0,"单击添加流体网格");
|
|
|
+ }
|
|
|
blockSignals(false);
|
|
|
}
|
|
|
|
|
@@ -399,9 +412,6 @@ namespace MainWidget
|
|
|
case GeometryRoot:
|
|
|
emit disPlayProp(nullptr);
|
|
|
break;
|
|
|
- case Datum:
|
|
|
- emit disPlayProp(nullptr);
|
|
|
- break;
|
|
|
case MeshChild:
|
|
|
{
|
|
|
const int index = _meshRoot->indexOfChild(item);
|
|
@@ -446,6 +456,14 @@ namespace MainWidget
|
|
|
case modelTemp:
|
|
|
{
|
|
|
emit importModel();
|
|
|
+ }
|
|
|
+ case CFDmeshTemp:
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ case IRmeshTemp:
|
|
|
+ {
|
|
|
+
|
|
|
}
|
|
|
default:
|
|
|
break;
|
|
@@ -829,8 +847,6 @@ namespace MainWidget
|
|
|
index = _gcroot->indexOfChild(_currentItem);
|
|
|
data = _geoData->getGeoComponentByIndex(index);
|
|
|
break;
|
|
|
- case DatumPlane:
|
|
|
- break;
|
|
|
}
|
|
|
if (!data)
|
|
|
return;
|