FieldMgrClr.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 /*: public Object*/
  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. Size^ a_ResolutionSize,int a_scanfieldsize, int a_FieldStartMode
  22. );
  23. // reset
  24. bool Reset(CDomainClr^ a_pMeasureArea,
  25. Size^ a_ResolutionSize, int a_FieldStartMode,
  26. int a_ScanFieldSize,
  27. List<Point>^ a_listMeasuredFieldCentrePoints);
  28. // calculate estimate total fields
  29. long CalculateTotalFields(CDomainClr^ a_poMeasureArea, double a_dScanFieldSizeX, Size^ a_sizeResolution);
  30. // field centre points list
  31. List<Point>^ GetFieldCentrePoints();
  32. bool GetFieldRectByIndex(int a_nIndex, System::Drawing::Rectangle^ % a_rctField);
  33. int GetTotalFields();
  34. // unmeasured field centre points list
  35. SortedList<int,Point>^ GetUnmeasuredFieldCentrePoints(List<Point>^ a_listMeasuredFieldCentrePoints);
  36. // measure area
  37. CDomainClr^ GetMeasureArea();
  38. bool SetMeasureArea(CDomainClr^ a_pMeasureArea);
  39. int GetOverlap();
  40. bool SetOverlap(int a_overlap);
  41. protected:
  42. CFieldMgrPtr* m_LpFieldMgr;
  43. };
  44. }