Explorar o código

0630 修改vtk动画等距视角以及隐藏scalarbar

caizm %!s(int64=2) %!d(string=hai) anos
pai
achega
d769fe154e

+ 2 - 2
CAE_Solution/conf/conf_recv.txt

@@ -4,6 +4,6 @@ userName:admin
 password:admin
 
 channel_id:1
-queue_name:BLOCKcaein
+queue_name:BLOCKcaeint
 exchange_name:BLOCKMQ-EXCHANGE
-keys_name:caein
+keys_name:caeint

+ 2 - 2
CAE_Solution/conf/conf_send.txt

@@ -4,6 +4,6 @@ userName:admin
 password:admin
 
 channel_id:1
-queue_name:BLOCKcaeout
+queue_name:BLOCKcaeoutt
 exchange_name:BLOCKMQ-EXCHANGE
-keys_name:caeout
+keys_name:caeoutt

+ 1 - 0
CAE_Solution/src/VTK/Manager/resultvtkmanager.cpp

@@ -180,6 +180,7 @@ void ResultVTKManager::DisplayMeshByIndex(int index)
             uncontour->ModifyDisplayScalarRange(range_[0],range_[1]);
             //uncontour->ShowOffScalarBar();
             uncontour->ShowOn();
+            unmesh->ShowOff();
             if(scalarBarState)       // to do
             {
                 scalarBarState != uncontour->UpdataScalarBar();

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

@@ -726,6 +726,34 @@ bool handlePool::result_contourinimationdisplay(boostJsonObject *object_, QVTKRe
             render_->RemoveAllActors();
         }
     }
+
+    object_->ci_struct->filenames.clear();
+    object_->ci_struct->filenames.resize(10);
+    object_->ci_struct->filenames[0] = "dynamicResponse-transient101.vtk";
+    object_->ci_struct->filenames[1] = "dynamicResponse-transient102.vtk";
+    object_->ci_struct->filenames[2] = "dynamicResponse-transient103.vtk";
+    object_->ci_struct->filenames[3] = "dynamicResponse-transient104.vtk";
+    object_->ci_struct->filenames[4] = "dynamicResponse-transient105.vtk";
+    object_->ci_struct->filenames[5] = "dynamicResponse-transient106.vtk";
+    object_->ci_struct->filenames[6] = "dynamicResponse-transient107.vtk";
+    object_->ci_struct->filenames[7] = "dynamicResponse-transient108.vtk";
+    object_->ci_struct->filenames[8] = "dynamicResponse-transient109.vtk";
+    object_->ci_struct->filenames[9] = "dynamicResponse-transient110.vtk";
+    object_->ci_struct->steps.clear();
+    object_->ci_struct->steps.resize(10);
+    object_->ci_struct->steps[0] = 101;
+    object_->ci_struct->steps[1] = 102;
+    object_->ci_struct->steps[2] = 103;
+    object_->ci_struct->steps[3] = 104;
+    object_->ci_struct->steps[4] = 105;
+    object_->ci_struct->steps[5] = 106;
+    object_->ci_struct->steps[6] = 107;
+    object_->ci_struct->steps[7] = 108;
+    object_->ci_struct->steps[8] = 109;
+    object_->ci_struct->steps[9] = 110;
+    object_->filePath = "F:\\czm\\vtkfile";
+    object_->cd_struct->scalarName = "Displacement-magnitude";
+
     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){
@@ -1260,6 +1288,7 @@ void handlePool::animation_render(string filename,int step,QVTKRenderer* rendere
             renderer_->ZoomToExtents();
         }
     }
+    renderer_->camera_->TransformToIsometric();
     if(object_->ci_struct->displaytype=="ContourDisplay"){
         ContourDisplayW *contourdw = new ContourDisplayW();//云图窗口参数初始化
         rsManager->SetCotourWidget(contourdw);