measure_data_controller.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // ignore_for_file: non_constant_identifier_names
  2. import 'dart:typed_data';
  3. import 'package:fis_common/event/event_type.dart';
  4. import 'package:fis_jsonrpc/rpc.dart';
  5. import 'package:fis_measure/interfaces/process/items/item_metas.dart';
  6. import 'package:fis_measure/interfaces/process/workspace/application.dart';
  7. import 'package:fis_measure/process/workspace/measure_data_helper.dart';
  8. import 'package:fis_measure/process/workspace/rpc_bridge.dart';
  9. import 'package:fis_measure/values/colors.dart';
  10. import 'package:fis_measure/view/measure/measure_config/measure_configuation_page.dart';
  11. import 'package:fis_measure/view/measure/measure_config/widgets/measure_configuration_style.dart';
  12. import 'package:fis_measure/view/measure/measure_config/widgets/measure_configuration_unit.dart';
  13. import 'package:flutter/material.dart';
  14. import 'package:get/get.dart';
  15. import 'package:vid/us/vid_us_mode.dart';
  16. class MeasureInfoData {
  17. final String? patientCode;
  18. final String? remedicalCode;
  19. final String? recordCode;
  20. final String? remedicalAISelectedInfoCode;
  21. MeasureInfoData({
  22. this.patientCode,
  23. this.recordCode,
  24. this.remedicalCode,
  25. this.remedicalAISelectedInfoCode,
  26. });
  27. }
  28. /// 图片信息数据
  29. abstract class IMeasureDataController {
  30. late FEventHandler<String> aiResultsInfoChanged;
  31. late FEventHandler<String> measureApplicationVersionChanged;
  32. late FEventHandler<String> measureLanguageChanged;
  33. late FEventHandler<DiagnosisConclusionEnum> diagnosisConclusionChanged;
  34. late FEventHandler<List<RemedicalInfoDTO>> remedicalListResultChanged;
  35. late FEventHandler<String> itemCurrentImageChanged;
  36. late FEventHandler<List<ItemMeta>> itemMetaListChanged;
  37. late FEventHandler<List<String>> getMeasureApplicationChanged;
  38. late FEventHandler<MeasureInfoData> measureInfoDataChanged;
  39. late FEventHandler<MeasureSystemSettingDTO> measureSystemSettingChanged;
  40. late FEventHandler<List<VidUsMode>> applicationModesChanged;
  41. late FEventHandler<List<ItemMeta>> curItemMetaListChanged;
  42. late FEventHandler<List<String>> annotationListChanged;
  43. late FEventHandler<bool> showItemTransStateChanged;
  44. /// 切换至另一个病人的图像集
  45. late FEventHandler<Map<String, String>> curMeasureDataChanged;
  46. /// 该图像下面的应用
  47. List<ItemMeta> get itemMetaList;
  48. set itemMetaList(List<ItemMeta> value);
  49. /// 测量的翻译
  50. String get measureLanguage;
  51. set measureLanguage(String value);
  52. /// 测量应用的版本号
  53. String get measureApplicationVersion;
  54. set measureApplicationVersion(String value);
  55. ///当前选择图像
  56. String get itemCurrentImage;
  57. set itemCurrentImage(String value);
  58. /// 测量图片的ai结果
  59. String get aiResults;
  60. set aiResults(String value);
  61. /// 良恶性 用来判断是否存在ai结果
  62. DiagnosisConclusionEnum get diagnosisConclusion;
  63. set diagnosisConclusion(DiagnosisConclusionEnum value);
  64. /// 测量图片集
  65. List<RemedicalInfoDTO> get remedicalList;
  66. set remedicalList(List<RemedicalInfoDTO> value);
  67. /// 测量方式集
  68. List<String> get getMeasureApplicationList;
  69. set getMeasureApplicationList(List<String> value);
  70. /// 当前载入的测量项列表
  71. List<ItemMeta> get curItemMetaList;
  72. set curItemMetaList(List<ItemMeta> value);
  73. /// 当前所有的注释项
  74. List<String> get annotationList;
  75. set annotationList(List<String> value);
  76. /// 所有的预置的注释项
  77. PresetCommentItemResultDTO get allPresetAnnotationList;
  78. set allPresetAnnotationList(PresetCommentItemResultDTO value);
  79. /// 当前模式下预置的注释项
  80. List<String> get currPresetAnnotationList;
  81. set currPresetAnnotationList(List<String> value);
  82. /// 注释List
  83. List<CommentItemDTO> get measureCommentItemResult;
  84. set measureCommentItemResult(List<CommentItemDTO> value);
  85. /// 测量图片数据
  86. MeasureInfoData get measureInfoData;
  87. set measureInfoData(MeasureInfoData value);
  88. /// 测量样式数据
  89. MeasureSystemSettingDTO get measureSystemSetting;
  90. set measureSystemSetting(MeasureSystemSettingDTO value);
  91. /// 测量当前图片所有模式
  92. List<VidUsMode> get applicationModes;
  93. set applicationModes(List<VidUsMode> value);
  94. /// 测量图片当前模式下所有测量项数据
  95. List<MeasureModeDTO> get availableModes;
  96. set availableModes(List<MeasureModeDTO> value);
  97. List<ItemMetaGroup> get itemMetaListGroup;
  98. set itemMetaListGroup(List<ItemMetaGroup> itemMetaListGroup);
  99. String get currentMode;
  100. set currentMode(String value);
  101. /// 通用画笔
  102. Paint get paintPen;
  103. set paintPen(Paint value);
  104. /// 卡尺线画笔
  105. Paint get paintLinePan;
  106. set paintLinePan(Paint value);
  107. /// 标记点画笔
  108. Paint get paintPointPan;
  109. set paintPointPan(Paint value);
  110. // int index = 0;
  111. // int totalCount = 0;
  112. /// 设置画笔颜色
  113. ///
  114. /// [color] 颜色
  115. void setPenColor(Color color);
  116. }
  117. class MeasureDataController implements IMeasureDataController {
  118. String _aiResults = '';
  119. String _itemCurrentImage = '';
  120. String _measureLanguage = '';
  121. String _currentMode = '';
  122. String _measureApplicationVersion = '';
  123. List<RemedicalInfoDTO> _remedicalList = [];
  124. List<ItemMeta> _itemMetaList = [];
  125. List<String> _getMeasureApplicationList = [];
  126. DiagnosisConclusionEnum _diagnosisConclusion =
  127. DiagnosisConclusionEnum.NotRequired;
  128. MeasureInfoData _measureInfoData = MeasureInfoData();
  129. MeasureSystemSettingDTO _measureSystemSetting = MeasureSystemSettingDTO();
  130. List<VidUsMode> _applicationModes = [];
  131. List<MeasureModeDTO> _availableModes = [];
  132. List<ItemMeta> _curItemMetaList = [];
  133. List<String> _annotationList = [];
  134. List<String> _presetAnnotationList = [];
  135. PresetCommentItemResultDTO _allPresetAnnotationList =
  136. PresetCommentItemResultDTO();
  137. List<CommentItemDTO> _measureCommentItemResult = [];
  138. List<ItemMetaGroup> _itemMetaListGroup = [];
  139. ///index和totalCount是用于手机端切换图像展示的
  140. // int index = 0;
  141. // int totalCount = 0;
  142. /// 新增的
  143. List<ItemMetaDTO> itemMetaListConfig = [];
  144. Paint _paintPen = Paint()
  145. ..color = MeasureColors.Primary
  146. ..isAntiAlias = true
  147. ..strokeWidth = 2
  148. ..style = PaintingStyle.stroke;
  149. Paint _paintLinePan = Paint()
  150. ..color = MeasureColors.Primary
  151. ..isAntiAlias = true
  152. ..strokeWidth = 2
  153. ..style = PaintingStyle.stroke;
  154. Paint _paintPointPan = Paint()
  155. ..color = MeasureColors.Primary
  156. ..isAntiAlias = true
  157. ..strokeWidth = 2
  158. ..style = PaintingStyle.stroke;
  159. @override
  160. var remedicalListResultChanged = FEventHandler<List<RemedicalInfoDTO>>();
  161. @override
  162. var aiResultsInfoChanged = FEventHandler<String>();
  163. @override
  164. var measureLanguageChanged = FEventHandler<String>();
  165. @override
  166. var measureApplicationVersionChanged = FEventHandler<String>();
  167. @override
  168. var diagnosisConclusionChanged = FEventHandler<DiagnosisConclusionEnum>();
  169. @override
  170. var itemMetaListChanged = FEventHandler<List<ItemMeta>>();
  171. @override
  172. var showItemTransStateChanged = FEventHandler<bool>();
  173. @override
  174. var itemCurrentImageChanged = FEventHandler<String>();
  175. @override
  176. var getMeasureApplicationChanged = FEventHandler<List<String>>();
  177. @override
  178. var measureInfoDataChanged = FEventHandler<MeasureInfoData>();
  179. @override
  180. var measureSystemSettingChanged = FEventHandler<MeasureSystemSettingDTO>();
  181. @override
  182. var applicationModesChanged = FEventHandler<List<VidUsMode>>();
  183. @override
  184. var curItemMetaListChanged = FEventHandler<List<ItemMeta>>();
  185. @override
  186. var annotationListChanged = FEventHandler<List<String>>();
  187. @override
  188. var curMeasureDataChanged = FEventHandler<Map<String, String>>();
  189. @override
  190. List<ItemMeta> get curItemMetaList => _curItemMetaList;
  191. @override
  192. set curItemMetaList(List<ItemMeta> value) {
  193. if (value != _curItemMetaList) {
  194. _curItemMetaList = value;
  195. _onCurItemMetaListChanged();
  196. }
  197. }
  198. @override
  199. List<String> get annotationList => _annotationList;
  200. @override
  201. set annotationList(List<String> value) {
  202. if (value != _annotationList) {
  203. _annotationList = value;
  204. _onGetCommentsListChanged();
  205. }
  206. }
  207. @override
  208. List<String> get currPresetAnnotationList => _presetAnnotationList;
  209. @override
  210. set currPresetAnnotationList(List<String> value) {
  211. if (value != _presetAnnotationList) {
  212. _presetAnnotationList = value;
  213. }
  214. }
  215. @override
  216. PresetCommentItemResultDTO get allPresetAnnotationList =>
  217. _allPresetAnnotationList;
  218. @override
  219. set allPresetAnnotationList(PresetCommentItemResultDTO value) {
  220. if (value != _allPresetAnnotationList) {
  221. _allPresetAnnotationList = value;
  222. }
  223. }
  224. @override
  225. List<CommentItemDTO> get measureCommentItemResult =>
  226. _measureCommentItemResult;
  227. @override
  228. set measureCommentItemResult(List<CommentItemDTO> value) {
  229. if (value != _measureCommentItemResult) {
  230. _measureCommentItemResult = value;
  231. }
  232. }
  233. @override
  234. List<MeasureModeDTO> get availableModes => _availableModes;
  235. @override
  236. set availableModes(List<MeasureModeDTO> value) {
  237. if (value != _availableModes) {
  238. _availableModes = value;
  239. }
  240. }
  241. @override
  242. MeasureSystemSettingDTO get measureSystemSetting => _measureSystemSetting;
  243. @override
  244. set measureSystemSetting(MeasureSystemSettingDTO value) {
  245. if (value != _measureSystemSetting) {
  246. _measureSystemSetting = value;
  247. setGuideline(value.showCursorLine);
  248. _onMeasureSystemSettingChanged();
  249. }
  250. }
  251. /// 错误单位校验
  252. void checkErrorUnitConfig() {
  253. if (!UnitConfigPage.C_DISTANCE_UNIT_LIST
  254. .contains(_measureSystemSetting.distanceUnit)) {
  255. _measureSystemSetting.distanceUnit = Unit.cm;
  256. }
  257. if (!UnitConfigPage.C_AREA_UNIT_LIST
  258. .contains(_measureSystemSetting.areaUnit)) {
  259. _measureSystemSetting.areaUnit = Unit.cm2;
  260. }
  261. if (!UnitConfigPage.C_VELOCITY_UNIT_LIST
  262. .contains(_measureSystemSetting.velocityUnit)) {
  263. _measureSystemSetting.velocityUnit = Unit.cms;
  264. }
  265. if (!UnitConfigPage.C_TIME_UNIT_LIST
  266. .contains(_measureSystemSetting.timeUnit)) {
  267. _measureSystemSetting.timeUnit = Unit.msec;
  268. }
  269. }
  270. /// 错误样式设置校验
  271. void checkErrorStyleConfig() {
  272. if (!StyleConfigPage.C_MEASURE_CURSOR_SIZE
  273. .contains(_measureSystemSetting.cursorSize)) {
  274. _measureSystemSetting.cursorSize =
  275. StyleConfigPage.C_MEASURE_CURSOR_SIZE[0];
  276. }
  277. if (!StyleConfigPage.C_MEASURE_MARK_SIZE
  278. .contains(_measureSystemSetting.shapeCursorSize)) {
  279. _measureSystemSetting.shapeCursorSize =
  280. StyleConfigPage.C_MEASURE_MARK_SIZE[0];
  281. }
  282. if (!StyleConfigPage.C_RESULT_TEXT_SIZE
  283. .contains(_measureSystemSetting.fontSize)) {
  284. _measureSystemSetting.fontSize = StyleConfigPage.C_RESULT_TEXT_SIZE[0];
  285. }
  286. if (!StyleConfigPage.C_ANNOTATION_TEXT_SIZE
  287. .contains(_measureSystemSetting.annotationFontSize)) {
  288. _measureSystemSetting.annotationFontSize =
  289. StyleConfigPage.C_ANNOTATION_TEXT_SIZE[0];
  290. }
  291. if (!isContainsValue(StyleConfigPage.C_DISTANCE_THRESHOLD,
  292. _measureSystemSetting.autoSnapDistance)) {
  293. _measureSystemSetting.autoSnapDistance =
  294. StyleConfigPage.C_DISTANCE_THRESHOLD[0].value.toString();
  295. }
  296. if (!isContainsValue(StyleConfigPage.C_DISTANCE_THRESHOLD,
  297. _measureSystemSetting.minCursorDistance)) {
  298. _measureSystemSetting.minCursorDistance =
  299. StyleConfigPage.C_DISTANCE_THRESHOLD[0].value.toString();
  300. }
  301. }
  302. void checkCursorColor(Color defaultColor) {
  303. Color cursorColor = defaultColor;
  304. final value = _measureSystemSetting.measureColor;
  305. if (value != null) {
  306. if (value.startsWith("#")) {
  307. Color colorFromHex = Color(int.parse(value.substring(1), radix: 16));
  308. cursorColor = colorFromHex;
  309. }
  310. }
  311. setPenColor(cursorColor);
  312. }
  313. bool isContainsValue(List<MeasureSelectModel> list, String? value) {
  314. if (value == null) return false;
  315. for (var item in list) {
  316. if (item.value.toString() == value) {
  317. return true;
  318. }
  319. }
  320. return false;
  321. }
  322. /// 设置是否隐藏卡尺线
  323. void setGuideline(bool isShow) {
  324. if (isShow) {
  325. _paintLinePan.color = MeasureColors.Primary;
  326. } else {
  327. _paintLinePan.color = MeasureColors.Hide;
  328. }
  329. }
  330. // 获取自动闭合卡尺线的检测阈值
  331. double getAutoSnapDistance() {
  332. if (measureSystemSetting.autoSnapDistance == null) return 0.0;
  333. try {
  334. return double.parse(measureSystemSetting.autoSnapDistance!);
  335. } catch (e) {
  336. return 0.0;
  337. }
  338. }
  339. double getMinCursorDistance() {
  340. if (measureSystemSetting.minCursorDistance == null) return 0.0;
  341. try {
  342. return double.parse(measureSystemSetting.minCursorDistance!);
  343. } catch (e) {
  344. return 0.0;
  345. }
  346. }
  347. @override
  348. List<VidUsMode> get applicationModes => _applicationModes;
  349. @override
  350. set applicationModes(List<VidUsMode> value) {
  351. if (value != _applicationModes) {
  352. _applicationModes = value;
  353. _onApplicationModesChanged();
  354. }
  355. }
  356. @override
  357. String get currentMode => _currentMode;
  358. @override
  359. set currentMode(String value) {
  360. if (value != _currentMode) {
  361. _currentMode = value;
  362. }
  363. }
  364. @override
  365. List<String> get getMeasureApplicationList => _getMeasureApplicationList;
  366. @override
  367. set getMeasureApplicationList(List<String> value) {
  368. if (value != _getMeasureApplicationList) {
  369. _getMeasureApplicationList = value;
  370. _onGetMeasureApplicationChanged();
  371. }
  372. }
  373. @override
  374. List<ItemMeta> get itemMetaList => _itemMetaList;
  375. @override
  376. set itemMetaList(List<ItemMeta> value) {
  377. if (value != _itemMetaList) {
  378. _itemMetaList = value;
  379. _onItemMetaListChanged();
  380. }
  381. }
  382. @override
  383. List<ItemMetaGroup> get itemMetaListGroup => _itemMetaListGroup;
  384. @override
  385. set itemMetaListGroup(List<ItemMetaGroup> value) {
  386. if (value != _itemMetaListGroup) {
  387. _itemMetaListGroup = value;
  388. // _onItemMetaListChanged();
  389. }
  390. }
  391. @override
  392. String get itemCurrentImage => _itemCurrentImage;
  393. @override
  394. set itemCurrentImage(String value) {
  395. if (value != _itemCurrentImage) {
  396. _itemCurrentImage = value;
  397. _onItemCurrentImageChanged();
  398. }
  399. }
  400. @override
  401. String get aiResults => _aiResults;
  402. @override
  403. set aiResults(String value) {
  404. if (value != _aiResults) {
  405. _aiResults = value;
  406. _onAIResultsChanged();
  407. }
  408. }
  409. @override
  410. String get measureLanguage => _measureLanguage;
  411. @override
  412. set measureLanguage(String value) {
  413. if (value != _measureLanguage) {
  414. _measureLanguage = value;
  415. _onMeasureLanguageChanged();
  416. }
  417. }
  418. @override
  419. String get measureApplicationVersion => _measureApplicationVersion;
  420. @override
  421. set measureApplicationVersion(String value) {
  422. if (value != _measureApplicationVersion) {
  423. _measureApplicationVersion = value;
  424. _onMeasureApplicationVersion();
  425. }
  426. }
  427. @override
  428. DiagnosisConclusionEnum get diagnosisConclusion => _diagnosisConclusion;
  429. @override
  430. set diagnosisConclusion(DiagnosisConclusionEnum value) {
  431. if (value != _diagnosisConclusion) {
  432. _diagnosisConclusion = value;
  433. _onDiagnosisConclusionChanged();
  434. }
  435. }
  436. @override
  437. MeasureInfoData get measureInfoData => _measureInfoData;
  438. @override
  439. set measureInfoData(MeasureInfoData value) {
  440. _measureInfoData = value;
  441. _onMeasureInfoDataChanged();
  442. }
  443. @override
  444. List<RemedicalInfoDTO> get remedicalList => _remedicalList;
  445. @override
  446. set remedicalList(List<RemedicalInfoDTO> value) {
  447. if (value != _remedicalList) {
  448. _remedicalList = value;
  449. _onRemedicalListChanged();
  450. }
  451. }
  452. @override
  453. Paint get paintPen => _paintPen;
  454. @override
  455. set paintPen(Paint value) {
  456. if (value != _paintPen) {
  457. _paintPen = value;
  458. }
  459. }
  460. @override
  461. Paint get paintLinePan => _paintLinePan;
  462. @override
  463. set paintLinePan(Paint value) {
  464. if (value != _paintLinePan) {
  465. _paintLinePan = value;
  466. }
  467. }
  468. @override
  469. Paint get paintPointPan => _paintPointPan;
  470. @override
  471. set paintPointPan(Paint value) {
  472. if (value != _paintPointPan) {
  473. _paintPointPan = value;
  474. }
  475. }
  476. MeasureDataController(
  477. this.saveImage,
  478. ) {
  479. _init();
  480. }
  481. _init() async {}
  482. ///参数1:imageBytes 图片字节, 参数2: patientCode 病人code,参数3:recordCode 检查code, 参数4:remedicalCode 检查code,参数5: measuredData 测量值
  483. Future<bool?> Function(
  484. Uint8List, String, String, String, String, VidImageSource) saveImage;
  485. /// 添加注释项
  486. Future<bool?> addAnnotation(
  487. IApplication application, String annotationName) async {
  488. final result = await MeasureDataHelper.saveUserDefinedCommentsAsync(
  489. application.applicationName,
  490. application.categoryName,
  491. [CommentItemDTO(text: annotationName)],
  492. null,
  493. null);
  494. return result;
  495. }
  496. /// 删除注释项
  497. Future<bool?> deleteAnnotation(
  498. IApplication application, String annotationName) async {
  499. final result = await MeasureDataHelper.saveUserDefinedCommentsAsync(
  500. application.applicationName,
  501. application.categoryName,
  502. null,
  503. [CommentItemDTO(text: annotationName)],
  504. null);
  505. return result;
  506. }
  507. /// 更新注释项
  508. Future<bool?> updateAnnotation(IApplication application,
  509. String oldAnnotationName, String newAnnotationName) async {
  510. final result = await MeasureDataHelper.saveUserDefinedCommentsAsync(
  511. application.applicationName,
  512. application.categoryName,
  513. null,
  514. null,
  515. [
  516. UpdateCommentItemDTO(
  517. oldText: oldAnnotationName, newText: newAnnotationName)
  518. ],
  519. );
  520. return result;
  521. }
  522. /// 选择Vid图像Url
  523. String chooseImageUrl(TerminalImageDTO dto) {
  524. // 按Server推荐选择CDN/源站
  525. final useOrigin =
  526. dto.recommendedDownloadMode == RecommendedDownloadModeEnum.Origin &&
  527. dto.originImageUrl != null &&
  528. dto.originImageUrl!.isNotEmpty;
  529. final imageUrl = useOrigin ? dto.originImageUrl! : dto.imageUrl!;
  530. return imageUrl;
  531. }
  532. @override
  533. void setPenColor(Color color) {
  534. paintPen.color = color;
  535. paintLinePan.color = color;
  536. paintPointPan.color = color;
  537. MeasureColors.ActivePrimary = color;
  538. if (Get.isRegistered<IApplication>()) {
  539. Get.find<IApplication>().updateRenderReady.emit(this, null);
  540. }
  541. }
  542. void _onRemedicalListChanged() {
  543. remedicalListResultChanged.emit(this, remedicalList);
  544. }
  545. void _onAIResultsChanged() {
  546. aiResultsInfoChanged.emit(this, aiResults);
  547. }
  548. void _onItemCurrentImageChanged() {
  549. itemCurrentImageChanged.emit(this, itemCurrentImage);
  550. }
  551. void _onItemMetaListChanged() {
  552. itemMetaListChanged.emit(this, itemMetaList);
  553. }
  554. void _onGetMeasureApplicationChanged() {
  555. getMeasureApplicationChanged.emit(this, getMeasureApplicationList);
  556. }
  557. void _onDiagnosisConclusionChanged() {
  558. diagnosisConclusionChanged.emit(this, diagnosisConclusion);
  559. }
  560. void _onMeasureLanguageChanged() {
  561. measureLanguageChanged.emit(this, measureLanguage);
  562. }
  563. void _onMeasureApplicationVersion() {
  564. measureApplicationVersionChanged.emit(this, measureApplicationVersion);
  565. }
  566. void _onMeasureInfoDataChanged() {
  567. measureInfoDataChanged.emit(this, measureInfoData);
  568. }
  569. void _onMeasureSystemSettingChanged() {
  570. measureSystemSettingChanged.emit(this, measureSystemSetting);
  571. }
  572. void _onApplicationModesChanged() {
  573. applicationModesChanged.emit(this, applicationModes);
  574. }
  575. void _onCurItemMetaListChanged() {
  576. curItemMetaListChanged.emit(this, curItemMetaList);
  577. }
  578. void _onGetCommentsListChanged() {
  579. annotationListChanged.emit(this, annotationList);
  580. }
  581. }