AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIParameterUI.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIParameterUI_H_
4 #define _APIParameterUI_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIObject.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class ParameterValue;
21  : public Object
22  {
24  public:
29  int GetIndex () const;
34  void SetParamId (const String& paramId) ;
39  String GetParamId () const;
44  void SetName (const String& strName) ;
49  String GetName () const;
54  void SetVisible (bool bVisible) ;
59  bool IsVisible () const;
64  void SetReadonly (bool bReadonly) ;
69  bool IsReadonly () const;
74  void SetGroup (bool bGroup) ;
79  bool IsGroup () const;
84  void SetUsedByScript (bool bUseByScript) ;
89  bool IsUsedByScript () const;
94  void SetGroupName (const String& groupParamId) ;
99  String GetGroupName () const;
104  void SetDescription (const String& desc) ;
109  String GetDescription () const;
114  void SetControlId (const String& controlId) ;
118  String GetControlId () const;
123  void SetControlType (const String& controlType) ;
127  String GetControlType () const;
133  bool SetParameter (const String& paramId, const ParameterValue& pValue) ;
139  ParameterValue GetParameter (const String& paramId) const;
140  };//ParameterUI;
141 }}//API
142 
143 #endif //_APIParameterUI_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
std::string String
Definition: APIString.h:10
The base class for parameter values.
Definition: APIParameterValue.h:19
The UI description for parameters.
Definition: APIParameterUI.h:20
平台基类
Definition: APIObject.h:17
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33