|
@@ -7,7 +7,9 @@ import 'package:fis_measure/interfaces/process/items/item_metas.dart';
|
|
|
import 'package:fis_measure/interfaces/process/workspace/application.dart';
|
|
|
import 'package:fis_measure/process/workspace/measure_handler.dart';
|
|
|
import 'package:fis_measure/utils/prompt_box.dart';
|
|
|
+import 'package:fis_measure/values/colors.dart';
|
|
|
import 'package:fis_measure/view/measure/measure_config/measure_configuation_page.dart';
|
|
|
+import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
import 'package:vid/us/vid_us_mode.dart';
|
|
|
|
|
@@ -114,6 +116,14 @@ abstract class IMeasureDataController {
|
|
|
|
|
|
String get currentMode;
|
|
|
set currentMode(String value);
|
|
|
+
|
|
|
+ /// 卡尺线画笔
|
|
|
+ Paint get paintLinePan;
|
|
|
+ set paintLinePan(Paint value);
|
|
|
+
|
|
|
+ /// 标记点画笔
|
|
|
+ Paint get paintPointPan;
|
|
|
+ set paintPointPan(Paint value);
|
|
|
}
|
|
|
|
|
|
class MeasureDataController implements IMeasureDataController {
|
|
@@ -138,6 +148,16 @@ class MeasureDataController implements IMeasureDataController {
|
|
|
PresetCommentItemResultDTO();
|
|
|
List<CommentItemDTO> _measureCommentItemResult = [];
|
|
|
List<ItemMetaGroup> _itemMetaListGroup = [];
|
|
|
+ Paint _paintLinePan = Paint()
|
|
|
+ ..color = MeasureColors.Primary
|
|
|
+ ..isAntiAlias = true
|
|
|
+ ..strokeWidth = 2
|
|
|
+ ..style = PaintingStyle.stroke;
|
|
|
+ Paint _paintPointPan = Paint()
|
|
|
+ ..color = MeasureColors.Primary
|
|
|
+ ..isAntiAlias = true
|
|
|
+ ..strokeWidth = 2
|
|
|
+ ..style = PaintingStyle.stroke;
|
|
|
@override
|
|
|
var remedicalListResultChanged = FEventHandler<List<RemedicalInfoDTO>>();
|
|
|
|
|
@@ -242,10 +262,20 @@ class MeasureDataController implements IMeasureDataController {
|
|
|
set measureSystemSetting(MeasureSystemSettingDTO value) {
|
|
|
if (value != _measureSystemSetting) {
|
|
|
_measureSystemSetting = value;
|
|
|
+ setGuideline(value.showCursorLine);
|
|
|
_onMeasureSystemSettingChanged();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /// 设置是否隐藏卡尺线
|
|
|
+ void setGuideline(bool isShow) {
|
|
|
+ if (isShow) {
|
|
|
+ _paintLinePan.color = MeasureColors.Primary;
|
|
|
+ } else {
|
|
|
+ _paintLinePan.color = MeasureColors.Hide;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@override
|
|
|
List<VidUsMode> get applicationModes => _applicationModes;
|
|
|
@override
|
|
@@ -365,6 +395,24 @@ class MeasureDataController implements IMeasureDataController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @override
|
|
|
+ Paint get paintLinePan => _paintLinePan;
|
|
|
+ @override
|
|
|
+ set paintLinePan(Paint value) {
|
|
|
+ if (value != _paintLinePan) {
|
|
|
+ _paintLinePan = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
+ Paint get paintPointPan => _paintPointPan;
|
|
|
+ @override
|
|
|
+ set paintPointPan(Paint value) {
|
|
|
+ if (value != _paintPointPan) {
|
|
|
+ _paintPointPan = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
MeasureDataController(
|
|
|
this.getRemedicalList,
|
|
|
this.getImageInfo,
|