Selaa lähdekoodia

0629 修改vtk文件动画

caizm 2 vuotta sitten
vanhempi
säilyke
d71b5f6c66

+ 0 - 5
CAE_Solution/src/Rabbitmq/rabbitClient/rabbitclient.cpp

@@ -106,10 +106,7 @@ int rabbitClient::recvMsg()
             }
         }
         disconnect_index = 0;
-        cout<<"msg string =          "<<str<<endl;
-        printf("------------recvClient recvMsg-------------------\n");
         if(str!=""){
-
             str.erase(0,1);//删除首尾双引号
             str.erase(str.end()-1);
             std::string t;
@@ -120,7 +117,6 @@ int rabbitClient::recvMsg()
                     t+=str[var];
                 }
             }
-            cout<<"t(delete \\) =      "<<t<<endl;
             t.erase(0,1);//暂时移除首尾{}
             t.erase(t.end()-1);
             //-------------去除param数组里面的多余转义字符-------------------//
@@ -204,7 +200,6 @@ int rabbitClient::recvMsg()
                 }
 
             }
-            cout<<"change:  "<<t<<endl;
             emit sendmsg_recvclientToRecvstate(t);//信号*/
             //0509
             //emit sendmsg_recvclientToRecvstate(tmp);

+ 1 - 1
CAE_Solution/src/threadPool_and_statemachine/dealWith/boostjsonobject.cpp

@@ -73,7 +73,7 @@ boostJsonObject::~boostJsonObject()
  */
 void boostJsonObject::FromJson(std::string msg)
 {
-    cout<<"msg change over = "<<msg<<endl;
+    cout<<msg<<endl;
     stringstream msgs(msg);
     boost::property_tree::ptree root;
     boost::property_tree::read_json(msgs,root);//boost 方法

+ 4 - 0
CAE_Solution/src/threadPool_and_statemachine/dealWith/handlepool.cpp

@@ -728,6 +728,10 @@ bool handlePool::result_contourinimationdisplay(boostJsonObject *object_, QVTKRe
     }
     for(int i =0;i<object_->ci_struct->filenames.size();i++){
         animation_render(object_->ci_struct->filenames[i],object_->ci_struct->steps[i],render_,object_);
+        if(i!=object_->ci_struct->filenames.size()-1){
+            render_->HideAllActors();
+            render_->RemoveAllActors();
+        }
     }
     delete object_;
     object_ = NULL;

+ 0 - 6
CAE_Solution/src/threadPool_and_statemachine/stateMachine/statemachine.cpp

@@ -48,8 +48,6 @@ stateMachine::~stateMachine()
  */
 void stateMachine::init(QString tmp){
     if(tmp =="recvClient"){
-
-        printf("------------recvThread started-------------------\n");
         recvThread = new QThread();
         recvClient = new rabbitClient("recvClient");
         connect(recvClient,SIGNAL(sendmsg_recvclientToRecvstate(std::string)),this,SLOT(getmsg_recvclientToRecvstate(std::string)));
@@ -66,8 +64,6 @@ void stateMachine::init(QString tmp){
         });
         recvThread->start();
     }else{
-
-        printf("------------sendThread started-------------------\n");
         sendThread = new QThread();
         sendClient = new rabbitClient("sendClient");
         connect(this,SIGNAL(sendImg_sendstateToSendclient(std::string)),sendClient,SLOT(sendMsg(std::string)));
@@ -92,7 +88,6 @@ void stateMachine::init(QString tmp){
 void stateMachine::getmsg_recvclientToRecvstate(std::string Recvmsg)
 {
     mutex.lock();
-    printf("---------------state Machine slot recv(QString)-----------------------\n");
     recvMsgQueue.push_back(QString::fromStdString(Recvmsg));
     emit sendmsg_recvstateTohandlePool(Recvmsg);//信号
     recvMsgQueue.clear();
@@ -133,7 +128,6 @@ void stateMachine::restart_send_client_slot()
 void stateMachine::getImg_handlePoolToSendstate(std::string img)
 {
     mutex.lock();
-    printf("------------------statemachine getimgfile----------------------\n");
     emit sendImg_sendstateToSendclient(img);//信号
     qDebug()<<"--------------------"<<QString::fromStdString(img);
     mutex.unlock();