PropParamClr.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #pragma once
  2. #include "PropItemClr.h"
  3. #include "PropParam.h"
  4. #include "OTSParticleClr.h"
  5. namespace OTSCLRINTERFACE {
  6. using namespace System;
  7. using namespace System::Collections::Generic;
  8. using namespace OTSDATA;
  9. typedef System::Collections::Generic::List<String^> CStringListClr;
  10. public ref class CPropParamClr
  11. {
  12. public:
  13. CPropParamClr(int a_nType);
  14. CPropParamClr(CPropParamPtr);
  15. !CPropParamClr();
  16. ~CPropParamClr();
  17. CPropParamPtr GetPropParamPtr();
  18. // type
  19. int GetType();
  20. void SetType(int a_nType);
  21. // property items list
  22. List<CPropItemClr^>^ GetPropItemsList();
  23. virtual bool SetPropertyItems();
  24. // data source id
  25. List<String^>^ GetDataSourceList();
  26. bool SetDataSourceList(List<String^>^ a_listDataSource);
  27. int GetDataSourceId();
  28. bool SetDataSourceId(int a_nDataSourceId);
  29. // data source type
  30. int GetDataSourceType();
  31. bool SetDataSourceType(int a_nDataSourceType);
  32. COTSParticleListClr^ GetSelectParticle();
  33. bool SetSelectParticle(COTSParticleListClr^ a_listSelectParticle);
  34. // image type
  35. int GetImageType();
  36. bool SetImageType(int a_nImageType);
  37. // image display type
  38. int GetImageDisplayType();
  39. bool SetImageDisplayType(int a_nImageDisplayType);
  40. // measure data type
  41. int GetMeasureDataType();
  42. bool SetMeasureDataType(int a_nMeasureDataType);
  43. // calculate table type
  44. int GetCalTableType();
  45. bool SetCalTableType(int a_nCalTableType);
  46. // calculate chart type
  47. int GetCalChartType();
  48. bool SetCalChartType(int a_nCalChartType);
  49. // particle type
  50. int GetPartType();
  51. bool SetPartType(int a_nPartType);
  52. // grain size max
  53. double GetGrainSizeMax();
  54. bool SetGrainSizeMax(double a_dGrainSizeMax);
  55. // size calculation method type
  56. int GetSizeCalMethodType();
  57. bool SetSizeCalMethodType(int a_nSizeCalMethodType);
  58. //获取Combo类型的数值
  59. // 输入:int :属性在属性组内id Combo 返回的获取值
  60. // 输出: 获取结果, bool, true:成功,false:失败
  61. bool GetPropComboData(int a_nId, int% a_nValue);
  62. //设定属性值
  63. // 输入:int,属性id ;string,需要设定的值
  64. // 输出:bool,设定结果,true,成功,false, 失败
  65. bool SetPropComboData(int a_nId, int a_nValue);
  66. //获取double类型的数值
  67. // 输入:int :属性在属性组内id double 返回的获取值
  68. // 输出: 获取结果, bool, true:成功,false:失败
  69. bool GetPropDoubleData(int a_nId, double% a_dValue);
  70. //设定属性值
  71. // 输入:int,属性id ;double,需要设定的值
  72. // 输出:bool,设定结果,true,成功,false, 失败
  73. bool SetPropDoubleData(int a_nId, double a_dValue);
  74. //获取相关属性值
  75. // 输入:int,属性id, int,返回相关属性值
  76. // 输出:bool,设定结果,true,成功,false,失败
  77. // get related property item
  78. bool GetRelatedPropItem(int a_nId, int% a_nRelatedPropId);
  79. // get related property item
  80. bool UpdateAll(int a_nId);
  81. //the ternary phase diagram template.
  82. CString GetTopName();
  83. BOOL SetTopName(String^ a_TopName);
  84. CString GetLeftName();
  85. BOOL SetLeftName(String^ a_LeftName);
  86. CString GetRightName();
  87. BOOL SetRightName(String^ a_RightName);
  88. System::Collections::Generic::List<String^>^ GetTopElementName();
  89. BOOL SetTopElementName(System::Collections::Generic::List<String^>^ a_listTopElementName);
  90. System::Collections::Generic::List<String^>^ GetLeftElementName();
  91. BOOL SetLeftElementName(System::Collections::Generic::List<String^>^ a_listLeftElementName);
  92. System::Collections::Generic::List<String^>^ GetRightElementName();
  93. BOOL SetRightElementName(System::Collections::Generic::List<String^>^ a_listRightElementName);
  94. private:
  95. CPropParamPtr* m_LpPropParam;
  96. };
  97. }