#pragma once #include "PropItemClr.h" #include "PropParam.h" #include "OTSParticleClr.h" namespace OTSCLRINTERFACE { using namespace System; using namespace System::Collections::Generic; using namespace OTSDATA; typedef System::Collections::Generic::List CStringListClr; public ref class CPropParamClr { public: CPropParamClr(int a_nType); CPropParamClr(CPropParamPtr); !CPropParamClr(); ~CPropParamClr(); CPropParamPtr GetPropParamPtr(); // type int GetType(); void SetType(int a_nType); // property items list List^ GetPropItemsList(); virtual bool SetPropertyItems(); // data source id List^ GetDataSourceList(); bool SetDataSourceList(List^ a_listDataSource); int GetDataSourceId(); bool SetDataSourceId(int a_nDataSourceId); // data source type int GetDataSourceType(); bool SetDataSourceType(int a_nDataSourceType); COTSParticleListClr^ GetSelectParticle(); bool SetSelectParticle(COTSParticleListClr^ a_listSelectParticle); // image type int GetImageType(); bool SetImageType(int a_nImageType); // image display type int GetImageDisplayType(); bool SetImageDisplayType(int a_nImageDisplayType); // measure data type int GetMeasureDataType(); bool SetMeasureDataType(int a_nMeasureDataType); // calculate table type int GetCalTableType(); bool SetCalTableType(int a_nCalTableType); // calculate chart type int GetCalChartType(); bool SetCalChartType(int a_nCalChartType); // particle type int GetPartType(); bool SetPartType(int a_nPartType); // grain size max double GetGrainSizeMax(); bool SetGrainSizeMax(double a_dGrainSizeMax); // size calculation method type int GetSizeCalMethodType(); bool SetSizeCalMethodType(int a_nSizeCalMethodType); bool GetPropComboData(int a_nId, int% a_nValue); bool SetPropComboData(int a_nId, int a_nValue); bool GetPropDoubleData(int a_nId, double% a_dValue); bool SetPropDoubleData(int a_nId, double a_dValue); bool GetRelatedPropItem(int a_nId, int% a_nRelatedPropId); // get related property item bool UpdateAll(int a_nId); //the ternary phase diagram template. CString GetTopName(); BOOL SetTopName(String^ a_TopName); CString GetLeftName(); BOOL SetLeftName(String^ a_LeftName); CString GetRightName(); BOOL SetRightName(String^ a_RightName); System::Collections::Generic::List^ GetTopElementName(); BOOL SetTopElementName(System::Collections::Generic::List^ a_listTopElementName); System::Collections::Generic::List^ GetLeftElementName(); BOOL SetLeftElementName(System::Collections::Generic::List^ a_listLeftElementName); System::Collections::Generic::List^ GetRightElementName(); BOOL SetRightElementName(System::Collections::Generic::List^ a_listRightElementName); private: CPropParamPtr* m_LpPropParam; }; }