123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #pragma once
- #include "Element.h"
- namespace OTSDATA
- {
- class __declspec(dllexport) CPosXrayInfo : public xmls::ISlo
- {
- public:
- CPosXrayInfo(); // constructor
- CPosXrayInfo(const CPosXrayInfo&); // copy constructor
- CPosXrayInfo(CPosXrayInfo*); // copy constructor
- CPosXrayInfo& operator=(const CPosXrayInfo&); // =operator
- BOOL operator==(const CPosXrayInfo&); // ==operator
- virtual ~CPosXrayInfo(); // detractor
- // serialization
- void Serialize(bool isStoring,tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode);
-
- // position
- CPoint GetPosition() const { return m_poiPosition; }
- void SetPosition(const CPoint& a_poiPosition) { m_poiPosition = a_poiPosition; }
- // index
- long GetIndex() const { return m_nIndex; }
- void SetIndex(const long a_nIndex) { m_nIndex = a_nIndex; }
- // field id
- long GetScanFieldId() const { return m_nFieldId; }
- void SetScanFieldId(const long a_nScanfieldId) { m_nFieldId = a_nScanfieldId; }
- // particle tag id
- long GetPartTagId() const { return m_nPartTagId; }
- void SetPartTagId(const long a_nPartTagId) { m_nPartTagId = a_nPartTagId; }
- // feature id
- long GetFeatureId() const { return m_nFeatureId; }
- void SetFeatureId(const long a_nFeatureId) { m_nFeatureId = a_nFeatureId; }
- // element quantify data
- CElementChemistriesList& GetElementQuantifyData() { return m_listElementQuantifyData; }
- void SetElementQuantifyData(CElementChemistriesList& a_listElementQuantifyData);
- void NormalizeXrayQuantifyData();
- // record this only for DB
- long GetElementNum() { return m_nElementNum; }
- void SetElementNum(long a_nElementNum) { m_nElementNum = a_nElementNum; }
-
- protected:
- // cleanup
- void Cleanup();
- // initialization
- void Init();
- // duplication
- void Duplicate(const CPosXrayInfo& a_oSource);
- // position
- CPoint m_poiPosition;
- // index
- long m_nIndex;
- // field id
- long m_nFieldId;
- // particle tag id
- long m_nPartTagId;
- // feature id
- long m_nFeatureId;
- // element quantify data
- CElementChemistriesList m_listElementQuantifyData;
- // record this only for DB
- long m_nElementNum;
- };
- typedef std::shared_ptr<CPosXrayInfo> __declspec(dllexport) CPosXrayInfoPtr;
- typedef std::vector<CPosXrayInfoPtr> __declspec(dllexport) CPosXrayInfoList;
- }
|