FieldMgrClr.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #pragma once
  2. #include "DomainClr.h"
  3. #include "OTSImgScanPrmClr.h"
  4. #include "FieldMgr.h"
  5. #include <DomainClr.h>
  6. namespace OTSCLRINTERFACE {
  7. using namespace System;
  8. using namespace System::Drawing;
  9. using namespace System::Collections::Generic;
  10. using namespace OTSIMGPROC;
  11. public ref class CFieldMgrClr
  12. {
  13. public:
  14. CFieldMgrClr(int scanFieldSzie, Size a_ResolutionSize); // constructor
  15. CFieldMgrClr(CFieldMgrPtr);
  16. !CFieldMgrClr();
  17. ~CFieldMgrClr();
  18. CFieldMgrPtr GetCFiledMgrPtr();
  19. // initialization
  20. bool Init(CDomainClr^ a_pMeasureArea,
  21. int a_FieldStartMode
  22. );
  23. int GetEffectiveFieldWidth();
  24. int GetEffectiveFieldHeight();
  25. // field centre points list
  26. List<Point>^ GetFieldCentrePoints();
  27. //bool GetFieldRectByIndex(int a_nIndex, System::Drawing::Rectangle^ % a_rctField);
  28. int GetTotalFields();
  29. // unmeasured field centre points list
  30. SortedList<int,Point>^ GetUnmeasuredFieldCentrePoints(List<Point>^ a_listMeasuredFieldCentrePoints);
  31. bool IsThisPointInMeasureArea(Point^ p);
  32. // measure area
  33. CDomainClr^ GetMeasureArea();
  34. bool SetMeasureArea(CDomainClr^ a_pMeasureArea);
  35. int GetOverlap();
  36. bool SetOverlap(int a_overlap);
  37. bool FindNeighborField( List<Point>^ a_flds, Point centerField, Point% a_neighbor, int a_direction);
  38. protected:
  39. CFieldMgrPtr* m_LpFieldMgr;
  40. };
  41. }