1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #pragma once
- #include "DomainClr.h"
- #include "OTSImgScanPrmClr.h"
- #include "FieldMgr.h"
- #include <DomainClr.h>
- namespace OTSCLRINTERFACE {
- using namespace System;
- using namespace System::Drawing;
- using namespace System::Collections::Generic;
-
- using namespace OTSIMGPROC;
- public ref class CFieldMgrClr /*: public Object*/
- {
- public:
- CFieldMgrClr(int scanFieldSzie, Size a_ResolutionSize); // constructor
- CFieldMgrClr(CFieldMgrPtr);
- !CFieldMgrClr();
- ~CFieldMgrClr();
- CFieldMgrPtr GetCFiledMgrPtr();
-
- // initialization
- bool Init(CDomainClr^ a_pMeasureArea,
- Size^ a_ResolutionSize,int a_scanfieldsize, int a_FieldStartMode
- );
- // reset
- bool Reset(CDomainClr^ a_pMeasureArea,
- Size^ a_ResolutionSize, int a_FieldStartMode,
- int a_ScanFieldSize,
- List<Point>^ a_listMeasuredFieldCentrePoints);
- // calculate estimate total fields
- long CalculateTotalFields(CDomainClr^ a_poMeasureArea, double a_dScanFieldSizeX, Size^ a_sizeResolution);
- // field centre points list
- List<Point>^ GetFieldCentrePoints();
- bool GetFieldRectByIndex(int a_nIndex, System::Drawing::Rectangle^ % a_rctField);
- int GetTotalFields();
- // unmeasured field centre points list
- SortedList<int,Point>^ GetUnmeasuredFieldCentrePoints(List<Point>^ a_listMeasuredFieldCentrePoints);
-
- // measure area
- CDomainClr^ GetMeasureArea();
- bool SetMeasureArea(CDomainClr^ a_pMeasureArea);
- int GetOverlap();
- bool SetOverlap(int a_overlap);
- protected:
- CFieldMgrPtr* m_LpFieldMgr;
- };
- }
|