AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
ClassId | GetClassId () |
Vector3 | GetFaceColor () |
boolean | SetFaceColor (Vector3 val) |
float | GetMetalness () |
boolean | SetMetalness (float val) |
float | GetRoughness () |
boolean | SetRoughness (float val) |
float | GetOpacity () |
boolean | SetOpacity (float val) |
Vector3 | GetPointColor () |
boolean | SetPointColor (Vector3 val) |
float | GetPointSize () |
boolean | SetPointSize (float val) |
EnumPointStyle | GetPointStyle () |
boolean | SetPointStyle (EnumPointStyle val) |
ObjectId | GetParentId () |
boolean | SetParentId (ObjectId val) |
float | GetUserData () |
boolean | SetUserData (float val) |
float | GetRenderOrder () |
boolean | SetRenderOrder (float val) |
ObjectId | GetColorTextureId () |
boolean | SetColorTextureId (ObjectId val) |
boolean | GetDepthTest () |
boolean | SetDepthTest (boolean val) |
EnumFaceSide | GetFaceSide () |
boolean | SetFaceSide (EnumFaceSide val) |
boolean | GetUseLighting () |
boolean | SetUseLighting (boolean val) |
MeshMaterial | GetFaceMaterial () |
void | SetFaceMaterial (MeshMaterial val) |
PointsMaterial | GetPointMaterial () |
void | SetPointMaterial (PointsMaterial val) |
void | RequestUpdate (EnumUpdateElementFlag mode) |
void | RequestUpdate () |
void | SetColor (Vector3 clr) |
boolean | UpdateMaterial () |
boolean | IsUsed () |
Public 成员函数 继承自 Element | |
long | GetUserId () |
boolean | SetUserId (long val) |
String | GetName () |
boolean | SetName (String val) |
String | GetSchemaName () |
boolean | SetSchemaName (String val) |
long | GetUserFlags () |
void | SetUserFlags (long val) |
ObjectId | GetId () |
String | GetAliasName () |
boolean | SetAliasName (String val) |
ObjectId | GetSourceId () |
boolean | SetSourceId (ObjectId val) |
String | GetCategory () |
boolean | SetCategory (String val) |
Document | GetDocument () |
void | MakeUniqueName (String base) |
void | MakeUniqueNameByBase (String base) |
void | MakeUniqueName () |
void | MakeUniqueNameByConfig () |
void | ListParameters (ParameterDict parameters) |
boolean | SetParameter (ParameterDict parameters, String key) |
String | GetModifyCommand () |
Public 成员函数 继承自 AObject | |
boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
static ClassId | GetStaticClassId () |
static MaterialElement | Cast (AObject obj) |
static MaterialElement | Create (Document pDoc) |
<>
材质,包括面、边、点的外观显示设置,线型、字体等设置
|
static |
重载 Element .
boolean MaterialElement.IsUsed | ( | ) |
判断是否被其他对象使用
void MaterialElement.RequestUpdate | ( | ) |
在被添加到文档时候调用,或者手动调用以触发更新。
重载 Element .
void MaterialElement.RequestUpdate | ( | EnumUpdateElementFlag | mode | ) |
在被添加到文档时候调用,或者手动调用以触发更新。
重载 Element .
void MaterialElement.SetColor | ( | Vector3 | clr | ) |
同时设置颜色
clr | 颜色 |