Script handle to a scene node (hostName + nodeId). Deliberately holds strings rather than arena pointers, so it stays valid across rebuilds/reconcile. Node-level entity bindings are forwarded through the Scene module. 更多...
#include <SceneNodeRef.h>
Public 成员函数 | |
| SceneNodeRef ()=default | |
| Scene node ref. | |
| SceneNodeRef (std::string hostName, std::string nodeId) | |
| Scene node ref. | |
| std::string | getHostName () const |
| Returns the host name. | |
| std::string | getNodeId () const |
| Returns the node id. | |
| bool | isValid () const |
| True when host + node currently resolve. | |
| eve::SceneObjectId | persistentId () const |
| Return the persisted UUID of the resolved node, or nil if absent. | |
| Scene * | getScene () const |
| Returns the eve.Scene module instance for entity-binding forwarding. | |
| bool | setPosition (float x, float y, float z) |
| Sets the position. | |
| float | getPositionX () const |
| Returns the position x. | |
| float | getPositionY () const |
| Returns the position y. | |
| float | getPositionZ () const |
| Returns the position z. | |
| std::vector< float > | getPosition () const |
| Returns the position. | |
| bool | setRotation (float yaw, float pitch, float roll) |
| Sets the rotation. | |
| float | getRotationYaw () const |
| Returns the rotation yaw. | |
| float | getRotationPitch () const |
| Returns the rotation pitch. | |
| float | getRotationRoll () const |
| Returns the rotation roll. | |
| std::vector< float > | getRotation () const |
| Returns the rotation. | |
| bool | setScale (float sx, float sy, float sz) |
| Sets the scale. | |
| float | getScaleX () const |
| Returns the scale x. | |
| float | getScaleY () const |
| Returns the scale y. | |
| float | getScaleZ () const |
| Returns the scale z. | |
| std::vector< float > | getScale () const |
| Returns the scale. | |
| bool | setVisible (bool v) |
| Sets the visible. | |
| bool | isVisible () const |
| True when visible. | |
| float | getWorldPositionX () const |
| Returns the world position x. | |
| float | getWorldPositionY () const |
| Returns the world position y. | |
| float | getWorldPositionZ () const |
| Returns the world position z. | |
| std::vector< float > | getWorldPosition () const |
| Returns the world position. | |
| std::vector< float > | getWorldMatrix () const |
| Column-major 4x4 world matrix, 16 floats. | |
| std::vector< float > | getForward () const |
| Normalized local axes in world space (forward = +Z). | |
| std::vector< float > | getRight () const |
| Returns the right. | |
| std::vector< float > | getUp () const |
| Returns the up. | |
| std::string | getParentId () const |
| Returns the parent id. | |
| int | getChildCount () const |
| Returns the child count. | |
| std::string | getChildIdAt (int ordinal) const |
| Returns the child id at. | |
| std::string | getPath () const |
| Returns the path. | |
详细描述
Script handle to a scene node (hostName + nodeId). Deliberately holds strings rather than arena pointers, so it stays valid across rebuilds/reconcile. Node-level entity bindings are forwarded through the Scene module.
在文件 SceneNodeRef.h 第 20 行定义.
构造及析构函数说明
◆ SceneNodeRef() [1/2]
|
default |
Scene node ref.
◆ SceneNodeRef() [2/2]
|
inline |
成员函数说明
◆ getChildCount()
| int eve::scene::SceneNodeRef::getChildCount | ( | ) | const |
◆ getChildIdAt()
| std::string eve::scene::SceneNodeRef::getChildIdAt | ( | int | ordinal | ) | const |
Returns the child id at.
在文件 SceneCameraQueries.cpp 第 479 行定义.
引用了 c, h , 以及 eve::scene::SceneNode::id.
◆ getForward()
| std::vector< float > eve::scene::SceneNodeRef::getForward | ( | ) | const |
Normalized local axes in world space (forward = +Z).
在文件 SceneCameraQueries.cpp 第 446 行定义.
◆ getHostName()
|
inline |
Returns the host name.
在文件 SceneNodeRef.h 第 30 行定义.
◆ getNodeId()
|
inline |
Returns the node id.
在文件 SceneNodeRef.h 第 32 行定义.
◆ getParentId()
| std::string eve::scene::SceneNodeRef::getParentId | ( | ) | const |
Returns the parent id.
在文件 SceneCameraQueries.cpp 第 467 行定义.
引用了 h, eve::scene::SceneNode::id , 以及 p.
◆ getPath()
| std::string eve::scene::SceneNodeRef::getPath | ( | ) | const |
◆ getPosition()
| std::vector< float > eve::scene::SceneNodeRef::getPosition | ( | ) | const |
◆ getPositionX()
| float eve::scene::SceneNodeRef::getPositionX | ( | ) | const |
◆ getPositionY()
| float eve::scene::SceneNodeRef::getPositionY | ( | ) | const |
◆ getPositionZ()
| float eve::scene::SceneNodeRef::getPositionZ | ( | ) | const |
◆ getRight()
| std::vector< float > eve::scene::SceneNodeRef::getRight | ( | ) | const |
◆ getRotation()
| std::vector< float > eve::scene::SceneNodeRef::getRotation | ( | ) | const |
◆ getRotationPitch()
| float eve::scene::SceneNodeRef::getRotationPitch | ( | ) | const |
◆ getRotationRoll()
| float eve::scene::SceneNodeRef::getRotationRoll | ( | ) | const |
◆ getRotationYaw()
| float eve::scene::SceneNodeRef::getRotationYaw | ( | ) | const |
◆ getScale()
| std::vector< float > eve::scene::SceneNodeRef::getScale | ( | ) | const |
◆ getScaleX()
| float eve::scene::SceneNodeRef::getScaleX | ( | ) | const |
◆ getScaleY()
| float eve::scene::SceneNodeRef::getScaleY | ( | ) | const |
◆ getScaleZ()
| float eve::scene::SceneNodeRef::getScaleZ | ( | ) | const |
◆ getScene()
| Scene * eve::scene::SceneNodeRef::getScene | ( | ) | const |
Returns the eve.Scene module instance for entity-binding forwarding.
- 返回
- Borrowed nullable module singleton; null means the module is unavailable. @ownership The module system owns the Scene instance; callers must not delete it. @lifetime Valid while the scene module is loaded; do not retain across unload. @thread Call on the scene/script thread. @reentrancy The accessor invokes no callbacks and is invalid across module teardown.
在文件 SceneCameraQueries.cpp 第 303 行定义.
◆ getUp()
| std::vector< float > eve::scene::SceneNodeRef::getUp | ( | ) | const |
◆ getWorldMatrix()
| std::vector< float > eve::scene::SceneNodeRef::getWorldMatrix | ( | ) | const |
◆ getWorldPosition()
| std::vector< float > eve::scene::SceneNodeRef::getWorldPosition | ( | ) | const |
◆ getWorldPositionX()
| float eve::scene::SceneNodeRef::getWorldPositionX | ( | ) | const |
◆ getWorldPositionY()
| float eve::scene::SceneNodeRef::getWorldPositionY | ( | ) | const |
◆ getWorldPositionZ()
| float eve::scene::SceneNodeRef::getWorldPositionZ | ( | ) | const |
◆ isValid()
| bool eve::scene::SceneNodeRef::isValid | ( | ) | const |
True when host + node currently resolve.
在文件 SceneCameraQueries.cpp 第 296 行定义.
◆ isVisible()
| bool eve::scene::SceneNodeRef::isVisible | ( | ) | const |
◆ persistentId()
| eve::SceneObjectId eve::scene::SceneNodeRef::persistentId | ( | ) | const |
Return the persisted UUID of the resolved node, or nil if absent.
在文件 SceneCameraQueries.cpp 第 298 行定义.
引用了 eve::detail::Id128< Tag >::nil() , 以及 node.
◆ setPosition()
| bool eve::scene::SceneNodeRef::setPosition | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
◆ setRotation()
| bool eve::scene::SceneNodeRef::setRotation | ( | float | yaw, |
| float | pitch, | ||
| float | roll | ||
| ) |
◆ setScale()
| bool eve::scene::SceneNodeRef::setScale | ( | float | sx, |
| float | sy, | ||
| float | sz | ||
| ) |
◆ setVisible()
| bool eve::scene::SceneNodeRef::setVisible | ( | bool | v | ) |
该类的文档由以下文件生成:
- src/modules/scene/SceneNodeRef.h
- src/modules/scene/SceneCameraQueries.cpp