PosXrayClr.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include "PosXray.h"
  3. #include "PosXrayInfoClr.h"
  4. namespace OTSINTERFACE {
  5. using namespace System;
  6. using namespace System::Drawing;
  7. using namespace OTSDATA;
  8. using namespace OTSMODEL;
  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();
  18. !CPosXrayClr();
  19. //bool UpdateCPosXrayClr(CPosXrayPtr);
  20. // channels
  21. long GetChannelsNum() { return m_PosXray->get()->GetChannelsNo (); }
  22. // x-ray data
  23. cli::array<DWORD>^ GetXrayData();
  24. long GetIndex();
  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. protected:
  36. CPosXrayPtr* m_PosXray;
  37. };
  38. typedef System::Collections::Generic::List<CPosXrayClr^> CPosXrayListClr;
  39. }