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

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]

eve::scene::SceneNodeRef::SceneNodeRef ( )
default

Scene node ref.

◆ SceneNodeRef() [2/2]

eve::scene::SceneNodeRef::SceneNodeRef ( std::string  hostName,
std::string  nodeId 
)
inline

Scene node ref.

Host name.

在文件 SceneNodeRef.h 第 25 行定义.

成员函数说明

◆ getChildCount()

int eve::scene::SceneNodeRef::getChildCount ( ) const

Returns the child count.

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

引用了 h.

◆ 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 行定义.

引用了 n , 以及 v.

◆ getHostName()

std::string eve::scene::SceneNodeRef::getHostName ( ) const
inline

Returns the host name.

在文件 SceneNodeRef.h 第 30 行定义.

◆ getNodeId()

std::string eve::scene::SceneNodeRef::getNodeId ( ) const
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

Returns the path.

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

引用了 h.

◆ getPosition()

std::vector< float > eve::scene::SceneNodeRef::getPosition ( ) const

Returns the position.

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

引用了 n.

◆ getPositionX()

float eve::scene::SceneNodeRef::getPositionX ( ) const

Returns the position x.

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

引用了 n.

◆ getPositionY()

float eve::scene::SceneNodeRef::getPositionY ( ) const

Returns the position y.

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

引用了 n.

◆ getPositionZ()

float eve::scene::SceneNodeRef::getPositionZ ( ) const

Returns the position z.

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

引用了 n.

◆ getRight()

std::vector< float > eve::scene::SceneNodeRef::getRight ( ) const

Returns the right.

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

引用了 n , 以及 v.

◆ getRotation()

std::vector< float > eve::scene::SceneNodeRef::getRotation ( ) const

Returns the rotation.

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

引用了 n.

◆ getRotationPitch()

float eve::scene::SceneNodeRef::getRotationPitch ( ) const

Returns the rotation pitch.

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

引用了 n.

◆ getRotationRoll()

float eve::scene::SceneNodeRef::getRotationRoll ( ) const

Returns the rotation roll.

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

引用了 n.

◆ getRotationYaw()

float eve::scene::SceneNodeRef::getRotationYaw ( ) const

Returns the rotation yaw.

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

引用了 n.

◆ getScale()

std::vector< float > eve::scene::SceneNodeRef::getScale ( ) const

Returns the scale.

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

引用了 n.

◆ getScaleX()

float eve::scene::SceneNodeRef::getScaleX ( ) const

Returns the scale x.

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

引用了 n.

◆ getScaleY()

float eve::scene::SceneNodeRef::getScaleY ( ) const

Returns the scale y.

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

引用了 n.

◆ getScaleZ()

float eve::scene::SceneNodeRef::getScaleZ ( ) const

Returns the scale z.

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

引用了 n.

◆ 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

Returns the up.

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

引用了 n , 以及 v.

◆ getWorldMatrix()

std::vector< float > eve::scene::SceneNodeRef::getWorldMatrix ( ) const

Column-major 4x4 world matrix, 16 floats.

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

引用了 c, n, out , 以及 r.

◆ getWorldPosition()

std::vector< float > eve::scene::SceneNodeRef::getWorldPosition ( ) const

Returns the world position.

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

引用了 n.

◆ getWorldPositionX()

float eve::scene::SceneNodeRef::getWorldPositionX ( ) const

Returns the world position x.

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

引用了 n.

◆ getWorldPositionY()

float eve::scene::SceneNodeRef::getWorldPositionY ( ) const

Returns the world position y.

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

引用了 n.

◆ getWorldPositionZ()

float eve::scene::SceneNodeRef::getWorldPositionZ ( ) const

Returns the world position z.

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

引用了 n.

◆ isValid()

bool eve::scene::SceneNodeRef::isValid ( ) const

True when host + node currently resolve.

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

◆ isVisible()

bool eve::scene::SceneNodeRef::isVisible ( ) const

True when visible.

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

引用了 n.

◆ 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 
)

Sets the position.

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

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

◆ setRotation()

bool eve::scene::SceneNodeRef::setRotation ( float  yaw,
float  pitch,
float  roll 
)

Sets the rotation.

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

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

◆ setScale()

bool eve::scene::SceneNodeRef::setScale ( float  sx,
float  sy,
float  sz 
)

Sets the scale.

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

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

◆ setVisible()

bool eve::scene::SceneNodeRef::setVisible ( bool  v)

Sets the visible.

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

引用了 h, n , 以及 v.


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