|  | @@ -23,6 +23,11 @@ handlePool::handlePool(QObject *parent) : QObject(parent)
 | 
											
												
													
														|  |  handlePool::handlePool(QTabWidget *w)
 |  |  handlePool::handlePool(QTabWidget *w)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |      this->w=w;
 |  |      this->w=w;
 | 
											
												
													
														|  | 
 |  | +    map_contourdisplay.clear();
 | 
											
												
													
														|  | 
 |  | +    map_linedisplay.clear();
 | 
											
												
													
														|  | 
 |  | +    map_manager.clear();
 | 
											
												
													
														|  | 
 |  | +    map_render.clear();
 | 
											
												
													
														|  | 
 |  | +    map_resultmanager.clear();
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -36,6 +41,9 @@ handlePool::~handlePool()
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |      qDeleteAll(map_render);
 |  |      qDeleteAll(map_render);
 | 
											
												
													
														|  |      qDeleteAll(map_manager);
 |  |      qDeleteAll(map_manager);
 | 
											
												
													
														|  | 
 |  | +    qDeleteAll(map_contourdisplay);
 | 
											
												
													
														|  | 
 |  | +    qDeleteAll(map_linedisplay);
 | 
											
												
													
														|  | 
 |  | +    qDeleteAll(map_resultmanager);
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  /*
 |  |  /*
 | 
											
										
											
												
													
														|  | @@ -136,15 +144,20 @@ void handlePool::operateRender(vtkJsonObject* object,QVTKRenderer* render_)
 | 
											
												
													
														|  |          if(!map_render.contains(object->proId))return;
 |  |          if(!map_render.contains(object->proId))return;
 | 
											
												
													
														|  |          render_ = map_render.value(object->proId);
 |  |          render_ = map_render.value(object->proId);
 | 
											
												
													
														|  |          render_->camera_->AlignToMinusAxisZ();
 |  |          render_->camera_->AlignToMinusAxisZ();
 | 
											
												
													
														|  | -    }else if(object->action == "RelocateToCenter"){
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }else if(object->action == "TransformToIsometric"){
 | 
											
												
													
														|  |          if(!map_render.contains(object->proId))return;
 |  |          if(!map_render.contains(object->proId))return;
 | 
											
												
													
														|  |          render_ = map_render.value(object->proId);
 |  |          render_ = map_render.value(object->proId);
 | 
											
												
													
														|  | -        render_->camera_->RelocateToCenter();
 |  | 
 | 
											
												
													
														|  | 
 |  | +        render_->camera_->TransformToIsometric();
 | 
											
												
													
														|  |      }else if(object->action == "ResultImport"){//导入结果
 |  |      }else if(object->action == "ResultImport"){//导入结果
 | 
											
												
													
														|  |          if(!resultImport(object,render_))return;
 |  |          if(!resultImport(object,render_))return;
 | 
											
												
													
														|  | -    }else if(object->action == "ContourDisplay"){
 |  | 
 | 
											
												
													
														|  | -        if(!result_contourdisplay(object,render_)){
 |  | 
 | 
											
												
													
														|  | -            cout<<"please import tecplot result!"<<endl;
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }else if(object->action == "ContourDisplay"){//显示云图
 | 
											
												
													
														|  | 
 |  | +        if(!result_contourdisplay(object)){
 | 
											
												
													
														|  | 
 |  | +            cout<<"please import tecplot result first!"<<endl;
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +        return;
 | 
											
												
													
														|  | 
 |  | +    }else if(object->action == "LineDisplay"){//显示等值线图
 | 
											
												
													
														|  | 
 |  | +        if(!result_linedisplay(object)){
 | 
											
												
													
														|  | 
 |  | +            cout<<"please import tecplot result first!"<<endl;
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          return;
 |  |          return;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
										
											
												
													
														|  | @@ -239,15 +252,16 @@ bool handlePool::resultImport(vtkJsonObject *object_, QVTKRenderer *renderer_)
 | 
											
												
													
														|  |   * @ret: bool
 |  |   * @ret: bool
 | 
											
												
													
														|  |   * @birth: created by czm in 20230421
 |  |   * @birth: created by czm in 20230421
 | 
											
												
													
														|  |   */
 |  |   */
 | 
											
												
													
														|  | -bool handlePool::result_contourdisplay(vtkJsonObject *object_, QVTKRenderer *renderer_)
 |  | 
 | 
											
												
													
														|  | 
 |  | +bool handlePool::result_contourdisplay(vtkJsonObject *object_)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |      ContourDisplay* condis = NULL;
 |  |      ContourDisplay* condis = NULL;
 | 
											
												
													
														|  |      if(map_resultmanager.contains(object_->proId)) return false;
 |  |      if(map_resultmanager.contains(object_->proId)) return false;
 | 
											
												
													
														|  |      if(map_contourdisplay.contains(object_->proId)){
 |  |      if(map_contourdisplay.contains(object_->proId)){
 | 
											
												
													
														|  |         condis = map_contourdisplay.value(object_->proId);
 |  |         condis = map_contourdisplay.value(object_->proId);
 | 
											
												
													
														|  | -       //condis->contourdisplay_execute();//需传入参数
 |  | 
 | 
											
												
													
														|  |      }else{
 |  |      }else{
 | 
											
												
													
														|  |          condis = new ContourDisplay(map_resultmanager.value(object_->proId));
 |  |          condis = new ContourDisplay(map_resultmanager.value(object_->proId));
 | 
											
												
													
														|  | 
 |  | +        map_contourdisplay.insert(object_->proId,condis);
 | 
											
												
													
														|  | 
 |  | +        //condis->contourdisplay_execute();//需传入参数
 | 
											
												
													
														|  |          std::string json_= object_->ToJson(condis->buildContourMsg().toStdString());
 |  |          std::string json_= object_->ToJson(condis->buildContourMsg().toStdString());
 | 
											
												
													
														|  |          emit sendImg_handlePoolToSendstate(json_);
 |  |          emit sendImg_handlePoolToSendstate(json_);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
										
											
												
													
														|  | @@ -256,6 +270,30 @@ bool handlePool::result_contourdisplay(vtkJsonObject *object_, QVTKRenderer *ren
 | 
											
												
													
														|  |      return true;
 |  |      return true;
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +/*
 | 
											
												
													
														|  | 
 |  | + * @brief: analysis msg about linedisplay
 | 
											
												
													
														|  | 
 |  | + * @param: object
 | 
											
												
													
														|  | 
 |  | + * @ret: bool
 | 
											
												
													
														|  | 
 |  | + * @birth: created by czm in 20230424
 | 
											
												
													
														|  | 
 |  | + */
 | 
											
												
													
														|  | 
 |  | +bool handlePool::result_linedisplay(vtkJsonObject *object_)
 | 
											
												
													
														|  | 
 |  | +{
 | 
											
												
													
														|  | 
 |  | +    LineDisplay* linedis = NULL;
 | 
											
												
													
														|  | 
 |  | +    if(map_resultmanager.contains(object_->proId))return false;
 | 
											
												
													
														|  | 
 |  | +    if(map_linedisplay.contains(object_->proId)){
 | 
											
												
													
														|  | 
 |  | +        linedis = map_linedisplay.value(object_->proId);
 | 
											
												
													
														|  | 
 |  | +    }else{
 | 
											
												
													
														|  | 
 |  | +        linedis = new LineDisplay(map_resultmanager.value(object_->proId));
 | 
											
												
													
														|  | 
 |  | +        map_linedisplay.insert(object_->proId,linedis);
 | 
											
												
													
														|  | 
 |  | +        //linedis->linedisplay_execute();//需传入参数
 | 
											
												
													
														|  | 
 |  | +        std::string json_ = object_->ToJson(linedis->buildLineMsg().toStdString());
 | 
											
												
													
														|  | 
 |  | +        emit sendImg_handlePoolToSendstate(json_);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +    delete object_;
 | 
											
												
													
														|  | 
 |  | +    object_ = NULL;
 | 
											
												
													
														|  | 
 |  | +    return true;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  /*
 |  |  /*
 | 
											
												
													
														|  |   * @brief: save the tecplot filename into QStringList
 |  |   * @brief: save the tecplot filename into QStringList
 | 
											
												
													
														|  |   * @param: filePath
 |  |   * @param: filePath
 |