AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIParameterValue.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIParameterValue_H_
4 #define _APIParameterValue_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIObject.h"
9 
10 namespace AnyCAD{ namespace API
11 {
20  : public Object
21  {
23  public:
27  EnumValueType GetValueType () const;
33  bool Assign (const ParameterValue& other) ;
39  bool IsEqual (const ParameterValue& other) const;
44  virtual String ToString () const;
50  virtual bool FromString (const String& str) ;
55  virtual ParameterValue Clone () const;
60  int AsInt () const;
65  ElementId AsElementId () const;
70  double AsDouble () const;
75  String AsString () const;
80  bool AsBool () const;
85  Vector3 AsVector3 () const;
90  Vector2 AsVector2 () const;
95  ColorValue AsColorValue () const;
96  };//ParameterValue;
97 }}//API
98 
99 #endif //_APIParameterValue_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
std::string String
Definition: APIString.h:10
Point or vector.
Definition: APIMath.h:16
The base class for parameter values.
Definition: APIParameterValue.h:19
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
EnumValueType
Definition: APIEnums.h:128