AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Designing.SphereModel类 参考

球对象 更多...

类 AnyCAD.Designing.SphereModel 继承关系图:
AnyCAD.Designing.PrimitiveModel AnyCAD.Designing.ShapeModel AnyCAD.Platform.PropertiesModel

Public 成员函数

 SphereModel (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 SphereModel (GeneralComponent component)
 
override void Initialize (ParameterDict pDict, bool bOverride)
 初始化属性集,仅需要序列化的。
 
override void Initialize (ParameterDict pDict)
 初始化属性集,仅需要序列化的。
 
double GetRadius ()
 
double GetRadius (double val)
 
void SetRadius (double val)
 
override void CopyFrom (ParameterDict dict)
 保存参数
 
override void CopyTo (ParameterDict dict)
 加载参数
 
- Public 成员函数 继承自 AnyCAD.Designing.PrimitiveModel
 PrimitiveModel (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 PrimitiveModel (GeneralComponent component)
 
- Public 成员函数 继承自 AnyCAD.Designing.ShapeModel
 ShapeModel (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 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 ()
 XYZ角度 [0, 2pi]
 
void SetRotation (GXYZ angles)
 设置角度[0, 2pi]
 
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 成员函数 继承自 AnyCAD.Platform.PropertiesModel
 PropertiesModel (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 PropertiesModel (GeneralComponent component)
 
bool IsValid ()
 
void InitializeComponent (bool bOverried)
 使用默认值初始化组件
 
void InitializeComponent ()
 使用默认值初始化组件
 
bool Load (Document pDoc, ObjectId id)
 使用Entity的Id初始化Model
 
ObjectId GetEntityId ()
 获取实体对象Id
 

静态 Public 成员函数

static string Radius ()
 
static SphereModel Create (string name, double radius, GPnt location)
 
- 静态 Public 成员函数 继承自 AnyCAD.Designing.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 ()
 

详细描述

球对象

Group: DataManage

成员函数说明

◆ CopyFrom()

override void AnyCAD.Designing.SphereModel.CopyFrom ( ParameterDict dict)
virtual

保存参数

参数
dict

重载 AnyCAD.Platform.PropertiesModel .

◆ CopyTo()

override void AnyCAD.Designing.SphereModel.CopyTo ( ParameterDict dict)
virtual

加载参数

参数
dict

重载 AnyCAD.Platform.PropertiesModel .

◆ Initialize() [1/2]

override void AnyCAD.Designing.SphereModel.Initialize ( ParameterDict pDict)
virtual

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

参数
pDict属性集合

重载 AnyCAD.Designing.PrimitiveModel .

◆ Initialize() [2/2]

override void AnyCAD.Designing.SphereModel.Initialize ( ParameterDict pDict,
bool bOverride )
virtual

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

参数
pDict属性集合
bOverride覆盖

重载 AnyCAD.Designing.PrimitiveModel .