| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- #pragma once
- #include "OTSParticle.h"
- #include "OTSFeatureClr.h"
- namespace OTSINTERFACE {
- using namespace System;
- using namespace System::Drawing;
- using namespace OTSDATA;
- public ref class COTSParticleClr : public Object
- {
- public:
-
- // constructor
- COTSParticleClr(); // constructor
-
- COTSParticleClr(COTSParticlePtr); // copy constructor
-
- COTSParticleClr(COTSParticle*);
- ~COTSParticleClr();
- !COTSParticleClr();
- COTSParticlePtr GetOTSParticlePtr();
-
-
- // rectangle
- System::Drawing::Rectangle^ GetParticleRect();
- void SetParticleRect(System::Drawing::Rectangle^ a_rectParticle);
- //Type
- int GetType();
- void SetType(int a_nType);
- //area
- double GetArea();
- void SetArea(double a_dArea);
- // gray
- BYTE GetAveGray();
- void SetAveGray(BYTE a_cAveGray);
- // x-ray position
- System::Drawing::Point^ GetXRayPos();
- void SetXRayPos(System::Drawing::Point^ a_pXRayPos);
- // feature
- COTSFeatureClr^ GetFeature();
- void SetFeature(COTSFeatureClr^ a_pFeautre);
- // tag id
- int GetTagId();
- void SetTagId(int a_nTagId);
- // search id
- int GetSearchId();
- void SetSearchId(int a_nSearchId);
- // analysis id
- int GetAnalysisId();
- void SetAnalysisId(int a_nAnalysisId);
- // field id
- int GetFieldId();
- void SetFieldId(int a_nFieldId);
- double GetDMAX()
- {
- return m_Particle->get()->GetDMax();
- }
- double GetDMIN()
- {
- return m_Particle->get()->GetDMin();
- }
- double GetDMPERP()
- {
- return m_Particle->get()->GetDPerp();
- }
- double GetDINSCR()
- {
- return m_Particle->get()->GetDInscr ();
- }
- double GetDMEAN()
- {
- return m_Particle->get()->GetDMean();
- }
- double GetDELONG()
- {
- return m_Particle->get()->GetDElong();
- }
- double GetDPRIMETER()
- {
- return m_Particle->get()->GetPerimeter();
- }
- double GetORIENTATION()
- {
- return m_Particle->get()->GetOrientation();
- }
- double GetEqualCircleDiameter()
- {
- return m_Particle->get()->GetEqualCircleDiameter();
- }
- String^ GetTypeName()
- {
- return gcnew String(m_Particle->get()->TypeName().c_str());
- }
- String^ GetTypeColor()
- {
- return gcnew String(m_Particle->get()->TypeColor().c_str());
- }
- protected:
- COTSParticlePtr* m_Particle;
- };
- typedef System::Collections::Generic::List<COTSParticleClr^> COTSParticleListClr;
- }
|