AnyCAD Rapid API 2025
Help you to create a better world!
|
Public 成员函数 | |
ShapeModel (GeneralComponent component) | |
void | Initialize (ParameterDict pDict, boolean bOverride) |
void | Initialize (ParameterDict pDict) |
TransformComponent | GetTransform () |
GPnt | GetLocation () |
void | SetLocation (GPnt loc) |
void | SetLocationX (double x) |
double | GetLocationX () |
void | SetLocationY (double y) |
double | GetLocationY () |
void | SetLocationZ (double z) |
double | GetLocationZ () |
GXYZ | GetRotation () |
void | SetRotation (GXYZ angles) |
void | SetRotationX (double x) |
double | GetRotationX () |
void | SetRotationY (double y) |
double | GetRotationY () |
void | SetRotationZ (double z) |
double | GetRotationZ () |
void | SetDirection (GDir dir) |
GDir | GetDirection () |
void | SetColor (Vector3 clr) |
Vector3 | GetColor () |
void | SetTransform (GTrsf trf) |
GTrsf | GetTransfrom () |
![]() | |
PropertiesModel (GeneralComponent component) | |
void | InitializeComponent (boolean bOverried) |
void | InitializeComponent () |
boolean | Load (Document pDoc, ObjectId id) |
void | CopyFrom (ParameterDict dict) |
void | CopyTo (ParameterDict dict) |
ObjectId | GetEntityId () |
静态 Public 成员函数 | |
static String | Location () |
static String | LocationX () |
static String | LocationY () |
static String | LocationZ () |
static String | Rotation () |
static String | RotationX () |
static String | RotationY () |
static String | RotationZ () |
static String | Direction () |
static String | DirectionX () |
static String | DirectionY () |
static String | DirectionZ () |
![]() | |
static String | Name () |
基本模型Model层。支持变换自动管理
Vector3 ShapeModel.GetColor | ( | ) |
获取颜色
GDir ShapeModel.GetDirection | ( | ) |
获取方向
GPnt ShapeModel.GetLocation | ( | ) |
获取位置
GXYZ ShapeModel.GetRotation | ( | ) |
XYZ角度 by degree [0, 360]
void ShapeModel.Initialize | ( | ParameterDict | pDict | ) |
初始化属性集,仅需要序列化的。
pDict | 属性集合 |
重载 PropertiesModel .
被 BoxModel, ConeModel, CylinderModel, PrimitiveModel, PyramidModel, SphereModel , 以及 TorusModel 重载.
void ShapeModel.Initialize | ( | ParameterDict | pDict, |
boolean | bOverride ) |
初始化属性集,仅需要序列化的。
pDict | 属性集合 |
bOverride | 覆盖 |
重载 PropertiesModel .
被 BoxModel, ConeModel, CylinderModel, PrimitiveModel, PyramidModel, SphereModel , 以及 TorusModel 重载.
void ShapeModel.SetColor | ( | Vector3 | clr | ) |
设置颜色
clr | 颜色 |
void ShapeModel.SetDirection | ( | GDir | dir | ) |
设置方向
dir |
void ShapeModel.SetLocation | ( | GPnt | loc | ) |
设置位置
loc |
void ShapeModel.SetRotation | ( | GXYZ | angles | ) |
设置角度 by degree
angles |