visual_area.dart 924 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import 'package:fis_common/event/event_type.dart';
  2. import 'package:fis_measure/interfaces/date_types/rect_region.dart';
  3. import 'package:fis_measure/interfaces/process/visuals/visual.dart';
  4. import 'package:flutter/foundation.dart';
  5. import 'package:vid/us/vid_us_visual_area_type.dart';
  6. import '../modes/mode.dart';
  7. import '../viewports/viewport.dart';
  8. /// 图像幅区域
  9. abstract class IVisualArea {
  10. /// 所在幅
  11. IVisual get visual;
  12. /// 视口
  13. IViewPort? get viewport;
  14. @protected
  15. set viewport(IViewPort? value);
  16. /// 区域类型
  17. VidUsVisualAreaType get visualAreaType;
  18. /// 布局区域
  19. RectRegion? get layoutRegion;
  20. set layoutRegion(RectRegion? value);
  21. /// 整体显示区域
  22. RectRegion get displayRegion;
  23. /// 模式
  24. IMode get mode;
  25. /// 是否活动
  26. bool get isActive;
  27. set isActive(bool value);
  28. /// 是否活动变化事件
  29. late final FEventHandler<bool> isActiveChanged;
  30. }