|  | @@ -234,9 +234,9 @@ void handlePool::judgeLoaddata(boostJsonObject *object, QVTKRenderer *render_)
 | 
											
												
													
														|  |              render_->RemoveAllActors();
 |  |              render_->RemoveAllActors();
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -    //QString m_filePath = object->filePath;//测试路径
 |  | 
 | 
											
												
													
														|  | 
 |  | +    QString m_filePath = QString::fromStdString(object->filePath);//测试路径
 | 
											
												
													
														|  |      //QString m_filePath = "F:\\czm\\vtkfile\\tfg.ugrid";
 |  |      //QString m_filePath = "F:\\czm\\vtkfile\\tfg.ugrid";
 | 
											
												
													
														|  | -    QString m_filePath = "C:\\Users\\Administrator\\Desktop\\VTK\\f.vtk";
 |  | 
 | 
											
												
													
														|  | 
 |  | +    //QString m_filePath = "C:\\Users\\Administrator\\Desktop\\VTK\\f.vtk";
 | 
											
												
													
														|  |      QFileInfo fileinfo_(m_filePath);
 |  |      QFileInfo fileinfo_(m_filePath);
 | 
											
												
													
														|  |      if(!fileinfo_.isFile()){
 |  |      if(!fileinfo_.isFile()){
 | 
											
												
													
														|  |          cout<<"file path is Empty!"<<endl;
 |  |          cout<<"file path is Empty!"<<endl;
 | 
											
										
											
												
													
														|  | @@ -312,7 +312,7 @@ bool handlePool::resultImport(boostJsonObject *object_, QVTKRenderer *renderer_)
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      //object_->filePath = "C:\\Users\\Administrator\\Desktop\\Postprocess_Binary";//测试路径
 |  |      //object_->filePath = "C:\\Users\\Administrator\\Desktop\\Postprocess_Binary";//测试路径
 | 
											
												
													
														|  | -    object_->filePath = "C:\\Users\\Administrator\\Desktop\\VTK";//测试路径
 |  | 
 | 
											
												
													
														|  | 
 |  | +    //object_->filePath = "C:\\Users\\Administrator\\Desktop\\VTK";//测试路径
 | 
											
												
													
														|  |      QDir dir(QString::fromStdString(object_->filePath));
 |  |      QDir dir(QString::fromStdString(object_->filePath));
 | 
											
												
													
														|  |      if(!dir.exists()){
 |  |      if(!dir.exists()){
 | 
											
												
													
														|  |          return false;
 |  |          return false;
 | 
											
										
											
												
													
														|  | @@ -594,8 +594,8 @@ bool handlePool::result_streamdisplay(boostJsonObject *object_, QVTKRenderer *re
 | 
											
												
													
														|  |          map_streamdisplay.insert(object_->proId,streamdis);
 |  |          map_streamdisplay.insert(object_->proId,streamdis);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      if(type == "create"){
 |  |      if(type == "create"){
 | 
											
												
													
														|  | -        if(((!(object_->sm_struct->u).empty()) && (!(object_->sm_struct->v).empty() )&& (!(object_->sm_struct->w).empty() ))&& ((object_->sm_struct->u)!=
 |  | 
 | 
											
												
													
														|  | -                                                                                                                                (object_->sm_struct->v))&&((object_->sm_struct->u)!= (object_->sm_struct->w))&&((object_->sm_struct->w)!=(object_->sm_struct->v))){
 |  | 
 | 
											
												
													
														|  | 
 |  | +        if(((!(object_->sm_struct->u).empty()) && (!(object_->sm_struct->v).empty() )&& (!(object_->sm_struct->w).empty() ))&& ((object_->sm_struct->u)!=(object_->sm_struct->v))&&((object_->sm_struct->u)!= (object_->sm_struct->w))&&((object_->sm_struct->w)!=(object_->sm_struct->v)))
 | 
											
												
													
														|  | 
 |  | +        {
 | 
											
												
													
														|  |              resultmm->streamW_->value_u = object_->sm_struct->u;
 |  |              resultmm->streamW_->value_u = object_->sm_struct->u;
 | 
											
												
													
														|  |              resultmm->streamW_->value_v = object_->sm_struct->v;
 |  |              resultmm->streamW_->value_v = object_->sm_struct->v;
 | 
											
												
													
														|  |              resultmm->streamW_->value_w = object_->sm_struct->w;
 |  |              resultmm->streamW_->value_w = object_->sm_struct->w;
 | 
											
										
											
												
													
														|  | @@ -603,17 +603,20 @@ bool handlePool::result_streamdisplay(boostJsonObject *object_, QVTKRenderer *re
 | 
											
												
													
														|  |              string v = resultmm->streamW_->GetVData();
 |  |              string v = resultmm->streamW_->GetVData();
 | 
											
												
													
														|  |              string w = resultmm->streamW_->GetWData();
 |  |              string w = resultmm->streamW_->GetWData();
 | 
											
												
													
														|  |              resultmm->CreatVectorSource(u,v,w);
 |  |              resultmm->CreatVectorSource(u,v,w);
 | 
											
												
													
														|  | -            if(resultmm->currAddDataSource_){
 |  | 
 | 
											
												
													
														|  | 
 |  | +            if((resultmm->fileType=="plt")&&(resultmm->currAddDataSource_))
 | 
											
												
													
														|  | 
 |  | +            {
 | 
											
												
													
														|  | 
 |  | +                emit sendImg_handlePoolToSendstate(object_->ToJson("create_stream",buildResultImport_msg("create_stream",resultmm,object_)));//发送流线数据
 | 
											
												
													
														|  | 
 |  | +            }else if(resultmm->fileType == "VTK"){
 | 
											
												
													
														|  |                  emit sendImg_handlePoolToSendstate(object_->ToJson("create_stream",buildResultImport_msg("create_stream",resultmm,object_)));//发送流线数据
 |  |                  emit sendImg_handlePoolToSendstate(object_->ToJson("create_stream",buildResultImport_msg("create_stream",resultmm,object_)));//发送流线数据
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |          }else{
 |  |          }else{
 | 
											
												
													
														|  |              //抛出异常
 |  |              //抛出异常
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  | -        //}else if(type == "select"){
 |  | 
 | 
											
												
													
														|  | 
 |  | +        send_picture(object_,render_);
 | 
											
												
													
														|  | 
 |  | +    }else if(type == "select"){
 | 
											
												
													
														|  |          resultmm->SetStreamSelectState(true);
 |  |          resultmm->SetStreamSelectState(true);
 | 
											
												
													
														|  | -        //}else if(type == "deletelast"){
 |  | 
 | 
											
												
													
														|  | -        //resultmm->SetStreamSelectState(false);
 |  | 
 | 
											
												
													
														|  | 
 |  | +    }else if(type == "deletelast"){
 | 
											
												
													
														|  | 
 |  | +        resultmm->SetStreamSelectState(false);
 | 
											
												
													
														|  |      }else if(type == "deleteall"){
 |  |      }else if(type == "deleteall"){
 | 
											
												
													
														|  |          resultmm->DeleteAllStream();
 |  |          resultmm->DeleteAllStream();
 | 
											
												
													
														|  |      }else if(type == "apply"){
 |  |      }else if(type == "apply"){
 | 
											
										
											
												
													
														|  | @@ -640,9 +643,9 @@ QMap<QString,string> handlePool::buildResultImport_msg(QString type,ResultManage
 | 
											
												
													
														|  |          string msg;
 |  |          string msg;
 | 
											
												
													
														|  |          for(map<string,int>::iterator it=map_.begin();it!=map_.end();it++){
 |  |          for(map<string,int>::iterator it=map_.begin();it!=map_.end();it++){
 | 
											
												
													
														|  |              if(cmanager->fileType!="VTK"){
 |  |              if(cmanager->fileType!="VTK"){
 | 
											
												
													
														|  | -               msg+=removeSpaces(it->first);
 |  | 
 | 
											
												
													
														|  | 
 |  | +                msg+=removeSpaces(it->first);
 | 
											
												
													
														|  |              }else{
 |  |              }else{
 | 
											
												
													
														|  | -               msg+=it->first;
 |  | 
 | 
											
												
													
														|  | 
 |  | +                msg+=it->first;
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              msg+="#";
 |  |              msg+="#";
 | 
											
												
													
														|  |              msg+=to_string(it->second);//0-point scalar 1-cell scalar
 |  |              msg+=to_string(it->second);//0-point scalar 1-cell scalar
 | 
											
										
											
												
													
														|  | @@ -718,11 +721,11 @@ QMap<QString,string> handlePool::buildResultImport_msg(QString type,ResultManage
 | 
											
												
													
														|  |          string msg;
 |  |          string msg;
 | 
											
												
													
														|  |          StreamDisplayWidget* smdW = cmanager->streamW_;
 |  |          StreamDisplayWidget* smdW = cmanager->streamW_;
 | 
											
												
													
														|  |          for(int i = 0; i<smdW->dataU.size();i++){
 |  |          for(int i = 0; i<smdW->dataU.size();i++){
 | 
											
												
													
														|  | -        if(cmanager->fileType!="VTK"){
 |  | 
 | 
											
												
													
														|  | -            msg+=removeSpaces(smdW->dataU[i]);
 |  | 
 | 
											
												
													
														|  | -        }else{
 |  | 
 | 
											
												
													
														|  | -            msg+=smdW->dataU[i];
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | 
 |  | +            if(cmanager->fileType!="VTK"){
 | 
											
												
													
														|  | 
 |  | +                msg+=removeSpaces(smdW->dataU[i]);
 | 
											
												
													
														|  | 
 |  | +            }else{
 | 
											
												
													
														|  | 
 |  | +                msg+=smdW->dataU[i];
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |              msg+=",";
 |  |              msg+=",";
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          msg = msg.erase(msg.size()-1);
 |  |          msg = msg.erase(msg.size()-1);
 |