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

The container to manage the SceneNode. 更多...

类 AnyCAD.Foundation.Scene 继承关系图:
AnyCAD.Foundation.GfxObject

Public 成员函数

 Scene (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
AABox GetWorldBBox ()
 
Matrix4 GetWorldTransform ()
 
void SetWorldTransform (Matrix4 val)
 
bool GetPickable ()
 
void SetPickable (bool val)
 
ulong GetUserId ()
 
void SetUserId (ulong val)
 
SceneNodeIterator CreateIterator ()
 创建迭代器以便利场景中的节点
 
ulong AddNode (SceneNode node)
 向场景中添加节点
 
bool RemoveNode (ulong nodeId)
 从场景中删除指定uuid的节点
 
bool RemoveNodeById (ulong nodeId)
 
bool RemoveNode (SceneNode node)
 从场景中删除指定节点对象
 
bool RemoveNodeByNode (SceneNode node)
 
SceneNode FindNode (ulong nodeId)
 在场景中搜索指定uuid的节点
 
SceneNode FindNodeByUserId (ulong userId)
 在场景中搜索指定userId的节点
 
SceneNode FindLeafNodeByUserId (ulong userId)
 在场景中搜索指定userId的叶子节点
 
void Clear ()
 清空场景中的所有节点
 
void UpdateWorld (Matrix4 viewScale)
 Update the world transfom and bounding box of the scene nodes.
 
bool IsEmpty ()
 
- Public 成员函数 继承自 AnyCAD.Foundation.GfxObject
 GfxObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
uint GetUuid ()
 

静态 Public 成员函数

static Scene Cast (GfxObject obj)
 

详细描述

The container to manage the SceneNode.

Group: Rendering

成员函数说明

◆ AddNode()

ulong AnyCAD.Foundation.Scene.AddNode ( SceneNode node)

向场景中添加节点

参数
node所添加的节点
返回
节点的uuid,若添加失败则返回0

◆ CreateIterator()

SceneNodeIterator AnyCAD.Foundation.Scene.CreateIterator ( )

创建迭代器以便利场景中的节点

返回
场景节点迭代器

◆ FindLeafNodeByUserId()

SceneNode AnyCAD.Foundation.Scene.FindLeafNodeByUserId ( ulong userId)

在场景中搜索指定userId的叶子节点

参数
userId叶子节点userId
返回
叶子节点对象,未找到时返回nullptr

◆ FindNode()

SceneNode AnyCAD.Foundation.Scene.FindNode ( ulong nodeId)

在场景中搜索指定uuid的节点

参数
nodeId节点uuid
返回
节点对象,未找到时返回nullptr

◆ FindNodeByUserId()

SceneNode AnyCAD.Foundation.Scene.FindNodeByUserId ( ulong userId)

在场景中搜索指定userId的节点

参数
userId节点userId
返回
节点对象,未找到时返回nullptr

◆ RemoveNode() [1/2]

bool AnyCAD.Foundation.Scene.RemoveNode ( SceneNode node)

从场景中删除指定节点对象

参数
node节点
返回
是否成功

◆ RemoveNode() [2/2]

bool AnyCAD.Foundation.Scene.RemoveNode ( ulong nodeId)

从场景中删除指定uuid的节点

参数
nodeId节点uuid
返回
是否成功