Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree). Isomorphic to eve::ui::WidgetDesc. 更多...
#include <NodeDesc.h>
Public 成员函数 | |
| NodeDesc & | withId (std::string v) |
| With id. | |
| NodeDesc & | withPersistentId (eve::SceneObjectId v) |
| Assign a stable persisted scene-object UUID. | |
| NodeDesc & | withKey (std::string v) |
| With key. | |
| NodeDesc & | withName (std::string v) |
| With name. | |
| NodeDesc & | withSpace (std::string v) |
| With space. | |
| NodeDesc & | withVisible (bool v) |
| With visible. | |
| NodeDesc & | withTag (std::string v) |
| With tag. | |
| NodeDesc & | withTags (std::vector< std::string > v) |
| With tags. | |
| NodeDesc & | withLayer (int v) |
| With layer. | |
| NodeDesc & | withBounds (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| With bounds. | |
| NodeDesc & | withPosition (float px, float py, float pz=0.f) |
| With position. | |
| NodeDesc & | withRotation (float y_, float p=0.f, float r=0.f) |
| With rotation. | |
| NodeDesc & | withScale (float s) |
| With scale. | |
| NodeDesc & | withScaleXYZ (float sx_, float sy_, float sz_) |
| With scale xyz. | |
| NodeDesc & | child (NodeDesc c) |
| Child. | |
| const std::string & | reconcileKey () const |
| Reconcile key. | |
Public 属性 | |
| std::string | id |
| eve::SceneObjectId | persistentId |
| Optional persisted object identity. | |
| std::string | key |
| Reconciliation key; defaults to id when empty. | |
| std::string | name |
| std::string | space = "3d" |
| "2d" or "3d" (string enum per module convention). | |
| bool | visible = true |
| std::vector< std::string > | tags |
| int | layer = 0 |
| float | bminX = 0.f |
| float | bminY = 0.f |
| float | bminZ = 0.f |
| float | bmaxX = 0.f |
| float | bmaxY = 0.f |
| float | bmaxZ = 0.f |
| bool | hasBounds = false |
| float | x = 0.f |
| float | y = 0.f |
| float | z = 0.f |
| float | yaw = 0.f |
| float | pitch = 0.f |
| float | roll = 0.f |
| float | sx = 1.f |
| float | sy = 1.f |
| float | sz = 1.f |
| std::vector< NodeDesc > | children |
详细描述
Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree). Isomorphic to eve::ui::WidgetDesc.
在文件 NodeDesc.h 第 19 行定义.
成员函数说明
◆ child()
◆ reconcileKey()
|
inline |
◆ withBounds()
|
inline |
◆ withId()
|
inline |
◆ withKey()
|
inline |
◆ withLayer()
|
inline |
◆ withName()
|
inline |
◆ withPersistentId()
|
inline |
◆ withPosition()
◆ withRotation()
◆ withScale()
|
inline |
◆ withScaleXYZ()
|
inline |
◆ withSpace()
|
inline |
◆ withTag()
|
inline |
◆ withTags()
|
inline |
◆ withVisible()
|
inline |
类成员变量说明
◆ bmaxX
| float eve::scene::NodeDesc::bmaxX = 0.f |
在文件 NodeDesc.h 第 38 行定义.
被这些函数引用 withBounds().
◆ bmaxY
| float eve::scene::NodeDesc::bmaxY = 0.f |
在文件 NodeDesc.h 第 38 行定义.
被这些函数引用 withBounds().
◆ bmaxZ
| float eve::scene::NodeDesc::bmaxZ = 0.f |
在文件 NodeDesc.h 第 38 行定义.
被这些函数引用 withBounds().
◆ bminX
| float eve::scene::NodeDesc::bminX = 0.f |
在文件 NodeDesc.h 第 37 行定义.
被这些函数引用 withBounds().
◆ bminY
| float eve::scene::NodeDesc::bminY = 0.f |
在文件 NodeDesc.h 第 37 行定义.
被这些函数引用 withBounds().
◆ bminZ
| float eve::scene::NodeDesc::bminZ = 0.f |
在文件 NodeDesc.h 第 37 行定义.
被这些函数引用 withBounds().
◆ children
| std::vector<NodeDesc> eve::scene::NodeDesc::children |
在文件 NodeDesc.h 第 45 行定义.
被这些函数引用 child(), eve::asset_scene::EvpackSceneTemplateLoader::load() , 以及 eve::scene::Scene::updateTransformsAll().
◆ hasBounds
| bool eve::scene::NodeDesc::hasBounds = false |
在文件 NodeDesc.h 第 39 行定义.
被这些函数引用 withBounds().
◆ id
| std::string eve::scene::NodeDesc::id |
在文件 NodeDesc.h 第 20 行定义.
被这些函数引用 eve::scene::group(), eve::asset_scene::EvpackSceneTemplateLoader::load(), eve::scene::node() , 以及 reconcileKey().
◆ key
| std::string eve::scene::NodeDesc::key |
Reconciliation key; defaults to id when empty.
在文件 NodeDesc.h 第 30 行定义.
被这些函数引用 eve::asset_scene::EvpackSceneTemplateLoader::load(), reconcileKey() , 以及 withKey().
◆ layer
| int eve::scene::NodeDesc::layer = 0 |
在文件 NodeDesc.h 第 36 行定义.
被这些函数引用 withLayer().
◆ name
| std::string eve::scene::NodeDesc::name |
在文件 NodeDesc.h 第 31 行定义.
被这些函数引用 eve::asset_scene::EvpackSceneTemplateLoader::load() , 以及 withName().
◆ persistentId
| eve::SceneObjectId eve::scene::NodeDesc::persistentId |
Optional persisted object identity.
id remains the legacy host-local locator used by scripts and reconciliation. This UUID is the identity that may cross a save/load or process boundary; it is never an ECS entity id.
在文件 NodeDesc.h 第 28 行定义.
被这些函数引用 withPersistentId().
◆ pitch
| float eve::scene::NodeDesc::pitch = 0.f |
在文件 NodeDesc.h 第 42 行定义.
被这些函数引用 withRotation().
◆ roll
| float eve::scene::NodeDesc::roll = 0.f |
在文件 NodeDesc.h 第 42 行定义.
被这些函数引用 withRotation().
◆ space
| std::string eve::scene::NodeDesc::space = "3d" |
◆ sx
| float eve::scene::NodeDesc::sx = 1.f |
在文件 NodeDesc.h 第 43 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ sy
| float eve::scene::NodeDesc::sy = 1.f |
在文件 NodeDesc.h 第 43 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ sz
| float eve::scene::NodeDesc::sz = 1.f |
在文件 NodeDesc.h 第 43 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ tags
| std::vector<std::string> eve::scene::NodeDesc::tags |
在文件 NodeDesc.h 第 35 行定义.
被这些函数引用 withTag() , 以及 withTags().
◆ visible
| bool eve::scene::NodeDesc::visible = true |
在文件 NodeDesc.h 第 34 行定义.
被这些函数引用 withVisible().
◆ x
| float eve::scene::NodeDesc::x = 0.f |
在文件 NodeDesc.h 第 41 行定义.
被这些函数引用 withPosition().
◆ y
| float eve::scene::NodeDesc::y = 0.f |
在文件 NodeDesc.h 第 41 行定义.
被这些函数引用 withPosition().
◆ yaw
| float eve::scene::NodeDesc::yaw = 0.f |
在文件 NodeDesc.h 第 42 行定义.
被这些函数引用 withRotation().
◆ z
| float eve::scene::NodeDesc::z = 0.f |
在文件 NodeDesc.h 第 41 行定义.
被这些函数引用 withPosition().
该结构体的文档由以下文件生成:
- src/modules/scene/NodeDesc.h