AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIPropertiesElement.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIPropertiesElement_H_
4 #define _APIPropertiesElement_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class ParameterValue;
13  class ParameterUI;
14  class ParameterValueSet;
15  class ParameterUISet;
24  : public Element
25  {
27  public:
33  void AddParameter (ParameterId paramId, const ParameterValue& pParameter) ;
39  ParameterValue RemoveParameter (ParameterId paramId) ;
45  void AddParameterUI (ParameterId paramId, const ParameterUI& pParameterUI) ;
51  ParameterUI GetParameterUI (ParameterId paramId) const;
57  ParameterUI RemoveParameterUI (ParameterId paramId) ;
62  ParameterUISet GetParameterUISet () const;
68  virtual ParameterValue GetParameterValue (ParameterId paramId) const;
75  virtual bool SetParameterValue (ParameterId paramId, const ParameterValue& pValue) ;
76  };//PropertiesElement;
77 }}//API
78 
79 #endif //_APIPropertiesElement_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
Support user defined parameters and script.
Definition: APIPropertiesElement.h:23
String ParameterId
Definition: APIString.h:11
The base class for parameter values.
Definition: APIParameterValue.h:19
The UI description for parameters.
Definition: APIParameterUI.h:20
A group of parameter UIs.
Definition: APIParameterUISet.h:20
The base class for the data that need to be stored in document.
Definition: APIElement.h:22
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33