Ver código fonte

0630 修改云图scalarbar位置

caizm 2 anos atrás
pai
commit
0e268108f1

+ 4 - 2
CAE_Solution/src/VTK/visualization_VTK/vtkVISUnContour.cpp

@@ -841,8 +841,10 @@ void vtkVISUnContour::CreateScalarBar()
         barActor->SetLookupTable((vtkScalarsToColors*)contourLookupTable_);
 
     vtkScalarBarRepresentation* rep = vtkScalarBarRepresentation::New();
-        rep->SetPosition(0.8, 0.1);
-        rep->SetPosition2(0.08, 0.8);
+        //rep->SetPosition(0.8, 0.1);
+        //rep->SetPosition2(0.08, 0.8);
+        rep->SetPosition(0.88, 0.1);
+        rep->SetPosition2(0.08, 0.88);
         //rep->SetMaximumSize(10, 50);
         rep->ProportionalResizeOff();
         rep->SetScalarBarActor(barActor);

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

@@ -727,6 +727,15 @@ bool handlePool::result_contourinimationdisplay(boostJsonObject *object_, QVTKRe
         }
     }
 
+//    object_->ci_struct->filenames.clear();测试
+//    object_->ci_struct->filenames.resize(1);
+//    object_->ci_struct->filenames[0] = "dynamicResponse-transient1.vtk";
+//    object_->ci_struct->steps.clear();
+//    object_->ci_struct->steps.resize(1);
+//    object_->ci_struct->steps[0] = 1;
+//    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){