#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); //获取Combo类型的数值 // 输入:int :属性在属性组内id Combo 返回的获取值 // 输出: 获取结果, bool, true:成功,false:失败 bool GetPropComboData(int a_nId, int% a_nValue); //设定属性值 // 输入:int,属性id ;string,需要设定的值 // 输出:bool,设定结果,true,成功,false, 失败 bool SetPropComboData(int a_nId, int a_nValue); //获取double类型的数值 // 输入:int :属性在属性组内id double 返回的获取值 // 输出: 获取结果, bool, true:成功,false:失败 bool GetPropDoubleData(int a_nId, double% a_dValue); //设定属性值 // 输入:int,属性id ;double,需要设定的值 // 输出:bool,设定结果,true,成功,false, 失败 bool SetPropDoubleData(int a_nId, double a_dValue); //获取相关属性值 // 输入:int,属性id, int,返回相关属性值 // 输出:bool,设定结果,true,成功,false,失败 // get related property item 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; }; }