Sfoglia il codice sorgente

fix(measure): 解决测量时绘制延迟问题

gavin.chen 2 anni fa
parent
commit
d9f57c3052

+ 3 - 0
lib/process/primitives/carotid_imt.dart

@@ -38,6 +38,9 @@ class CarotidIMT extends MeasureItem<CarotidIMTFeature> {
       if (args.pointType == PointInfoType.mouseDown) {
         doCalculate();
 
+        feature!.isActive = false;
+        state = ItemStates.finished;
+
         ///TODO 能否可以不加 delay,直接执行(此处是为了 cal 内 ref.feature!.lowerPoints = lowerPoints; 能够执行完成)
         Future.delayed(const Duration(milliseconds: 500), () {
           doFeatureFinish();

+ 0 - 1
lib/process/workspace/measure_3d_view_controller.dart

@@ -193,7 +193,6 @@ class Measure3DViewController implements IMeasure3DViewController {
     contrast = 0;
     notifyShellSetTone();
     onResetTone.emit(this, null);
-    print("触发了reset tone");
   }
 
   ImageAdjustPara curImageAdjustPara =

+ 0 - 1
lib/view/3d_view/carotid_player.dart

@@ -78,7 +78,6 @@ class _CarotidPlayerState extends State<CarotidPlayer> {
     print("更新颈动脉2D");
     final oldImage = image;
     image = await getImage(base64Url);
-    print("size:${image!.width}x${image!.height}");
     oldImage?.dispose();
     setState(() {});
   }