AnyCAD Rapid API 2025
Help you to create a better world!
载入中...
搜索中...
未找到
BoxModel类 参考
类 BoxModel 继承关系图:
PrimitiveModel ShapeModel PropertiesModel

Public 成员函数

 BoxModel (GeneralComponent component)
 
void Initialize (ParameterDict pDict, boolean bOverride)
 
void Initialize (ParameterDict pDict)
 
double GetXLength ()
 
double GetXLength (double val)
 
void SetXLength (double val)
 
double GetYLength ()
 
double GetYLength (double val)
 
void SetYLength (double val)
 
double GetZLength ()
 
double GetZLength (double val)
 
void SetZLength (double val)
 
void CopyFrom (ParameterDict dict)
 
void CopyTo (ParameterDict dict)
 
- Public 成员函数 继承自 PrimitiveModel
 PrimitiveModel (GeneralComponent component)
 
- Public 成员函数 继承自 ShapeModel
 ShapeModel (GeneralComponent component)
 
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 ()
 
- Public 成员函数 继承自 PropertiesModel
 PropertiesModel (GeneralComponent component)
 
void InitializeComponent (boolean bOverried)
 
void InitializeComponent ()
 
boolean Load (Document pDoc, ObjectId id)
 
ObjectId GetEntityId ()
 

静态 Public 成员函数

static String XLength ()
 
static String YLength ()
 
static String ZLength ()
 
static BoxModel Create (String name, double width, double height, double depth, GPnt location, GDir dir)
 
static BoxModel Create (String name, double width, double height, double depth, GPnt location)
 
- 静态 Public 成员函数 继承自 ShapeModel
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 ()
 
- 静态 Public 成员函数 继承自 PropertiesModel
static String Name ()
 

详细描述

创建盒子、长方体、立方体对象

成员函数说明

◆ CopyFrom()

void BoxModel.CopyFrom ( ParameterDict dict)

保存参数

参数
dict

重载 PropertiesModel .

◆ CopyTo()

void BoxModel.CopyTo ( ParameterDict dict)

加载参数

参数
dict

重载 PropertiesModel .

◆ Create() [1/2]

static BoxModel BoxModel.Create ( String name,
double width,
double height,
double depth,
GPnt location )
static

添加盒子对象

◆ Create() [2/2]

static BoxModel BoxModel.Create ( String name,
double width,
double height,
double depth,
GPnt location,
GDir dir )
static

添加盒子对象

◆ Initialize() [1/2]

void BoxModel.Initialize ( ParameterDict pDict)

初始化属性集,仅需要序列化的。

参数
pDict属性集合

重载 PrimitiveModel .

◆ Initialize() [2/2]

void BoxModel.Initialize ( ParameterDict pDict,
boolean bOverride )

初始化属性集,仅需要序列化的。

参数
pDict属性集合
bOverride覆盖

重载 PrimitiveModel .