PropParamClr.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. bool GetPropComboData(int a_nId, int% a_nValue);
  59. bool SetPropComboData(int a_nId, int a_nValue);
  60. bool GetPropDoubleData(int a_nId, double% a_dValue);
  61. bool SetPropDoubleData(int a_nId, double a_dValue);
  62. bool GetRelatedPropItem(int a_nId, int% a_nRelatedPropId);
  63. // get related property item
  64. bool UpdateAll(int a_nId);
  65. //the ternary phase diagram template.
  66. CString GetTopName();
  67. BOOL SetTopName(String^ a_TopName);
  68. CString GetLeftName();
  69. BOOL SetLeftName(String^ a_LeftName);
  70. CString GetRightName();
  71. BOOL SetRightName(String^ a_RightName);
  72. System::Collections::Generic::List<String^>^ GetTopElementName();
  73. BOOL SetTopElementName(System::Collections::Generic::List<String^>^ a_listTopElementName);
  74. System::Collections::Generic::List<String^>^ GetLeftElementName();
  75. BOOL SetLeftElementName(System::Collections::Generic::List<String^>^ a_listLeftElementName);
  76. System::Collections::Generic::List<String^>^ GetRightElementName();
  77. BOOL SetRightElementName(System::Collections::Generic::List<String^>^ a_listRightElementName);
  78. private:
  79. CPropParamPtr* m_LpPropParam;
  80. };
  81. }