|
AnyCAD Rapid API 2026
Help you to create a better world!
|
PaletteWidget定义调色板 更多...
Public 成员函数 | |
| PaletteWidget (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| float | GetWidth () |
| void | SetWidth (float val) |
| float | GetHeight () |
| void | SetHeight (float val) |
| float | GetFontSize () |
| void | SetFontSize (float val) |
| uint | GetTextCount () |
| void | SetTextCount (uint val) |
| void | SetTitle (string title) |
| 设置标题 | |
| void | SetTextColor (Vector3 clr) |
| 设置文本颜色 | |
| void | AddItemText (string text) |
| 自定义颜色对应的文本,默认为数值 | |
| void | ClearItems () |
| 清空与颜色对应的文本列表 | |
| bool | Update (ColorLookupTable colorTable) |
| 根据颜色表更新调色板显示对象 | |
Public 成员函数 继承自 AnyCAD.Foundation.WindowNode2D | |
| WindowNode2D (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| WindowNode2D (SceneNode node, float cx, float cy) | |
| 构造 | |
| ViewPosition | GetPosition () |
| void | SetPosition (ViewPosition val) |
| void | SetPosition (float cx, float cy) |
| 设置位置 | |
| void | SetScreenPosition (float cx, float cy) |
Public 成员函数 继承自 AnyCAD.Foundation.SceneNode2D | |
| SceneNode2D (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| SceneNode2D (SceneNode node) | |
| SceneNode | GetNode () |
| void | SetNode (SceneNode val) |
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 () |
| virtual SceneNode | Clone () |
| 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 PaletteWidget | Cast (GfxObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.WindowNode2D | |
| static new WindowNode2D | Cast (GfxObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.SceneNode2D | |
| static new SceneNode2D | Cast (GfxObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.SceneNode | |
| static SceneNode | Cast (GfxObject obj) |
PaletteWidget定义调色板
Group: Interaction
| void AnyCAD.Simulate.PaletteWidget.AddItemText | ( | string | text | ) |
自定义颜色对应的文本,默认为数值
| text | 文本内容 |
| void AnyCAD.Simulate.PaletteWidget.SetTextColor | ( | Vector3 | clr | ) |
设置文本颜色
| clr | 颜色 |
| void AnyCAD.Simulate.PaletteWidget.SetTitle | ( | string | title | ) |
设置标题
| title |
| bool AnyCAD.Simulate.PaletteWidget.Update | ( | ColorLookupTable | colorTable | ) |
根据颜色表更新调色板显示对象
| colorTable |