standard_line.dart 577 B

1234567891011121314151617181920212223
  1. import 'package:fis_common/event/event_type.dart';
  2. import 'pixel_space.dart';
  3. abstract class IStandardLine {
  4. /// 参考线物理长度(cm)
  5. double get physicsLength;
  6. set physicsLength(double val);
  7. /// 参考线像素长度
  8. double get pixelLength;
  9. set pixelLength(double val);
  10. /// 当前像素距离尺
  11. PixelSpacing get currentPixelSpacing;
  12. set currentPixelSpacing(PixelSpacing val);
  13. /// 单位像素物理长度(cm)
  14. double get perPixelPhysicalLength;
  15. /// 像素距离尺变化事件
  16. late final FEventHandler<PixelSpacing?> pixelSpacingChanged;
  17. }