载入中...
搜索中...
未找到
eve::scene::Scene类 参考

Declarative scene module (eve.Scene). 更多...

#include <Scene.h>

类 eve::scene::Scene 继承关系图:
eve::Module

Public 成员函数

 Module_REG (Scene)
 
 Scene ()
 Scene.
 
 ~Scene () override
 Tears down script bindings and delayed-detach state.
 
eve::Result< SceneHost * > mountAs (const std::string &name, NodeDesc root)
 Creates/replaces a named host from a NodeDesc tree and selects it.
 
eve::Result< SceneHost * > mount (NodeDesc root)
 Mounts the tree as the default host and selects it.
 
eve::Result< SceneHost * > remount (NodeDesc root)
 Replaces the selected host's tree.
 
eve::Result< SceneHost * > remountReconcile (NodeDesc root)
 Reconciles the selected host, reporting whether replacement failed.
 
eve::Result< SceneHost * > remountAs (const std::string &name, NodeDesc root)
 Creates/replaces a named host through the canonical mount path.
 
bool select (const std::string &name)
 Selects a named host; false when it does not exist.
 
eve::Result< SceneHost * > findHost (const std::string &name) const
 Finds a host by name with an explicit not-found status.
 
eve::Result< SceneHost * > findHostByOwner (uint32_t ownerId) const
 Finds the host bound to an owner id with an explicit status.
 
SceneHost * current () const noexcept
 Currently selected borrowed host, or nullptr.
 
void bindOwner (uint32_t ownerId)
 Binds the selected host to a UI/scene owner id.
 
void setHostVisible (bool visible)
 Shows/hides every host (or the selected one when a host is selected).
 
void setHostLayer (int layer)
 Sets the render layer of every host (or the selected one).
 
void updateTransforms ()
 Propagate transforms (+ link sync) for all hosts (or current if selected).
 
void updateTransformsAll ()
 Propagate transforms for every host regardless of selection.
 
bool setNodePosition (const std::string &id, float x, float y, float z)
 Script-friendly TRS setters on the current host; each marks the transform dirty.
 
bool setNodeRotation (const std::string &id, float yaw, float pitch, float roll)
 Sets the local rotation (yaw/pitch/roll in degrees) of a node.
 
bool setNodeScale (const std::string &id, float sx, float sy, float sz)
 Sets the local scale of a node.
 
bool setNodeVisible (const std::string &id, bool visible)
 Shows/hides a node.
 
bool linkRenderable2D (const std::string &nodeId, graphics::Renderable2D *r)
 Links a 2D renderable to a node in the current host.
 
bool linkRenderable3D (const std::string &nodeId, graphics::Renderable3D *r)
 Links a 3D renderable to a node in the current host.
 
bool unlinkNode (const std::string &nodeId)
 Removes every link on a node in the current host.
 
bool linkRenderable2DAt (const std::string &hostName, const std::string &nodeId, graphics::Renderable2D *r)
 Link renderable 2 d at.
 
bool linkRenderable3DAt (const std::string &hostName, const std::string &nodeId, graphics::Renderable3D *r)
 Link renderable 3 d at.
 
bool linkPhysics2DAt (const std::string &hostName, const std::string &nodeId, physics::Body *b, const std::string &mode)
 Link physics 2 d at.
 
bool linkPhysics3DAt (const std::string &hostName, const std::string &nodeId, physics::Body3D *b, const std::string &mode)
 Link physics 3 d at.
 
bool linkCamera3DAt (const std::string &hostName, const std::string &nodeId, graphics::Camera3D *c)
 Link camera 3 d at.
 
bool linkAudio3DAt (const std::string &hostName, const std::string &nodeId, audio::Source *s)
 Link audio 3 d at.
 
bool unlinkNodeAt (const std::string &hostName, const std::string &nodeId)
 Remove every link on the node.
 
bool unlinkNodeKindAt (const std::string &hostName, const std::string &nodeId, const std::string &kind)
 Remove links of one kind ("renderable2d"|"renderable3d"|"physics2d"|...).
 
int linkCountAt (const std::string &hostName, const std::string &nodeId)
 Link count at.
 
Result< void > linkScriptAt (const std::string &hostName, const std::string &nodeId, const std::string &providerName, const std::string &mode)
 Link a published script provider to a node as the "script" link kind.
 
std::vector< float > getNodePositionAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node position at.
 
std::vector< float > getNodeRotationAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node rotation at.
 
std::vector< float > getNodeScaleAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node scale at.
 
bool getNodeVisibleAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node visible at.
 
std::vector< float > getNodeWorldPositionAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node world position at.
 
std::vector< float > getNodeWorldRotationAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node world rotation at.
 
std::vector< float > getNodeWorldScaleAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node world scale at.
 
std::vector< float > localToWorldAt (const std::string &hostName, const std::string &nodeId, float x, float y, float z) const
 Local to world at.
 
std::vector< float > worldToLocalAt (const std::string &hostName, const std::string &nodeId, float x, float y, float z) const
 World to local at.
 
bool setNodeParentAt (const std::string &hostName, const std::string &childId, const std::string &parentId)
 Reparent by id; empty parentId detaches. Cycle-safe.
 
bool removeNodeAt (const std::string &hostName, const std::string &nodeId)
 Detach node from its parent (arena node stays; rebuild to delete).
 
eve::Result< void > removeLeafAt (const std::string &hostName, const std::string &nodeId)
 Delete a leaf node and release its scene-owned script/ECS companion.
 
bool addChildAt (const std::string &hostName, const std::string &parentId, const std::string &childId)
 Adds child at.
 
bool removeChildAt (const std::string &hostName, const std::string &parentId, const std::string &childId)
 Removes child at.
 
bool setNodeQuaternionAt (const std::string &hostName, const std::string &nodeId, float qx, float qy, float qz, float qw)
 Sets the node quaternion at.
 
std::vector< float > getNodeQuaternionAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node quaternion at.
 
bool setNodeLookAtAt (const std::string &hostName, const std::string &nodeId, float tx, float ty, float tz)
 Orient node so its local +Z axis points at (tx,ty,tz).
 
bool addNodeTagAt (const std::string &hostName, const std::string &nodeId, const std::string &tag)
 Adds node tag at.
 
bool removeNodeTagAt (const std::string &hostName, const std::string &nodeId, const std::string &tag)
 Removes node tag at.
 
bool hasNodeTagAt (const std::string &hostName, const std::string &nodeId, const std::string &tag) const
 True when node tag at.
 
std::vector< std::string > getNodeTagsAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node tags at.
 
std::vector< std::string > collectIdsByTagAt (const std::string &hostName, const std::string &tag) const
 Collect ids by tag at.
 
bool setNodeLayerAt (const std::string &hostName, const std::string &nodeId, int layer)
 Sets the node layer at.
 
int getNodeLayerAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node layer at.
 
bool setNodeEventHandlerAt (const std::string &hostName, ssq::Object cb)
 Register a script callback for node lifecycle events on a host: The callback receives action, nodeId and parentId; action is one of {"node_added","node_removed","node_moved","node_changed"}. Pass null cb to clear. Rooted for the process lifetime.
 
bool setNodeBoundsAt (const std::string &hostName, const std::string &nodeId, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
 Sets the node bounds at.
 
bool hasNodeBoundsAt (const std::string &hostName, const std::string &nodeId) const
 True when node bounds at.
 
std::vector< float > getNodeBoundsAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node bounds at.
 
std::string serializeHostAt (const std::string &hostName) const
 Serialize host at.
 
bool deserializeHostAt (const std::string &hostName, const std::string &json)
 Deserialize host at.
 
std::string pickRayAt (const std::string &hostName, float ox, float oy, float oz, float dx, float dy, float dz) const
 Nearest node id hit by a world ray (nodes with bounds), or "".
 
std::string pickScreenAt (const std::string &hostName, graphics::Camera3D *cam, float screenX, float screenY, float viewW, float viewH) const
 Screen-space picking through a Camera3D (camera.screenToRay).
 
std::vector< std::string > collectFrustumIdsAt (const std::string &hostName, graphics::Camera3D *cam, float viewW, float viewH) const
 Ids of nodes whose world AABB intersects the camera frustum.
 
Result< int > applyPcgTerrainCullingAt (const std::string &hostName, graphics::Camera3D *cam, float viewW, float viewH, const std::string &tag)
 Apply PcgScenePlayer frustum visibility to bounded nodes carrying a tag.
 
bool syncSpatialIndexAt (const std::string &hostName, spatial::Octree *ot) const
 Insert every bounded node's world AABB into an octree (id = arena index).
 
std::string nodeIdFromSpatialIdAt (const std::string &hostName, int index) const
 Map a spatial-index id (arena index) back to a node id.
 
bool hasNode (const std::string &id)
 True when node.
 
int getNodeCount ()
 Returns the node count.
 
std::string getRootId ()
 Returns the root id.
 
std::string getParentId (const std::string &id)
 Returns the parent id.
 
int getChildCount (const std::string &id)
 Returns the child count.
 
std::string getChildIdAt (const std::string &parentId, int childOrdinal)
 Returns the child id at.
 
std::string findIdByName (const std::string &name)
 Finds id by name.
 
std::string findIdByPath (const std::string &path)
 Finds id by path.
 
std::string getNodePath (const std::string &id)
 Returns the node path.
 
bool isAncestor (const std::string &ancestorId, const std::string &nodeId)
 True when ancestor.
 
bool isDescendant (const std::string &nodeId, const std::string &ancestorId)
 True when descendant.
 
std::vector< std::string > collectIds ()
 Collect ids.
 
std::vector< std::string > collectIdsFrom (const std::string &id)
 Collect ids from.
 
std::vector< std::string > collectIdsByName (const std::string &name)
 Collect ids by name.
 
std::vector< std::string > collectIdsVisible (bool visible)
 Collect ids visible.
 
std::vector< std::string > collectChildIds (const std::string &parentId)
 Collect child ids.
 
std::vector< std::string > walkDepthFirstIds ()
 DFS order of ids under root (same as collectIds). Kept for script naming clarity.
 
std::vector< std::string > walkBreadthFirstIds ()
 Walk breadth first ids.
 
void beginBuild ()
 Begins build.
 
void beginNode (const std::string &id, const std::string &name="")
 Begins node.
 
void beginGroup (const std::string &id="")
 Begins group.
 
void end ()
 Ends .
 
void addNode (const std::string &id, const std::string &name="")
 Adds node.
 
void setBuildPosition (float x, float y, float z=0.f)
 Sets the build position.
 
void setBuildRotation (float yaw, float pitch=0.f, float roll=0.f)
 Sets the build rotation.
 
void setBuildScale (float sx, float sy, float sz=1.f)
 Sets the build scale.
 
void setBuildSpace (const std::string &space)
 Sets the build space.
 
void setBuildVisible (bool visible)
 Sets the build visible.
 
bool mountBuild ()
 Mounts build.
 
bool mountBuildAs (const std::string &name)
 Mounts build as.
 
bool remountBuildAs (const std::string &name)
 Remount build as.
 
SceneHost * resolveHost (const std::string &hostName) const
 Host-qualified resolution: empty hostName → currently selected host.
 
bool rootEntity (const std::string &hostName, const std::string &nodeId, ssq::Object instance)
 Root one script instance on a node (creates SceneObject lazily).
 
bool unrootEntityAt (const std::string &hostName, const std::string &nodeId, int index)
 Remove a rooted script instance by its index in the binding list.
 
int forEachEntity (const std::string &hostName, const std::string &nodeId, ssq::Object cb)
 Call cb(instance, index) for every rooted instance; returns count.
 
std::vector< ssq::Object > scriptEntitiesAt (const std::string &hostName, const std::string &nodeId) const
 取某个节点上挂着的脚本实体实例(eve.SceneEntity 子类实例)的**原生**快照。
 
std::vector< ScriptComponentInstanceState > scriptComponentStatesAt (const std::string &hostName, const std::string &nodeId) const
 一个节点上所有脚本实体的**已登记**组件状态(编辑器/工具面)。
 
void updateScripts (float dt)
 updateTransformsAll() + call update(dt) on every rooted instance.
 
eve::Result< void > scheduleDetachEntityAt (const std::string &hostName, const std::string &nodeId, ssq::Object instance)
 Queue a script instance for detach at the end of the current/next updateScripts.
 
void flushDelayedDetaches ()
 Drain the delayed-detach queue (called automatically by updateScripts).
 
std::string currentHostName () const
 Current host name.
 
SceneNodeRef * getNodeRefAt (const std::string &hostName, const std::string &nodeId) const
 Returns the node ref at.
 
SceneNodeRef * getNodeRefByPathAt (const std::string &hostName, const std::string &path) const
 Returns the node ref by path at.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Declarative scene module (eve.Scene).

Isomorphic to eve::ui::UI: named SceneHost graphs, NodeDesc + SceneComponent.build, mount / remountReconcile / beginBuild. TransformSystem propagates world matrices and syncs linked Renderable2D/3D transforms.

在文件 Scene.h 第 52 行定义.

构造及析构函数说明

◆ Scene()

◆ ~Scene()

eve::scene::Scene::~Scene ( )
override

Tears down script bindings and delayed-detach state.

在文件 Scene.cpp 第 49 行定义.

引用了 eve::scene::invalidateSceneSearch().

成员函数说明

◆ addChildAt()

bool eve::scene::Scene::addChildAt ( const std::string &  hostName,
const std::string &  parentId,
const std::string &  childId 
)

Adds child at.

在文件 SceneNodes.cpp 第 283 行定义.

引用了 h, ok, parentId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ addNode()

void eve::scene::Scene::addNode ( const std::string &  id,
const std::string &  name = "" 
)

Adds node.

在文件 Scene.cpp 第 798 行定义.

◆ addNodeTagAt()

bool eve::scene::Scene::addNodeTagAt ( const std::string &  hostName,
const std::string &  nodeId,
const std::string &  tag 
)

Adds node tag at.

在文件 SceneNodes.cpp 第 342 行定义.

引用了 h, n, nodeId, resolveHost() , 以及 tag.

◆ applyPcgTerrainCullingAt()

Result< int > eve::scene::Scene::applyPcgTerrainCullingAt ( const std::string &  hostName,
graphics::Camera3D *  cam,
float  viewW,
float  viewH,
const std::string &  tag 
)

Apply PcgScenePlayer frustum visibility to bounded nodes carrying a tag.

参数
hostNameScene host to mutate.
camBorrowed camera used only during this call.
viewWPositive viewport width.
viewHPositive viewport height.
tagTerrain classification tag, such as terrain or mesh-terrain.
返回
Number of visibility values changed. @ownership The caller retains the camera; this function retains no pointer. @lifetime Camera must remain valid for the duration of the call.

在文件 SceneCameraQueries.cpp 第 64 行定义.

引用了 eve::scene::aabbIntersectsFrustum(), clip, eve::Diagnostic::error(), eve::Result< T >::failure(), host, eve::InvalidArgument, node, resolveHost(), eve::Result< T >::success(), tag, eve::Unsupported, visible , 以及 eve::scene::worldBoundsOf().

◆ beginBuild()

void eve::scene::Scene::beginBuild ( )

Begins build.

在文件 Scene.cpp 第 750 行定义.

被这些函数引用 setHostLayer().

◆ beginGroup()

void eve::scene::Scene::beginGroup ( const std::string &  id = "")

Begins group.

在文件 Scene.cpp 第 777 行定义.

◆ beginNode()

void eve::scene::Scene::beginNode ( const std::string &  id,
const std::string &  name = "" 
)

Begins node.

在文件 Scene.cpp 第 771 行定义.

◆ bindOwner()

void eve::scene::Scene::bindOwner ( uint32_t  ownerId)

Binds the selected host to a UI/scene owner id.

在文件 Scene.cpp 第 689 行定义.

◆ collectChildIds()

std::vector< std::string > eve::scene::Scene::collectChildIds ( const std::string &  parentId)

Collect child ids.

在文件 SceneNodes.cpp 第 598 行定义.

引用了 eve::scene::SceneHost::getChildIds(), h , 以及 parentId.

◆ collectFrustumIdsAt()

std::vector< std::string > eve::scene::Scene::collectFrustumIdsAt ( const std::string &  hostName,
graphics::Camera3D *  cam,
float  viewW,
float  viewH 
) const

Ids of nodes whose world AABB intersects the camera frustum.

在文件 SceneCameraQueries.cpp 第 45 行定义.

引用了 eve::scene::aabbIntersectsFrustum(), clip, h, n, out, resolveHost() , 以及 eve::scene::worldBoundsOf().

◆ collectIds()

std::vector< std::string > eve::scene::Scene::collectIds ( )

Collect ids.

在文件 SceneNodes.cpp 第 577 行定义.

引用了 eve::scene::SceneHost::collectIds() , 以及 h.

被这些函数引用 walkDepthFirstIds().

◆ collectIdsByName()

std::vector< std::string > eve::scene::Scene::collectIdsByName ( const std::string &  name)

Collect ids by name.

在文件 SceneNodes.cpp 第 588 行定义.

引用了 eve::scene::SceneHost::collectIdsByName(), h , 以及 name.

◆ collectIdsByTagAt()

std::vector< std::string > eve::scene::Scene::collectIdsByTagAt ( const std::string &  hostName,
const std::string &  tag 
) const

Collect ids by tag at.

在文件 SceneNodes.cpp 第 371 行定义.

引用了 h, n, out, resolveHost() , 以及 tag.

◆ collectIdsFrom()

std::vector< std::string > eve::scene::Scene::collectIdsFrom ( const std::string &  id)

Collect ids from.

在文件 SceneNodes.cpp 第 582 行定义.

引用了 eve::scene::SceneHost::collectIdsFrom() , 以及 h.

◆ collectIdsVisible()

std::vector< std::string > eve::scene::Scene::collectIdsVisible ( bool  visible)

Collect ids visible.

在文件 SceneNodes.cpp 第 593 行定义.

引用了 eve::scene::SceneHost::collectIdsVisible(), h , 以及 visible.

◆ current()

SceneHost * eve::scene::Scene::current ( ) const
inlinenoexcept

Currently selected borrowed host, or nullptr.

在文件 Scene.h 第 101 行定义.

◆ currentHostName()

std::string eve::scene::Scene::currentHostName ( ) const

Current host name.

在文件 Scene.cpp 第 1138 行定义.

被这些函数引用 linkRenderable2D(), linkRenderable3D() , 以及 unlinkNode().

◆ deserializeHostAt()

bool eve::scene::Scene::deserializeHostAt ( const std::string &  hostName,
const std::string &  json 
)

Deserialize host at.

在文件 Scene.cpp 第 743 行定义.

◆ end()

void eve::scene::Scene::end ( )

Ends .

在文件 Scene.cpp 第 783 行定义.

◆ findHost()

eve::Result< SceneHost * > eve::scene::Scene::findHost ( const std::string &  name) const

Finds a host by name with an explicit not-found status.

返回
Borrowed ECS-owned host, or a structured not-found/argument failure.

在文件 Scene.cpp 第 670 行定义.

◆ findHostByOwner()

eve::Result< SceneHost * > eve::scene::Scene::findHostByOwner ( uint32_t  ownerId) const

Finds the host bound to an owner id with an explicit status.

返回
Borrowed ECS-owned host, or a structured not-found/argument failure.

在文件 Scene.cpp 第 679 行定义.

引用了 d.

◆ findIdByName()

std::string eve::scene::Scene::findIdByName ( const std::string &  name)

Finds id by name.

在文件 SceneNodes.cpp 第 548 行定义.

引用了 h, n , 以及 name.

◆ findIdByPath()

std::string eve::scene::Scene::findIdByPath ( const std::string &  path)

Finds id by path.

在文件 SceneNodes.cpp 第 555 行定义.

引用了 h, n , 以及 path.

◆ flushDelayedDetaches()

void eve::scene::Scene::flushDelayedDetaches ( )

Drain the delayed-detach queue (called automatically by updateScripts).

在文件 Scene.cpp 第 1111 行定义.

◆ forEachEntity()

int eve::scene::Scene::forEachEntity ( const std::string &  hostName,
const std::string &  nodeId,
ssq::Object  cb 
)

Call cb(instance, index) for every rooted instance; returns count.

在文件 Scene.cpp 第 960 行定义.

◆ getChildCount()

int eve::scene::Scene::getChildCount ( const std::string &  id)

Returns the child count.

在文件 SceneNodes.cpp 第 536 行定义.

引用了 eve::scene::SceneHost::getChildCountById() , 以及 h.

◆ getChildIdAt()

std::string eve::scene::Scene::getChildIdAt ( const std::string &  parentId,
int  childOrdinal 
)

Returns the child id at.

在文件 SceneNodes.cpp 第 541 行定义.

引用了 c, h, eve::scene::SceneNode::id , 以及 parentId.

◆ getNodeBoundsAt()

std::vector< float > eve::scene::Scene::getNodeBoundsAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node bounds at.

在文件 SceneNodes.cpp 第 461 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeCount()

int eve::scene::Scene::getNodeCount ( )

Returns the node count.

在文件 SceneNodes.cpp 第 517 行定义.

引用了 eve::scene::SceneHost::getNodeCount() , 以及 h.

◆ getNodeLayerAt()

int eve::scene::Scene::getNodeLayerAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node layer at.

在文件 SceneNodes.cpp 第 391 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodePath()

std::string eve::scene::Scene::getNodePath ( const std::string &  id)

Returns the node path.

在文件 SceneNodes.cpp 第 562 行定义.

引用了 eve::scene::SceneHost::getPathById() , 以及 h.

◆ getNodePositionAt()

std::vector< float > eve::scene::Scene::getNodePositionAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node position at.

在文件 SceneNodes.cpp 第 178 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeQuaternionAt()

std::vector< float > eve::scene::Scene::getNodeQuaternionAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node quaternion at.

在文件 SceneNodes.cpp 第 312 行定义.

引用了 h, n, nodeId, q , 以及 resolveHost().

◆ getNodeRefAt()

SceneNodeRef * eve::scene::Scene::getNodeRefAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node ref at.

在文件 Scene.cpp 第 1142 行定义.

◆ getNodeRefByPathAt()

SceneNodeRef * eve::scene::Scene::getNodeRefByPathAt ( const std::string &  hostName,
const std::string &  path 
) const

Returns the node ref by path at.

在文件 Scene.cpp 第 1150 行定义.

◆ getNodeRotationAt()

std::vector< float > eve::scene::Scene::getNodeRotationAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node rotation at.

在文件 SceneNodes.cpp 第 186 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeScaleAt()

std::vector< float > eve::scene::Scene::getNodeScaleAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node scale at.

在文件 SceneNodes.cpp 第 194 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeTagsAt()

std::vector< std::string > eve::scene::Scene::getNodeTagsAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node tags at.

在文件 SceneNodes.cpp 第 363 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeVisibleAt()

bool eve::scene::Scene::getNodeVisibleAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node visible at.

在文件 SceneNodes.cpp 第 202 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeWorldPositionAt()

std::vector< float > eve::scene::Scene::getNodeWorldPositionAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node world position at.

在文件 SceneNodes.cpp 第 209 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ getNodeWorldRotationAt()

std::vector< float > eve::scene::Scene::getNodeWorldRotationAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node world rotation at.

在文件 SceneNodes.cpp 第 217 行定义.

引用了 h, n, nodeId, pos, resolveHost() , 以及 scale.

◆ getNodeWorldScaleAt()

std::vector< float > eve::scene::Scene::getNodeWorldScaleAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

Returns the node world scale at.

在文件 SceneNodes.cpp 第 227 行定义.

引用了 h, n, nodeId, pos, resolveHost() , 以及 scale.

◆ getParentId()

std::string eve::scene::Scene::getParentId ( const std::string &  id)

Returns the parent id.

在文件 SceneNodes.cpp 第 529 行定义.

引用了 h, eve::scene::SceneNode::id , 以及 p.

◆ getRootId()

std::string eve::scene::Scene::getRootId ( )

Returns the root id.

在文件 SceneNodes.cpp 第 522 行定义.

引用了 h, eve::scene::SceneNode::id , 以及 r.

◆ hasNode()

bool eve::scene::Scene::hasNode ( const std::string &  id)

True when node.

在文件 SceneNodes.cpp 第 512 行定义.

引用了 h , 以及 eve::scene::SceneHost::hasNode().

◆ hasNodeBoundsAt()

bool eve::scene::Scene::hasNodeBoundsAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

True when node bounds at.

在文件 SceneNodes.cpp 第 455 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ hasNodeTagAt()

bool eve::scene::Scene::hasNodeTagAt ( const std::string &  hostName,
const std::string &  nodeId,
const std::string &  tag 
) const

True when node tag at.

在文件 SceneNodes.cpp 第 356 行定义.

引用了 h, n, nodeId, resolveHost() , 以及 tag.

◆ isAncestor()

bool eve::scene::Scene::isAncestor ( const std::string &  ancestorId,
const std::string &  nodeId 
)

True when ancestor.

在文件 SceneNodes.cpp 第 567 行定义.

引用了 h, eve::scene::SceneHost::isAncestorOfById() , 以及 nodeId.

◆ isDescendant()

bool eve::scene::Scene::isDescendant ( const std::string &  nodeId,
const std::string &  ancestorId 
)

True when descendant.

在文件 SceneNodes.cpp 第 572 行定义.

引用了 h, eve::scene::SceneHost::isDescendantOfById() , 以及 nodeId.

◆ linkAudio3DAt()

bool eve::scene::Scene::linkAudio3DAt ( const std::string &  hostName,
const std::string &  nodeId,
audio::Source *  s 
)

Link audio 3 d at.

在文件 SceneNodes.cpp 第 144 行定义.

引用了 h, nodeId, resolveHost(), s , 以及 eve::scene::TransformSystem::updateHost().

◆ linkCamera3DAt()

bool eve::scene::Scene::linkCamera3DAt ( const std::string &  hostName,
const std::string &  nodeId,
graphics::Camera3D *  c 
)

Link camera 3 d at.

在文件 SceneNodes.cpp 第 135 行定义.

引用了 c, h, nodeId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ linkCountAt()

int eve::scene::Scene::linkCountAt ( const std::string &  hostName,
const std::string &  nodeId 
)

Link count at.

在文件 SceneNodes.cpp 第 169 行定义.

引用了 h, nodeId , 以及 resolveHost().

◆ linkPhysics2DAt()

bool eve::scene::Scene::linkPhysics2DAt ( const std::string &  hostName,
const std::string &  nodeId,
physics::Body *  b,
const std::string &  mode 
)

Link physics 2 d at.

在文件 SceneNodes.cpp 第 117 行定义.

引用了 b, h, nodeId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ linkPhysics3DAt()

bool eve::scene::Scene::linkPhysics3DAt ( const std::string &  hostName,
const std::string &  nodeId,
physics::Body3D *  b,
const std::string &  mode 
)

Link physics 3 d at.

在文件 SceneNodes.cpp 第 126 行定义.

引用了 b, h, nodeId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ linkRenderable2D()

bool eve::scene::Scene::linkRenderable2D ( const std::string &  nodeId,
graphics::Renderable2D *  r 
)

Links a 2D renderable to a node in the current host.

在文件 SceneNodes.cpp 第 83 行定义.

引用了 currentHostName(), linkRenderable2DAt(), nodeId , 以及 r.

◆ linkRenderable2DAt()

bool eve::scene::Scene::linkRenderable2DAt ( const std::string &  hostName,
const std::string &  nodeId,
graphics::Renderable2D *  r 
)

Link renderable 2 d at.

在文件 SceneNodes.cpp 第 99 行定义.

引用了 h, nodeId, r, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

被这些函数引用 linkRenderable2D().

◆ linkRenderable3D()

bool eve::scene::Scene::linkRenderable3D ( const std::string &  nodeId,
graphics::Renderable3D *  r 
)

Links a 3D renderable to a node in the current host.

在文件 SceneNodes.cpp 第 87 行定义.

引用了 currentHostName(), linkRenderable3DAt(), nodeId , 以及 r.

◆ linkRenderable3DAt()

bool eve::scene::Scene::linkRenderable3DAt ( const std::string &  hostName,
const std::string &  nodeId,
graphics::Renderable3D *  r 
)

Link renderable 3 d at.

在文件 SceneNodes.cpp 第 108 行定义.

引用了 h, nodeId, r, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

被这些函数引用 linkRenderable3D().

◆ linkScriptAt()

Result< void > eve::scene::Scene::linkScriptAt ( const std::string &  hostName,
const std::string &  nodeId,
const std::string &  providerName,
const std::string &  mode 
)

Link a published script provider to a node as the "script" link kind.

The provider is published through eve.provider first; this call only attaches it. The node then drives the provider through onNodeTransform(...), and a retired provider generation stops being driven and its link is dropped.

参数
hostNameHost that owns the node.
nodeIdNode to attach to.
providerNameName the script provider was published under.
mode"node" (node drives the provider) or "body" (the provider's nodeTransform() drives the node).
返回
Success, or NotFound when the host, the node or the published provider is missing. @cost One link insert plus one transform update of the host. Link-time only; the per-frame cost is the dispatch described in scene/ScriptLinks.cpp.
备注
The link target is a process-lifetime record, never a script pointer: a retired generation must stay answerable until the scene has purged the link.

在文件 ScriptLinks.cpp 第 247 行定义.

引用了 eve::scene::findLinkKind(), generation, host, kind, nodeId, provider , 以及 registry.

被这些函数引用 eve::scene::exposeScriptLinkBindings().

◆ localToWorldAt()

std::vector< float > eve::scene::Scene::localToWorldAt ( const std::string &  hostName,
const std::string &  nodeId,
float  x,
float  y,
float  z 
) const

Local to world at.

在文件 SceneNodes.cpp 第 237 行定义.

引用了 h, n, nodeId, p, resolveHost(), x, y , 以及 z.

◆ Module_REG()

eve::scene::Scene::Module_REG ( Scene  )

◆ mount()

eve::Result< SceneHost * > eve::scene::Scene::mount ( NodeDesc  root)

Mounts the tree as the default host and selects it.

返回
Borrowed ECS-owned host, or a structured failure.

在文件 Scene.cpp 第 616 行定义.

引用了 h , 以及 visible.

◆ mountAs()

eve::Result< SceneHost * > eve::scene::Scene::mountAs ( const std::string &  name,
NodeDesc  root 
)

Creates/replaces a named host from a NodeDesc tree and selects it.

返回
A borrowed host owned by the ECS scene table, or a structured failure.
备注
The returned pointer remains valid until that host is destroyed; nodes are invalidated by a subsequent tree replacement/reconcile.

在文件 Scene.cpp 第 597 行定义.

◆ mountBuild()

bool eve::scene::Scene::mountBuild ( )

Mounts build.

在文件 Scene.cpp 第 830 行定义.

◆ mountBuildAs()

bool eve::scene::Scene::mountBuildAs ( const std::string &  name)

Mounts build as.

在文件 Scene.cpp 第 839 行定义.

◆ nodeIdFromSpatialIdAt()

std::string eve::scene::Scene::nodeIdFromSpatialIdAt ( const std::string &  hostName,
int  index 
) const

Map a spatial-index id (arena index) back to a node id.

在文件 SceneNodes.cpp 第 506 行定义.

引用了 h, eve::scene::SceneNode::id, index, n , 以及 resolveHost().

◆ pickRayAt()

std::string eve::scene::Scene::pickRayAt ( const std::string &  hostName,
float  ox,
float  oy,
float  oz,
float  dx,
float  dy,
float  dz 
) const

Nearest node id hit by a world ray (nodes with bounds), or "".

在文件 SceneNodes.cpp 第 470 行定义.

引用了 best, dir, dx, dy, dz, h, n, origin, ox, oy, eve::scene::rayAABB(), resolveHost(), w , 以及 eve::scene::worldBoundsOf().

被这些函数引用 pickScreenAt().

◆ pickScreenAt()

std::string eve::scene::Scene::pickScreenAt ( const std::string &  hostName,
graphics::Camera3D *  cam,
float  screenX,
float  screenY,
float  viewW,
float  viewH 
) const

Screen-space picking through a Camera3D (camera.screenToRay).

在文件 SceneCameraQueries.cpp 第 34 行定义.

引用了 pickRayAt().

◆ remount()

eve::Result< SceneHost * > eve::scene::Scene::remount ( NodeDesc  root)

Replaces the selected host's tree.

返回
Borrowed ECS-owned host, or a structured failure.

在文件 Scene.cpp 第 618 行定义.

◆ remountAs()

eve::Result< SceneHost * > eve::scene::Scene::remountAs ( const std::string &  name,
NodeDesc  root 
)

Creates/replaces a named host through the canonical mount path.

返回
Borrowed ECS-owned host, or a structured failure.

在文件 Scene.cpp 第 659 行定义.

◆ remountBuildAs()

bool eve::scene::Scene::remountBuildAs ( const std::string &  name)

Remount build as.

在文件 Scene.cpp 第 848 行定义.

◆ remountReconcile()

eve::Result< SceneHost * > eve::scene::Scene::remountReconcile ( NodeDesc  root)

Reconciles the selected host, reporting whether replacement failed.

返回
Borrowed ECS-owned host, or a structured failure.

在文件 Scene.cpp 第 638 行定义.

◆ removeChildAt()

bool eve::scene::Scene::removeChildAt ( const std::string &  hostName,
const std::string &  parentId,
const std::string &  childId 
)

Removes child at.

在文件 SceneNodes.cpp 第 292 行定义.

引用了 h, ok, parentId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ removeLeafAt()

eve::Result< void > eve::scene::Scene::removeLeafAt ( const std::string &  hostName,
const std::string &  nodeId 
)

Delete a leaf node and release its scene-owned script/ECS companion.

参数
hostNameHost name, or empty for the selected host.
nodeIdStable leaf id; a missing node or a node with children is rejected unchanged.
返回
Applied, or a diagnostic without deleting the node. @ownership External link targets retain their existing owners. @lifetime Removal invalidates borrowed arena pointers and the removed companion's handle. @thread Scene owner thread, outside ECS view iteration. @reentrancy Emits node_removed and detached script callbacks; they must not re-enter structural scene mutation. @cost Linear arena compaction and companion scan; call once at destruction, outside per-frame traversal.

在文件 SceneNodes.cpp 第 274 行定义.

引用了 eve::Applied, eve::scene::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), host, eve::InvalidArgument, nodeId, resolveHost(), eve::Status::success() , 以及 eve::Result< T >::success().

◆ removeNodeAt()

bool eve::scene::Scene::removeNodeAt ( const std::string &  hostName,
const std::string &  nodeId 
)

Detach node from its parent (arena node stays; rebuild to delete).

在文件 SceneNodes.cpp 第 266 行定义.

引用了 h, nodeId, ok, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ removeNodeTagAt()

bool eve::scene::Scene::removeNodeTagAt ( const std::string &  hostName,
const std::string &  nodeId,
const std::string &  tag 
)

Removes node tag at.

在文件 SceneNodes.cpp 第 349 行定义.

引用了 h, n, nodeId, resolveHost() , 以及 tag.

◆ resolveHost()

◆ rootEntity()

bool eve::scene::Scene::rootEntity ( const std::string &  hostName,
const std::string &  nodeId,
ssq::Object  instance 
)

Root one script instance on a node (creates SceneObject lazily).

在文件 Scene.cpp 第 919 行定义.

◆ scheduleDetachEntityAt()

eve::Result< void > eve::scene::Scene::scheduleDetachEntityAt ( const std::string &  hostName,
const std::string &  nodeId,
ssq::Object  instance 
)

Queue a script instance for detach at the end of the current/next updateScripts.

Safe to call from inside update(dt) / onEnable / onDisable. Immediate detachEntityAt remains available for composition roots outside update.

参数
hostNameHost name; empty uses the selected host.
nodeIdStable node id.
instanceRooted eve.SceneEntity instance to detach.
返回
Applied when queued (or already pending); NotFound / InvalidArgument on miss. @cost O(bindings on the node) to locate the instance; flush is O(queued).

在文件 Scene.cpp 第 1058 行定义.

◆ scriptComponentStatesAt()

std::vector< ScriptComponentInstanceState > eve::scene::Scene::scriptComponentStatesAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

一个节点上所有脚本实体的**已登记**组件状态(编辑器/工具面)。

与 scriptEntitiesAt 的区别是**不把 ssq::Object 交给调用方**:编辑器组(EVEditors) 只是读一次组件数据,不该为此把 VM 类型拉进自己的链接单元——那会让 EVEditors.dll 成为 Squirrel 静态库的又一个导出者,与同样静态链接 Squirrel 的测试可执行文件撞成 LNK2005。 VM 侧的取数留在本模块(EVPlatform 本来就用 Squirrel)。

返回
按 (名字, 版本) 升序的状态数组;节点上没有脚本实体(或场景不可用)时为空。 @cost 与节点上的脚本实体数成正比(一次拷贝 + 每个一次 addref);工具/诊断路径用,不在逐帧路径上。

在文件 Scene.cpp 第 1006 行定义.

被这些函数引用 eve::scene_editor::ScriptComponentPayloadProvider::components() , 以及 eve::scene_editor::ScriptComponentPayloadProvider::validateComponent().

◆ scriptEntitiesAt()

std::vector< ssq::Object > eve::scene::Scene::scriptEntitiesAt ( const std::string &  hostName,
const std::string &  nodeId 
) const

取某个节点上挂着的脚本实体实例(eve.SceneEntity 子类实例)的**原生**快照。

forEachEntity 要一个脚本闭包,原生工具(编辑器 inspector、MCP、诊断)拿不到实例;这条 是同一份数据(SceneObject::ScriptBindings::instances)的原生只读入口,用于把"场景对象 ↔ 脚本实体 ↔ 引擎侧组件数据"这三段接起来(方案文档 §9.72)。

参数
hostName宿主名;空串表示当前选中的宿主。
nodeId节点在该宿主内的稳定 id。
返回
实例数组;宿主/节点不存在或没有挂脚本时返回**空数组**(不是错误——节点本来就可以 没有脚本)。 @ownership 返回的每个 ssq::Object 各自持有一次引用(sq_addref),调用方可以跨栈使用, 析构时自动释放。 @lifetime 实例本身由场景的 rooting 保活,直到 unrootEntityAt 或节点/宿主销毁;这里的 返回值只保证那之后不再可用。 @thread 场景/主线程。 @cost 与节点上挂的脚本实体数成正比(一次拷贝 + 每个一次 addref);供工具与诊断使用,不在 逐帧路径上。

在文件 Scene.cpp 第 983 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::PreconditionViolation.

◆ select()

bool eve::scene::Scene::select ( const std::string &  name)

Selects a named host; false when it does not exist.

在文件 Scene.cpp 第 663 行定义.

◆ serializeHostAt()

std::string eve::scene::Scene::serializeHostAt ( const std::string &  hostName) const

Serialize host at.

在文件 Scene.cpp 第 738 行定义.

引用了 d, sx , 以及 sy.

◆ setBuildPosition()

void eve::scene::Scene::setBuildPosition ( float  x,
float  y,
float  z = 0.f 
)

Sets the build position.

在文件 Scene.cpp 第 803 行定义.

◆ setBuildRotation()

void eve::scene::Scene::setBuildRotation ( float  yaw,
float  pitch = 0.f,
float  roll = 0.f 
)

Sets the build rotation.

在文件 Scene.cpp 第 810 行定义.

◆ setBuildScale()

void eve::scene::Scene::setBuildScale ( float  sx,
float  sy,
float  sz = 1.f 
)

Sets the build scale.

在文件 Scene.cpp 第 817 行定义.

引用了 node.

◆ setBuildSpace()

void eve::scene::Scene::setBuildSpace ( const std::string &  space)

Sets the build space.

在文件 Scene.cpp 第 824 行定义.

◆ setBuildVisible()

void eve::scene::Scene::setBuildVisible ( bool  visible)

Sets the build visible.

在文件 Scene.cpp 第 826 行定义.

引用了 node.

◆ setHostLayer()

void eve::scene::Scene::setHostLayer ( int  layer)

Sets the render layer of every host (or the selected one).

在文件 Scene.cpp 第 698 行定义.

引用了 beginBuild(), group , 以及 id.

◆ setHostVisible()

void eve::scene::Scene::setHostVisible ( bool  visible)

Shows/hides every host (or the selected one when a host is selected).

在文件 Scene.cpp 第 694 行定义.

◆ setNodeBoundsAt()

bool eve::scene::Scene::setNodeBoundsAt ( const std::string &  hostName,
const std::string &  nodeId,
float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ 
)

Sets the node bounds at.

在文件 SceneNodes.cpp 第 439 行定义.

引用了 h, n, nodeId , 以及 resolveHost().

◆ setNodeEventHandlerAt()

bool eve::scene::Scene::setNodeEventHandlerAt ( const std::string &  hostName,
ssq::Object  cb 
)

Register a script callback for node lifecycle events on a host: The callback receives action, nodeId and parentId; action is one of {"node_added","node_removed","node_moved","node_changed"}. Pass null cb to clear. Rooted for the process lifetime.

在文件 SceneNodes.cpp 第 397 行定义.

引用了 action, h, name, nodeId, parentId, raw , 以及 resolveHost().

◆ setNodeLayerAt()

bool eve::scene::Scene::setNodeLayerAt ( const std::string &  hostName,
const std::string &  nodeId,
int  layer 
)

Sets the node layer at.

在文件 SceneNodes.cpp 第 382 行定义.

引用了 h, layer, n, nodeId , 以及 resolveHost().

◆ setNodeLookAtAt()

bool eve::scene::Scene::setNodeLookAtAt ( const std::string &  hostName,
const std::string &  nodeId,
float  tx,
float  ty,
float  tz 
)

Orient node so its local +Z axis points at (tx,ty,tz).

在文件 SceneNodes.cpp 第 321 行定义.

引用了 eve::eulerYxzFromQuat(), f, h, n, nodeId, pos, q, resolveHost(), right, target , 以及 up.

◆ setNodeParentAt()

bool eve::scene::Scene::setNodeParentAt ( const std::string &  hostName,
const std::string &  childId,
const std::string &  parentId 
)

Reparent by id; empty parentId detaches. Cycle-safe.

在文件 SceneNodes.cpp 第 257 行定义.

引用了 h, ok, parentId, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ setNodePosition()

bool eve::scene::Scene::setNodePosition ( const std::string &  id,
float  x,
float  y,
float  z 
)

Script-friendly TRS setters on the current host; each marks the transform dirty.

在文件 SceneNodes.cpp 第 37 行定义.

引用了 h, n, x, y , 以及 z.

◆ setNodeQuaternionAt()

bool eve::scene::Scene::setNodeQuaternionAt ( const std::string &  hostName,
const std::string &  nodeId,
float  qx,
float  qy,
float  qz,
float  qw 
)

Sets the node quaternion at.

在文件 SceneNodes.cpp 第 301 行定义.

引用了 eve::eulerYxzFromQuat(), h, n, nodeId, q, qw, qx, qy, qz , 以及 resolveHost().

◆ setNodeRotation()

bool eve::scene::Scene::setNodeRotation ( const std::string &  id,
float  yaw,
float  pitch,
float  roll 
)

Sets the local rotation (yaw/pitch/roll in degrees) of a node.

在文件 SceneNodes.cpp 第 49 行定义.

引用了 h, n, pitch, roll , 以及 yaw.

◆ setNodeScale()

bool eve::scene::Scene::setNodeScale ( const std::string &  id,
float  sx,
float  sy,
float  sz 
)

Sets the local scale of a node.

在文件 SceneNodes.cpp 第 61 行定义.

引用了 h, n, sx, sy , 以及 sz.

◆ setNodeVisible()

bool eve::scene::Scene::setNodeVisible ( const std::string &  id,
bool  visible 
)

Shows/hides a node.

在文件 SceneNodes.cpp 第 73 行定义.

引用了 h, n , 以及 visible.

◆ syncSpatialIndexAt()

bool eve::scene::Scene::syncSpatialIndexAt ( const std::string &  hostName,
spatial::Octree *  ot 
) const

Insert every bounded node's world AABB into an octree (id = arena index).

在文件 SceneNodes.cpp 第 493 行定义.

引用了 h, index, eve::spatial::Octree::insert(), n, resolveHost(), w , 以及 eve::scene::worldBoundsOf().

◆ unlinkNode()

bool eve::scene::Scene::unlinkNode ( const std::string &  nodeId)

Removes every link on a node in the current host.

在文件 SceneNodes.cpp 第 91 行定义.

引用了 currentHostName(), nodeId , 以及 unlinkNodeAt().

◆ unlinkNodeAt()

bool eve::scene::Scene::unlinkNodeAt ( const std::string &  hostName,
const std::string &  nodeId 
)

Remove every link on the node.

在文件 SceneNodes.cpp 第 153 行定义.

引用了 h, nodeId , 以及 resolveHost().

被这些函数引用 unlinkNode().

◆ unlinkNodeKindAt()

bool eve::scene::Scene::unlinkNodeKindAt ( const std::string &  hostName,
const std::string &  nodeId,
const std::string &  kind 
)

Remove links of one kind ("renderable2d"|"renderable3d"|"physics2d"|...).

在文件 SceneNodes.cpp 第 158 行定义.

引用了 h, kind, nodeId, removed, resolveHost() , 以及 eve::scene::TransformSystem::updateHost().

◆ unrootEntityAt()

bool eve::scene::Scene::unrootEntityAt ( const std::string &  hostName,
const std::string &  nodeId,
int  index 
)

Remove a rooted script instance by its index in the binding list.

在文件 Scene.cpp 第 939 行定义.

◆ updateScripts()

void eve::scene::Scene::updateScripts ( float  dt)

updateTransformsAll() + call update(dt) on every rooted instance.

在文件 Scene.cpp 第 1020 行定义.

◆ updateTransforms()

void eve::scene::Scene::updateTransforms ( )

Propagate transforms (+ link sync) for all hosts (or current if selected).

在文件 Scene.cpp 第 702 行定义.

◆ updateTransformsAll()

void eve::scene::Scene::updateTransformsAll ( )

Propagate transforms for every host regardless of selection.

在文件 Scene.cpp 第 707 行定义.

◆ walkBreadthFirstIds()

std::vector< std::string > eve::scene::Scene::walkBreadthFirstIds ( )

Walk breadth first ids.

在文件 SceneNodes.cpp 第 605 行定义.

引用了 h, n, out , 以及 eve::scene::SceneHost::walkBreadthFirst().

◆ walkDepthFirstIds()

std::vector< std::string > eve::scene::Scene::walkDepthFirstIds ( )

DFS order of ids under root (same as collectIds). Kept for script naming clarity.

在文件 SceneNodes.cpp 第 603 行定义.

引用了 collectIds().

◆ worldToLocalAt()

std::vector< float > eve::scene::Scene::worldToLocalAt ( const std::string &  hostName,
const std::string &  nodeId,
float  x,
float  y,
float  z 
) const

World to local at.

在文件 SceneNodes.cpp 第 247 行定义.

引用了 h, n, nodeId, p, resolveHost(), x, y , 以及 z.


该类的文档由以下文件生成: