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

尺寸标注节点基类 更多...

类 AnyCAD.Foundation.DimensionNode 继承关系图:
AnyCAD.Foundation.AnnotationNode AnyCAD.Foundation.GroupSceneNode AnyCAD.Foundation.SceneNode AnyCAD.Foundation.GfxObject AnyCAD.Foundation.AlignedDimensionNode AnyCAD.Foundation.AngularDimensionNode AnyCAD.Foundation.LinearDimensionNode AnyCAD.Foundation.RadiusDimensionNode AnyCAD.Foundation.TagDimensionNode

Public 成员函数

 DimensionNode (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 DimensionNode ()
 构造函数
 
float GetFontHeight ()
 
void SetFontHeight (float val)
 
EnumFontType GetFontType ()
 
void SetFontType (EnumFontType val)
 
float GetExtensionBeyond ()
 
void SetExtensionBeyond (float val)
 
float GetExtensionOffset ()
 
void SetExtensionOffset (float val)
 
EnumDimensionArrowStyle GetArrowStyle ()
 
void SetArrowStyle (EnumDimensionArrowStyle val)
 
float GetArrowLength ()
 
void SetArrowLength (float val)
 
float GetDimGap ()
 
void SetDimGap (float val)
 
Vector3 GetColor ()
 
void SetColor (Vector3 val)
 
bool GetFixedTextSize ()
 
void SetFixedTextSize (bool val)
 
Matrix4 ToGlobalTrf ()
 获取全局变换矩阵
 
void SetCoordinate (Vector3 dirZ, Vector3 dirX)
 设置坐标系(通过方向向量)
 
void SetCoordinate (GAx2 ax)
 设置坐标系(通过Ax2轴系)
 
void SetCoordinate (GAx3 ax)
 设置坐标系(通过Ax3轴系)
 
override SceneNode Clone ()
 克隆场景节点
 
- Public 成员函数 继承自 AnyCAD.Foundation.AnnotationNode
 AnnotationNode (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 AnnotationNode ()
 构造函数
 
GAx2 GetLocalCS ()
 
void SetLocalCS (GAx2 val)
 
void SetTextW (string text)
 
string GetTextW ()
 
bool IsEmpty ()
 
virtual void Update ()
 
- Public 成员函数 继承自 AnyCAD.Foundation.GroupSceneNode
 GroupSceneNode (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
 GroupSceneNode ()
 构造函数
 
SceneNodeIterator CreateIterator ()
 创建子节点迭代器
 
void AddNode (SceneNode node)
 添加子节点
 
bool RemoveNode (ulong nodeId)
 移除子节点
 
SceneNode FindNode (ulong nodeId)
 查找子节点
 
void Clear ()
 清空所有子节点
 
SceneNode FindNodeByUserId (ulong userId)
 根据UserId查找子节点
 
uint GetCount ()
 获取子节点数量
 
override void UpdateTransform (Matrix4d parent)
 更新变换矩阵(重写基类方法)
 
override SceneNode Clone ()
 克隆场景节点(重写基类方法)
 
- 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 AABox ComputeBoundingBox (Matrix4d parent)
 
bool IsVisiblePath ()
 
- Public 成员函数 继承自 AnyCAD.Foundation.GfxObject
 GfxObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
uint GetUuid ()
 

静态 Public 成员函数

static new DimensionNode Cast (GfxObject obj)
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.AnnotationNode
static new AnnotationNode Cast (GfxObject obj)
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.GroupSceneNode
static new GroupSceneNode Cast (GfxObject obj)
 
- 静态 Public 成员函数 继承自 AnyCAD.Foundation.SceneNode
static SceneNode Cast (GfxObject obj)
 

详细描述

尺寸标注节点基类

所有尺寸标注类型的抽象基类,提供通用的标注属性(字体、箭头、颜色等) 和坐标系统设置功能。继承自 AnnotationNode。

成员函数说明

◆ Clone()

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

克隆场景节点

返回
克隆后的智能指针,包含所有属性的副本

重载 AnyCAD.Foundation.SceneNode .

AnyCAD.Foundation.LinearDimensionNode, AnyCAD.Foundation.RadiusDimensionNode , 以及 AnyCAD.Foundation.TagDimensionNode 重载.

◆ SetCoordinate() [1/3]

void AnyCAD.Foundation.DimensionNode.SetCoordinate ( GAx2 ax)

设置坐标系(通过Ax2轴系)

参数
ax二维轴系对象,定义原点、X方向和Z方向

◆ SetCoordinate() [2/3]

void AnyCAD.Foundation.DimensionNode.SetCoordinate ( GAx3 ax)

设置坐标系(通过Ax3轴系)

参数
ax三维轴系对象,定义原点、X方向、Y方向和Z方向

◆ SetCoordinate() [3/3]

void AnyCAD.Foundation.DimensionNode.SetCoordinate ( Vector3 dirZ,
Vector3 dirX )

设置坐标系(通过方向向量)

参数
dirZZ轴方向(法向)
dirXX轴方向

◆ ToGlobalTrf()

Matrix4 AnyCAD.Foundation.DimensionNode.ToGlobalTrf ( )

获取全局变换矩阵

返回
4x4变换矩阵,将局部坐标转换到世界坐标