AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIParameterValueSet.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIParameterValueSet_H_
4 #define _APIParameterValueSet_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:
30  ParameterValue Find (const String& paramId) const;
37  double FindDouble (const String& paramId, double defaultValue) const;
44  bool SetDouble (const String& paramId, double val) ;
51  ElementId FindElementId (const String& paramId, const ElementId& defaultValue) const;
58  bool SetElementId (const String& paramId, const ElementId& val) ;
65  int FindInt (const String& paramId, int defaultValue) const;
72  bool SetInt (const String& paramId, int val) ;
79  bool FindBool (const String& paramId, bool defaultValue) const;
86  bool SetBool (const String& paramId, bool val) ;
93  String FindString (const String& paramId, const String& defaultValue) const;
100  bool SetString (const String& paramId, const String& val) ;
107  Vector3 FindVector3 (const String& paramId, const Vector3& defaultValue) const;
114  bool SetVector3 (const String& paramId, const Vector3& val) ;
121  ColorValue FindColor (const String& paramId, const ColorValue& defaultValue) const;
128  bool SetColor (const String& paramId, const ColorValue& val) ;
134  void Add (const String& paramId, const ParameterValue& val) ;
140  ParameterValue Remove (const String& paramId) ;
141  };//ParameterValueSet;
142 }}//API
143 
144 #endif //_APIParameterValueSet_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
Group of ParameterValue with unique id.
Definition: APIParameterValueSet.h:20
The id.
Definition: APIElementId.h:16
平台基类
Definition: APIObject.h:17
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
Color Value.
Definition: APIMath.h:183