IViewWindow.cs 1.3 KB

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using HalconDotNet;
  6. namespace ViewWindow.Model
  7. {
  8. interface IViewWindow
  9. {
  10. void displayImage(HObject img);
  11. void resetWindowImage();
  12. void zoomWindowImage();
  13. void moveWindowImage();
  14. void noneWindowImage();
  15. void genRect1(double row1, double col1, double row2, double col2, ref List<ROI> rois);
  16. void genRect2(double row, double col, double phi, double length1, double length2, ref List<ROI> rois);
  17. void genCircle(double row, double col, double radius, ref List<ROI> rois);
  18. void genCircularArc(double row, double col, double radius,double startPhi, double extentPhi,string direct, ref List<ROI> rois);
  19. void genLine(double beginRow, double beginCol, double endRow, double endCol, ref List<ROI> rois);
  20. List<double> smallestActiveROI(out string name,out int index);
  21. ROI smallestActiveROI(out List<double> data, out int index);
  22. void selectROI(int index);
  23. void selectROI(List<ROI> rois, int index);
  24. void displayROI(List<ROI> rois);
  25. void removeActiveROI(ref List<ROI> rois);
  26. void saveROI(List<ROI> rois, string fileNmae);
  27. void loadROI(string fileName, out List<ROI> rois);
  28. }
  29. }