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

SceneNode用来表示场景中可绘制对象的节点. 更多...

类 AnyCAD.Foundation.SceneNode 继承关系图:
AnyCAD.Foundation.GfxObject AnyCAD.Foundation.GeneralSceneNode AnyCAD.Foundation.GroupSceneNode AnyCAD.Foundation.PrimitiveSceneNode AnyCAD.Foundation.SceneNode2D AnyCAD.Foundation.ShapeSceneNode AnyCAD.Foundation.AxWidget AnyCAD.Foundation.AxisWidget AnyCAD.Foundation.BrepSceneNode AnyCAD.Foundation.DocumentSceneNode AnyCAD.Foundation.DraggableWidget AnyCAD.Foundation.AnnotationNode AnyCAD.Foundation.CoordinateGridWidget AnyCAD.Simulate.RobotArm AnyCAD.Simulate.RobotBody AnyCAD.Foundation.ImageSceneNode AnyCAD.Foundation.ParticleSceneNode AnyCAD.Foundation.SegmentsSceneNode AnyCAD.Foundation.TextSceneNode AnyCAD.Foundation.TagNode2D AnyCAD.Foundation.WindowNode2D AnyCAD.Foundation.ArrowWidget AnyCAD.Foundation.MeasureDistanceNode AnyCAD.PointCloud.PointCloudNode

Public 成员函数

 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 SceneNode Cast (GfxObject obj)
 

详细描述

SceneNode用来表示场景中可绘制对象的节点.

Group: Rendering

成员函数说明

◆ AddTransform()

void AnyCAD.Foundation.SceneNode.AddTransform ( Matrix4d trf)

multiply the transform to the existing one

参数
trfthe transform to multiply.

◆ GetChildrenPickable()

bool AnyCAD.Foundation.SceneNode.GetChildrenPickable ( )

子节点是否可选

返回
true可选

◆ GetContainer()

bool AnyCAD.Foundation.SceneNode.GetContainer ( )

是否为根节点容器

返回
true是

◆ GetCulling()

bool AnyCAD.Foundation.SceneNode.GetCulling ( )

是否参与场景剔除

返回
true参与剔除

◆ GetFixedSize()

bool AnyCAD.Foundation.SceneNode.GetFixedSize ( )

是否屏幕固定大小,不随相机缩放而缩放

返回
true固定大小

◆ GetFixedSizeByShader()

bool AnyCAD.Foundation.SceneNode.GetFixedSizeByShader ( )

是否屏幕固定大小,不随相机缩放而缩放

返回
true固定大小

◆ GetInfiniteSize()

bool AnyCAD.Foundation.SceneNode.GetInfiniteSize ( )

设置是否为无限大,无限大则不影响场景包围盒大小。

返回
true无限大。

◆ GetPhysics()

bool AnyCAD.Foundation.SceneNode.GetPhysics ( )

是否参与物理引擎计算。默认为否

返回
true 是

◆ GetPickable()

bool AnyCAD.Foundation.SceneNode.GetPickable ( )

是否可被选

返回
true可以被选择

◆ GetPickByBox()

bool AnyCAD.Foundation.SceneNode.GetPickByBox ( )

是否用包围盒选择,粗选(InfiniteSize对象始终用包围盒选择)

返回
true 不进行精确选择

◆ GetVisible()

bool AnyCAD.Foundation.SceneNode.GetVisible ( )

是否可见

返回
true可见

◆ SetCastShadow()

void AnyCAD.Foundation.SceneNode.SetCastShadow ( bool bEnabled)

设置投射阴影

参数
bEnabledtrue

◆ SetChildrenPickable()

void AnyCAD.Foundation.SceneNode.SetChildrenPickable ( bool bEnabled)

设置子节点是否可选

参数
bEnabledtrue可选

◆ SetContainer()

void AnyCAD.Foundation.SceneNode.SetContainer ( bool bEnabled)

设置是否为根节点容器

参数
bEnabledtrue是

◆ SetCulling()

void AnyCAD.Foundation.SceneNode.SetCulling ( bool bEnabled)

设置是否可被剔除

参数
bEnabledtrue可以被剔除

◆ SetFixedSize()

void AnyCAD.Foundation.SceneNode.SetFixedSize ( bool bEnabled)

设置相对屏幕显示固定大小

参数
bEnabledtrue固定大小

◆ SetFixedSizeByShader()

void AnyCAD.Foundation.SceneNode.SetFixedSizeByShader ( bool bEnabled)

设置相对屏幕显示固定大小

参数
bEnabledtrue固定大小

◆ SetInfiniteSize()

void AnyCAD.Foundation.SceneNode.SetInfiniteSize ( bool bEnabled)

设置是否为无限大

参数
bEnabledtrue无限大。

◆ SetPhysics()

void AnyCAD.Foundation.SceneNode.SetPhysics ( bool bEnabled)

设置是否参与物理计算。

参数
bEnabledtrue则参与

◆ SetPickable()

void AnyCAD.Foundation.SceneNode.SetPickable ( bool bEnabled)

设置是否可选

参数
bEnabledtrue可选

◆ SetPickByBox()

void AnyCAD.Foundation.SceneNode.SetPickByBox ( bool bEnabled)

设置是否选择包围盒就算选中,不精确选择

参数
bEnabledtrue

◆ SetTransform()

void AnyCAD.Foundation.SceneNode.SetTransform ( Matrix4d trf)

设置变换矩阵。覆盖之前的矩阵

参数
trf矩阵。

◆ SetVisible()

void AnyCAD.Foundation.SceneNode.SetVisible ( bool bEnabled)

设置可见性

参数
bEnabledtrue可见

◆ UpdateTransform()

virtual void AnyCAD.Foundation.SceneNode.UpdateTransform ( Matrix4d parent)
virtual

Update the local transform.

参数
parentthe parent node transform.

AnyCAD.Foundation.GroupSceneNode 重载.