PosXrayClr.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #pragma once
  2. #include "PosXray.h"
  3. //#include "PosXrayInfoClr.h"
  4. #include "ElementChemistryClr.h"
  5. namespace OTSCLRINTERFACE {
  6. using namespace System;
  7. using namespace System::Drawing;
  8. using namespace OTSDATA;
  9. public ref class CPosXrayClr
  10. {
  11. public:
  12. CPosXrayClr(); // constructor
  13. // copy constructor
  14. CPosXrayClr(CPosXrayPtr); // copy constructor
  15. CPosXrayPtr GetPosXrayPtr();
  16. CPosXrayClr(CPosXray*);
  17. CPosXrayClr(CPosXrayClr^);
  18. ~CPosXrayClr();
  19. !CPosXrayClr();
  20. //bool UpdateCPosXrayClr(CPosXrayPtr);
  21. // channels
  22. long GetChannelsNum() { return m_PosXray->get()->GetChannelsNo (); }
  23. // x-ray data
  24. cli::array<DWORD>^ GetXrayData();
  25. CElementChemistryListClr ^ GetElementQuantifyData();
  26. // { return m_nXrayData; }
  27. void SetXrayData(cli::array<DWORD>^ a_pnXrayData);
  28. DWORD GetTotalCount();
  29. void GetMaxHeightPosition(long % a_nMaxHeight, long % a_nPosition);
  30. // clear the x-ray data
  31. // if start position is [0, GENERALXRAYCHANNELS - 1], will do the clear
  32. void ClearXrayData(long a_nStartPos);
  33. // set x-ray data at channel
  34. void SetXrayDataAtChannel(DWORD a_nXray, long a_nChannel);
  35. System::Drawing::Point^ GetPosition();
  36. void SetPosition(System::Drawing::Point^ a_poiPosition);
  37. // index
  38. long GetIndex();
  39. void SetIndex(long a_nIndex);
  40. // field id
  41. long GetScanFieldId();
  42. void SetScanFieldId(long a_nScanfieldId);
  43. // particle tag id
  44. long GetPartTagId();
  45. void SetPartTagId(long a_nPartTagId);
  46. // feature id
  47. long GetFeatureId();
  48. void SetFeatureId(long a_nFeatureId);
  49. void SetElementQuantifyData(CElementChemistryListClr^ a_listElementQuantifyData);
  50. void AddQuantifyElement(CElementChemistryClr^);
  51. void NormalizeXrayQuantifyData();
  52. void SetElementNum(int num);
  53. int GetElementNum();
  54. protected:
  55. CPosXrayPtr* m_PosXray;
  56. };
  57. typedef System::Collections::Generic::List<CPosXrayClr^> CPosXrayListClr;
  58. }