123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- #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<String^> 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<CPropItemClr^>^ GetPropItemsList();
- virtual bool SetPropertyItems();
- // data source id
- List<String^>^ GetDataSourceList();
- bool SetDataSourceList(List<String^>^ 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<String^>^ GetTopElementName();
- BOOL SetTopElementName(System::Collections::Generic::List<String^>^ a_listTopElementName);
- System::Collections::Generic::List<String^>^ GetLeftElementName();
- BOOL SetLeftElementName(System::Collections::Generic::List<String^>^ a_listLeftElementName);
- System::Collections::Generic::List<String^>^ GetRightElementName();
- BOOL SetRightElementName(System::Collections::Generic::List<String^>^ a_listRightElementName);
- private:
- CPropParamPtr* m_LpPropParam;
-
- };
-
- }
|