AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIStyleElement.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIStyleElement_H_
4 #define _APIStyleElement_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class PointStyle;
13  class FaceStyle;
14  class LineStyle;
23  : public Element
24  {
26  public:
31  void SetPointColor(const ColorValue& _PointColor);
36  ColorValue GetPointColor() const;
37 
42  void SetPointSize(float _PointSize);
47  float GetPointSize() const;
48 
53  void SetLineColor(const ColorValue& _LineColor);
58  ColorValue GetLineColor() const;
59 
64  void SetLineWidth(float _LineWidth);
69  float GetLineWidth() const;
70 
75  void SetPatternFactor(float _PatternFactor);
80  float GetPatternFactor() const;
81 
86  void SetPatternStyle(int _PatternStyle);
91  int GetPatternStyle() const;
92 
97  void SetFaceColor(const ColorValue& _FaceColor);
102  ColorValue GetFaceColor() const;
103 
108  void SetTransparent(bool _Transparent);
113  bool GetTransparent() const;
114 
119  void SetMaterialName(const String& _MaterialName);
124  String GetMaterialName() const;
125 
130  void SetTextureFile(const Path& _TextureFile);
135  Path GetTextureFile() const;
136 
137  };//StyleElement;
138 }}//API
139 
140 #endif //_APIStyleElement_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
std::string String
Definition: APIString.h:10
The material element.
Definition: APIStyleElement.h:22
The base class for the data that need to be stored in document.
Definition: APIElement.h:22
TODO:
Definition: APIPath.h:16
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
Color Value.
Definition: APIMath.h:183