载入中...
搜索中...
未找到
eve::scene::NodeDesc结构体 参考

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

NodeDesc & eve::scene::NodeDesc::child ( NodeDesc  c)
inline

Child.

在文件 NodeDesc.h 第 131 行定义.

引用了 c , 以及 children.

◆ reconcileKey()

const std::string & eve::scene::NodeDesc::reconcileKey ( ) const
inline

Reconcile key.

在文件 NodeDesc.h 第 137 行定义.

引用了 id , 以及 key.

◆ withBounds()

NodeDesc & eve::scene::NodeDesc::withBounds ( float  minX,
float  minY,
float  minZ,
float  maxX,
float  maxY,
float  maxZ 
)
inline

With bounds.

在文件 NodeDesc.h 第 93 行定义.

引用了 bmaxX, bmaxY, bmaxZ, bminX, bminY, bminZ , 以及 hasBounds.

◆ withId()

NodeDesc & eve::scene::NodeDesc::withId ( std::string  v)
inline

With id.

在文件 NodeDesc.h 第 48 行定义.

引用了 v.

◆ withKey()

NodeDesc & eve::scene::NodeDesc::withKey ( std::string  v)
inline

With key.

在文件 NodeDesc.h 第 58 行定义.

引用了 key , 以及 v.

◆ withLayer()

NodeDesc & eve::scene::NodeDesc::withLayer ( int  v)
inline

With layer.

在文件 NodeDesc.h 第 88 行定义.

引用了 layer , 以及 v.

◆ withName()

NodeDesc & eve::scene::NodeDesc::withName ( std::string  v)
inline

With name.

在文件 NodeDesc.h 第 63 行定义.

引用了 name , 以及 v.

◆ withPersistentId()

NodeDesc & eve::scene::NodeDesc::withPersistentId ( eve::SceneObjectId  v)
inline

Assign a stable persisted scene-object UUID.

在文件 NodeDesc.h 第 53 行定义.

引用了 persistentId , 以及 v.

◆ withPosition()

NodeDesc & eve::scene::NodeDesc::withPosition ( float  px,
float  py,
float  pz = 0.f 
)
inline

With position.

在文件 NodeDesc.h 第 105 行定义.

引用了 px, py, pz, x, y , 以及 z.

◆ withRotation()

NodeDesc & eve::scene::NodeDesc::withRotation ( float  y_,
float  p = 0.f,
float  r = 0.f 
)
inline

With rotation.

在文件 NodeDesc.h 第 112 行定义.

引用了 p, pitch, r, roll , 以及 yaw.

◆ withScale()

NodeDesc & eve::scene::NodeDesc::withScale ( float  s)
inline

With scale.

在文件 NodeDesc.h 第 119 行定义.

引用了 s, sx, sy , 以及 sz.

◆ withScaleXYZ()

NodeDesc & eve::scene::NodeDesc::withScaleXYZ ( float  sx_,
float  sy_,
float  sz_ 
)
inline

With scale xyz.

在文件 NodeDesc.h 第 124 行定义.

引用了 sx, sy , 以及 sz.

◆ withSpace()

NodeDesc & eve::scene::NodeDesc::withSpace ( std::string  v)
inline

With space.

在文件 NodeDesc.h 第 68 行定义.

引用了 space , 以及 v.

◆ withTag()

NodeDesc & eve::scene::NodeDesc::withTag ( std::string  v)
inline

With tag.

在文件 NodeDesc.h 第 78 行定义.

引用了 tags , 以及 v.

◆ withTags()

NodeDesc & eve::scene::NodeDesc::withTags ( std::vector< std::string >  v)
inline

With tags.

在文件 NodeDesc.h 第 83 行定义.

引用了 tags , 以及 v.

◆ withVisible()

NodeDesc & eve::scene::NodeDesc::withVisible ( bool  v)
inline

With visible.

在文件 NodeDesc.h 第 73 行定义.

引用了 v , 以及 visible.

类成员变量说明

◆ 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

◆ hasBounds

bool eve::scene::NodeDesc::hasBounds = false

在文件 NodeDesc.h 第 39 行定义.

被这些函数引用 withBounds().

◆ id

std::string eve::scene::NodeDesc::id

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

"2d" or "3d" (string enum per module convention).

在文件 NodeDesc.h 第 33 行定义.

被这些函数引用 withSpace().

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


该结构体的文档由以下文件生成: