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

箭头控件类 更多...

类 AnyCAD.Foundation.ArrowWidget 继承关系图:
AnyCAD.Foundation.ShapeSceneNode AnyCAD.Foundation.SceneNode AnyCAD.Foundation.GfxObject

Public 成员函数

 ArrowWidget (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
ulong GetTargetId ()
 
float GetRadius ()
 
void SetRadius (float val)
 
float GetLength ()
 
void SetLength (float val)
 
Vector3 GetPosition ()
 
void SetPosition (Vector3 val)
 
Vector3 GetDirection ()
 
void SetDirection (Vector3 val)
 
Vector3 GetOrigin ()
 
void SetOrigin (Vector3 val)
 
bool GetReverseStart ()
 
void SetReverseStart (bool val)
 
void SetLocation (Vector3 position, Vector3 direction)
 设置箭头位置和方向
 
void UpdateByOrigin ()
 根据原点更新箭头
 
void Update (float scale)
 更新箭头几何
 
void Update ()
 更新箭头几何
 
override SceneNode Clone ()
 
- Public 成员函数 继承自 AnyCAD.Foundation.ShapeSceneNode
 ShapeSceneNode (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 ShapeSceneNode (CompoundShape shape)
 构造函数
 
CompoundShape GetShape ()
 
void SetShape (CompoundShape shape)
 设置形状对象
 
PrimitiveShapeList GetPrimitives ()
 获取所有基本形状列表
 
PrimitiveShape GetPrimitive (uint idx)
 获取指定索引的基本形状
 
uint GetPrimitiveCount ()
 获取基本形状的数量
 
void SetMaterial (MaterialInstance pMaterial)
 设置统一材质
 
void SetColor (Vector3 color)
 设置颜色
 
- 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 ArrowWidget Cast (GfxObject obj)
 
static ArrowWidget Create (float radius, float length, MaterialInstance material)
 静态工厂方法:创建箭头控件
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.ShapeSceneNode
static new ShapeSceneNode Cast (GfxObject obj)
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.SceneNode
static SceneNode Cast (GfxObject obj)
 

详细描述

箭头控件类

显示单向或双向箭头的控件,用于指示方向或标注距离。 继承自 ShapeSceneNode,支持设置位置、方向、长度和半径。

成员函数说明

◆ Clone()

override SceneNode AnyCAD.Foundation.ArrowWidget.Clone ( )
virtual

◆ Create()

static ArrowWidget AnyCAD.Foundation.ArrowWidget.Create ( float radius,
float length,
MaterialInstance material )
static

静态工厂方法:创建箭头控件

参数
radius箭头半径
length箭头长度
material材质实例指针
返回
创建的箭头控件智能指针

创建标准形状的箭头控件

◆ SetLocation()

void AnyCAD.Foundation.ArrowWidget.SetLocation ( Vector3 position,
Vector3 direction )

设置箭头位置和方向

参数
position箭头的位置坐标
direction箭头的方向向量

同时设置箭头的位置和朝向

◆ Update() [1/2]

void AnyCAD.Foundation.ArrowWidget.Update ( )

更新箭头几何

根据当前属性重新生成箭头的几何数据

◆ Update() [2/2]

void AnyCAD.Foundation.ArrowWidget.Update ( float scale)

更新箭头几何

参数
scale缩放比例,默认为1.0

根据当前属性重新生成箭头的几何数据

◆ UpdateByOrigin()

void AnyCAD.Foundation.ArrowWidget.UpdateByOrigin ( )

根据原点更新箭头

使用Origin属性重新计算箭头的位置和方向