| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #include "PosXray.h"
- #include "PosXrayInfoClr.h"
- namespace OTSINTERFACE {
- using namespace System;
- using namespace System::Drawing;
- using namespace OTSDATA;
- using namespace OTSMODEL;
- public ref class CPosXrayClr
- {
- public:
- CPosXrayClr(); // constructor
- // copy constructor
- CPosXrayClr(CPosXrayPtr); // copy constructor
- CPosXrayPtr GetPosXrayPtr();
- CPosXrayClr(CPosXray*);
- ~CPosXrayClr();
- !CPosXrayClr();
- //bool UpdateCPosXrayClr(CPosXrayPtr);
- // channels
- long GetChannelsNum() { return m_PosXray->get()->GetChannelsNo (); }
- // x-ray data
- cli::array<DWORD>^ GetXrayData();
- long GetIndex();
- CElementChemistryListClr ^ GetElementQuantifyData();
- // { return m_nXrayData; }
- void SetXrayData(cli::array<DWORD>^ a_pnXrayData);
- DWORD GetTotalCount();
- void GetMaxHeightPosition(long % a_nMaxHeight, long % a_nPosition);
- // clear the x-ray data
- // if start position is [0, GENERALXRAYCHANNELS - 1], will do the clear
- void ClearXrayData(long a_nStartPos);
- // set x-ray data at channel
- void SetXrayDataAtChannel(DWORD a_nXray, long a_nChannel);
- protected:
- CPosXrayPtr* m_PosXray;
- };
- typedef System::Collections::Generic::List<CPosXrayClr^> CPosXrayListClr;
- }
|