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) |
| NodeDesc & | withKey (std::string v) |
| NodeDesc & | withName (std::string v) |
| NodeDesc & | withSpace (std::string v) |
| NodeDesc & | withVisible (bool v) |
| NodeDesc & | withTag (std::string v) |
| NodeDesc & | withTags (std::vector< std::string > v) |
| NodeDesc & | withLayer (int v) |
| NodeDesc & | withBounds (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) |
| NodeDesc & | withPosition (float px, float py, float pz=0.f) |
| NodeDesc & | withRotation (float y_, float p=0.f, float r=0.f) |
| NodeDesc & | withScale (float s) |
| NodeDesc & | withScaleXYZ (float sx_, float sy_, float sz_) |
| NodeDesc & | child (NodeDesc c) |
| const std::string & | reconcileKey () const |
Public 属性 | |
| std::string | id |
| 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 第 15 行定义.
成员函数说明
◆ child()
在文件 NodeDesc.h 第 100 行定义.
◆ reconcileKey()
|
inline |
在文件 NodeDesc.h 第 105 行定义.
◆ withBounds()
|
inline |
◆ withId()
|
inline |
在文件 NodeDesc.h 第 35 行定义.
引用了 v.
◆ withKey()
|
inline |
在文件 NodeDesc.h 第 39 行定义.
◆ withLayer()
|
inline |
在文件 NodeDesc.h 第 63 行定义.
◆ withName()
|
inline |
在文件 NodeDesc.h 第 43 行定义.
◆ withPosition()
◆ withRotation()
◆ withScale()
|
inline |
◆ withScaleXYZ()
|
inline |
在文件 NodeDesc.h 第 94 行定义.
◆ withSpace()
|
inline |
在文件 NodeDesc.h 第 47 行定义.
◆ withTag()
|
inline |
在文件 NodeDesc.h 第 55 行定义.
◆ withTags()
|
inline |
在文件 NodeDesc.h 第 59 行定义.
◆ withVisible()
|
inline |
在文件 NodeDesc.h 第 51 行定义.
类成员变量说明
◆ bmaxX
| float eve::scene::NodeDesc::bmaxX = 0.f |
在文件 NodeDesc.h 第 26 行定义.
被这些函数引用 withBounds().
◆ bmaxY
| float eve::scene::NodeDesc::bmaxY = 0.f |
在文件 NodeDesc.h 第 26 行定义.
被这些函数引用 withBounds().
◆ bmaxZ
| float eve::scene::NodeDesc::bmaxZ = 0.f |
在文件 NodeDesc.h 第 26 行定义.
被这些函数引用 withBounds().
◆ bminX
| float eve::scene::NodeDesc::bminX = 0.f |
在文件 NodeDesc.h 第 25 行定义.
被这些函数引用 withBounds().
◆ bminY
| float eve::scene::NodeDesc::bminY = 0.f |
在文件 NodeDesc.h 第 25 行定义.
被这些函数引用 withBounds().
◆ bminZ
| float eve::scene::NodeDesc::bminZ = 0.f |
在文件 NodeDesc.h 第 25 行定义.
被这些函数引用 withBounds().
◆ children
| std::vector<NodeDesc> eve::scene::NodeDesc::children |
在文件 NodeDesc.h 第 33 行定义.
被这些函数引用 child().
◆ hasBounds
| bool eve::scene::NodeDesc::hasBounds = false |
在文件 NodeDesc.h 第 27 行定义.
被这些函数引用 withBounds().
◆ id
| std::string eve::scene::NodeDesc::id |
在文件 NodeDesc.h 第 16 行定义.
被这些函数引用 eve::scene::group(), eve::scene::node() , 以及 reconcileKey().
◆ key
| std::string eve::scene::NodeDesc::key |
Reconciliation key; defaults to id when empty.
在文件 NodeDesc.h 第 18 行定义.
被这些函数引用 reconcileKey() , 以及 withKey().
◆ layer
| int eve::scene::NodeDesc::layer = 0 |
在文件 NodeDesc.h 第 24 行定义.
被这些函数引用 withLayer().
◆ name
| std::string eve::scene::NodeDesc::name |
在文件 NodeDesc.h 第 19 行定义.
被这些函数引用 withName().
◆ pitch
| float eve::scene::NodeDesc::pitch = 0.f |
在文件 NodeDesc.h 第 30 行定义.
被这些函数引用 withRotation().
◆ roll
| float eve::scene::NodeDesc::roll = 0.f |
在文件 NodeDesc.h 第 30 行定义.
被这些函数引用 withRotation().
◆ space
| std::string eve::scene::NodeDesc::space = "3d" |
◆ sx
| float eve::scene::NodeDesc::sx = 1.f |
在文件 NodeDesc.h 第 31 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ sy
| float eve::scene::NodeDesc::sy = 1.f |
在文件 NodeDesc.h 第 31 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ sz
| float eve::scene::NodeDesc::sz = 1.f |
在文件 NodeDesc.h 第 31 行定义.
被这些函数引用 withScale() , 以及 withScaleXYZ().
◆ tags
| std::vector<std::string> eve::scene::NodeDesc::tags |
在文件 NodeDesc.h 第 23 行定义.
被这些函数引用 eve::scene::SceneHost::addTag(), eve::scene::SceneHost::hasTag(), eve::scene::SceneHost::removeTag(), withTag() , 以及 withTags().
◆ visible
| bool eve::scene::NodeDesc::visible = true |
在文件 NodeDesc.h 第 22 行定义.
被这些函数引用 eve::scene::Scene::serializeHostAt() , 以及 withVisible().
◆ x
| float eve::scene::NodeDesc::x = 0.f |
在文件 NodeDesc.h 第 29 行定义.
被这些函数引用 withPosition().
◆ y
| float eve::scene::NodeDesc::y = 0.f |
在文件 NodeDesc.h 第 29 行定义.
被这些函数引用 withPosition().
◆ yaw
| float eve::scene::NodeDesc::yaw = 0.f |
在文件 NodeDesc.h 第 30 行定义.
被这些函数引用 withRotation().
◆ z
| float eve::scene::NodeDesc::z = 0.f |
在文件 NodeDesc.h 第 29 行定义.
被这些函数引用 withPosition().
该结构体的文档由以下文件生成:
- src/modules/scene/NodeDesc.h