|
AnyCAD Rapid API 2026
Help you to create a better world!
|
简化坐标轴控件类 更多...
Public 成员函数 | |
| AxWidget (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| ulong | GetTargetId () |
| void | SetTargetId (ulong val) |
| Vector3 | GetLength () |
| void | SetLength (Vector3 val) |
| GroupSceneNode | GetNodes () |
| void | ShowArrow (uint userId) |
| 只显示指定的轴 | |
| void | HideAxis () |
| 隐藏所有轴 | |
| void | SetPointColor (Vector3 clr) |
| 设置原点颜色 | |
| AxWidget | CloneAxWidget () |
| 克隆简化坐标轴控件 | |
| override SceneNode | Clone () |
| 克隆场景节点(重写基类方法) | |
Public 成员函数 继承自 AnyCAD.Foundation.GeneralSceneNode | |
| GeneralSceneNode (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| GeneralSceneNode () | |
| 构造函数 | |
| virtual bool | IsDocumentNode () |
| 判断是否为文档节点 | |
Public 成员函数 继承自 AnyCAD.Foundation.SceneNode | |
| SceneNode (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| string | GetName () |
| void | SetName (string val) |
| ulong | GetUserId () |
| void | SetUserId (ulong val) |
| ulong | GetParentId () |
| void | SetParentId (ulong val) |
| Matrix4d | GetTransform () |
| AABox | GetBoundingBox () |
| void | SetBoundingBox (AABox val) |
| Matrix4d | GetWorldTransform () |
| AABox | GetWorldBBox () |
| uint | GetState () |
| SceneNode | GetParent () |
| void | SetParent (SceneNode val) |
| float | GetPickOrder () |
| void | SetPickOrder (float val) |
| uint | GetUpdateVersion () |
| void | SetUpdateVersion (uint val) |
| MaterialInstance | GetOverrideFaceMaterial () |
| void | SetOverrideFaceMaterial (MaterialInstance val) |
| MaterialInstance | GetOverrideEdgeMaterial () |
| void | SetOverrideEdgeMaterial (MaterialInstance val) |
| bool | GetCastShadow () |
| 是否投射阴影 | |
| void | SetCastShadow (bool bEnabled) |
| 设置投射阴影 | |
| bool | GetPickable () |
| 是否可被选 | |
| void | SetPickable (bool bEnabled) |
| 设置是否可选 | |
| bool | GetPickByBox () |
| 是否用包围盒选择,粗选(InfiniteSize对象始终用包围盒选择) | |
| void | SetPickByBox (bool bEnabled) |
| 设置是否选择包围盒就算选中,不精确选择 | |
| bool | GetCulling () |
| 是否参与场景剔除 | |
| void | SetCulling (bool bEnabled) |
| 设置是否可被剔除 | |
| bool | GetVisible () |
| 是否可见 | |
| void | SetVisible (bool bEnabled) |
| 设置可见性 | |
| bool | GetChildrenPickable () |
| 子节点是否可选 | |
| void | SetChildrenPickable (bool bEnabled) |
| 设置子节点是否可选 | |
| bool | GetContainer () |
| 是否为根节点容器 | |
| void | SetContainer (bool bEnabled) |
| 设置是否为根节点容器 | |
| bool | GetFixedSize () |
| 是否屏幕固定大小,不随相机缩放而缩放 | |
| void | SetFixedSize (bool bEnabled) |
| 设置相对屏幕显示固定大小 | |
| void | SetFixedSizeByShader (bool bEnabled) |
| 设置相对屏幕显示固定大小 | |
| bool | GetFixedSizeByShader () |
| 是否屏幕固定大小,不随相机缩放而缩放 | |
| bool | GetInfiniteSize () |
| 设置是否为无限大,无限大则不影响场景包围盒大小。 | |
| void | SetInfiniteSize (bool bEnabled) |
| 设置是否为无限大 | |
| bool | GetPhysics () |
| 是否参与物理引擎计算。默认为否 | |
| void | SetPhysics (bool bEnabled) |
| 设置是否参与物理计算。 | |
| void | SetTransform (Matrix4d trf) |
| 设置变换矩阵。覆盖之前的矩阵 | |
| SceneNode | GetRootNode () |
| void | RequestUpdate () |
| 请求更新 | |
| void | AddTransform (Matrix4d trf) |
| multiply the transform to the existing one | |
| void | SetWorldTransform (Matrix4d world) |
| virtual void | UpdateTransform (Matrix4d parent) |
| Update the local transform. | |
| virtual AABox | ComputeBoundingBox (Matrix4d parent) |
| bool | IsVisiblePath () |
Public 成员函数 继承自 AnyCAD.Foundation.GfxObject | |
| GfxObject (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| uint | GetUuid () |
静态 Public 成员函数 | |
| static new AxWidget | Cast (GfxObject obj) |
| static AxWidget | Create (Vector3 length, byte lineWidth, bool depthTest) |
| 静态工厂方法:创建简化坐标轴 | |
| static AxWidget | Create (Vector3 length, byte lineWidth) |
| 静态工厂方法:创建简化坐标轴 | |
静态 Public 成员函数 继承自 AnyCAD.Foundation.GeneralSceneNode | |
| static new GeneralSceneNode | Cast (GfxObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.SceneNode | |
| static SceneNode | Cast (GfxObject obj) |
简化坐标轴控件类
简化的坐标轴显示控件,仅显示轴线不显示箭头和文本。 继承自 GeneralSceneNode,比AxisWidget更轻量。
|
virtual |
| AxWidget AnyCAD.Foundation.AxWidget.CloneAxWidget | ( | ) |
克隆简化坐标轴控件
深拷贝当前控件及其所有子节点
静态工厂方法:创建简化坐标轴
| length | XYZ轴的长度向量 |
| lineWidth | 线宽(像素) |
创建只有线条的简化坐标轴
|
static |
静态工厂方法:创建简化坐标轴
| length | XYZ轴的长度向量 |
| lineWidth | 线宽(像素) |
| depthTest | 是否启用深度测试,默认为true |
创建只有线条的简化坐标轴
| void AnyCAD.Foundation.AxWidget.HideAxis | ( | ) |
隐藏所有轴
将所有轴设置为不可见
| void AnyCAD.Foundation.AxWidget.SetPointColor | ( | Vector3 | clr | ) |
设置原点颜色
| clr | RGB颜色向量 |
设置坐标轴原点的显示颜色
| void AnyCAD.Foundation.AxWidget.ShowArrow | ( | uint | userId | ) |
只显示指定的轴
| userId | 轴的ID:'x'、'y'或'z',0表示显示所有轴 |
隐藏其他轴,只显示指定的单个轴