|
@@ -1,7 +1,7 @@
|
|
|
import 'package:fis_common/logger/logger.dart';
|
|
|
import 'package:fis_jsonrpc/rpc.dart';
|
|
|
import 'package:fis_measure/interfaces/date_types/point.dart';
|
|
|
-import 'package:fis_measure/interfaces/process/items/item_metas.dart';
|
|
|
+import 'package:fis_measure/interfaces/process/items/terms.dart';
|
|
|
import 'package:fis_measure/process/calcuators/urm_calcuators/urm_shell_measure.dart';
|
|
|
import 'package:fis_measure/process/primitives/urm_measure/urm_shell_measure.dart';
|
|
|
|
|
@@ -34,14 +34,13 @@ class URMShellDensityMeasureCal extends URMShellMeasureCal {
|
|
|
}
|
|
|
final feature = ref.feature!;
|
|
|
if (ref.meta.outputs.isNotEmpty) {
|
|
|
- final first = ref.meta.outputs.first;
|
|
|
- if (first == null) return;
|
|
|
-
|
|
|
- first.unit = VidUsUnit.percent;
|
|
|
- feature.updateStringValue(
|
|
|
- ItemOutputMeta("Placeholder", "Placeholder", VidUsUnit.None),
|
|
|
- "",
|
|
|
- VidUsUnit.None);
|
|
|
+ for (var output in ref.meta.outputs) {
|
|
|
+ if (output.name == MeasureTerms.URMDenROI) {
|
|
|
+ output.unit = VidUsUnit.percent;
|
|
|
+ feature.updateFloatValue(
|
|
|
+ output, outresult.resultData * 100, output.unit);
|
|
|
+ }
|
|
|
+ }
|
|
|
if (feature is! ShellImageFeature) return;
|
|
|
if (outresult.outerExterPoints != null) {
|
|
|
List<DPoint> outerExterPoints = [];
|
|
@@ -50,8 +49,6 @@ class URMShellDensityMeasureCal extends URMShellMeasureCal {
|
|
|
});
|
|
|
feature.outerExterPoints = outerExterPoints;
|
|
|
}
|
|
|
-
|
|
|
- feature.updateFloatValue(first, outresult.resultData * 100, first.unit);
|
|
|
}
|
|
|
} catch (e) {
|
|
|
logger.e('URM Measure error: $e');
|