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

Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree). Isomorphic to eve::ui::WidgetDesc. 更多...

#include <NodeDesc.h>

Public 成员函数

NodeDescwithId (std::string v)
 
NodeDescwithKey (std::string v)
 
NodeDescwithName (std::string v)
 
NodeDescwithSpace (std::string v)
 
NodeDescwithVisible (bool v)
 
NodeDescwithTag (std::string v)
 
NodeDescwithTags (std::vector< std::string > v)
 
NodeDescwithLayer (int v)
 
NodeDescwithBounds (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
 
NodeDescwithPosition (float px, float py, float pz=0.f)
 
NodeDescwithRotation (float y_, float p=0.f, float r=0.f)
 
NodeDescwithScale (float s)
 
NodeDescwithScaleXYZ (float sx_, float sy_, float sz_)
 
NodeDescchild (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< NodeDescchildren
 

详细描述

Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree). Isomorphic to eve::ui::WidgetDesc.

在文件 NodeDesc.h15 行定义.

成员函数说明

◆ child()

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

在文件 NodeDesc.h100 行定义.

引用了 c , 以及 children.

◆ reconcileKey()

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

在文件 NodeDesc.h105 行定义.

引用了 id , 以及 key.

◆ withBounds()

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

在文件 NodeDesc.h67 行定义.

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

◆ withId()

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

在文件 NodeDesc.h35 行定义.

引用了 v.

◆ withKey()

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

在文件 NodeDesc.h39 行定义.

引用了 key , 以及 v.

◆ withLayer()

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

在文件 NodeDesc.h63 行定义.

引用了 layer , 以及 v.

◆ withName()

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

在文件 NodeDesc.h43 行定义.

引用了 name , 以及 v.

◆ withPosition()

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

在文件 NodeDesc.h78 行定义.

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

◆ withRotation()

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

在文件 NodeDesc.h84 行定义.

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

◆ withScale()

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

在文件 NodeDesc.h90 行定义.

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

◆ withScaleXYZ()

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

在文件 NodeDesc.h94 行定义.

引用了 sx, sy , 以及 sz.

◆ withSpace()

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

在文件 NodeDesc.h47 行定义.

引用了 space , 以及 v.

◆ withTag()

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

在文件 NodeDesc.h55 行定义.

引用了 tags , 以及 v.

◆ withTags()

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

在文件 NodeDesc.h59 行定义.

引用了 tags , 以及 v.

◆ withVisible()

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

在文件 NodeDesc.h51 行定义.

引用了 v , 以及 visible.

类成员变量说明

◆ bmaxX

float eve::scene::NodeDesc::bmaxX = 0.f

在文件 NodeDesc.h26 行定义.

被这些函数引用 withBounds().

◆ bmaxY

float eve::scene::NodeDesc::bmaxY = 0.f

在文件 NodeDesc.h26 行定义.

被这些函数引用 withBounds().

◆ bmaxZ

float eve::scene::NodeDesc::bmaxZ = 0.f

在文件 NodeDesc.h26 行定义.

被这些函数引用 withBounds().

◆ bminX

float eve::scene::NodeDesc::bminX = 0.f

在文件 NodeDesc.h25 行定义.

被这些函数引用 withBounds().

◆ bminY

float eve::scene::NodeDesc::bminY = 0.f

在文件 NodeDesc.h25 行定义.

被这些函数引用 withBounds().

◆ bminZ

float eve::scene::NodeDesc::bminZ = 0.f

在文件 NodeDesc.h25 行定义.

被这些函数引用 withBounds().

◆ children

std::vector<NodeDesc> eve::scene::NodeDesc::children

在文件 NodeDesc.h33 行定义.

被这些函数引用 child().

◆ hasBounds

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

在文件 NodeDesc.h27 行定义.

被这些函数引用 withBounds().

◆ id

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

在文件 NodeDesc.h16 行定义.

被这些函数引用 eve::scene::group(), eve::scene::node() , 以及 reconcileKey().

◆ key

std::string eve::scene::NodeDesc::key

Reconciliation key; defaults to id when empty.

在文件 NodeDesc.h18 行定义.

被这些函数引用 reconcileKey() , 以及 withKey().

◆ layer

int eve::scene::NodeDesc::layer = 0

在文件 NodeDesc.h24 行定义.

被这些函数引用 withLayer().

◆ name

std::string eve::scene::NodeDesc::name

在文件 NodeDesc.h19 行定义.

被这些函数引用 withName().

◆ pitch

float eve::scene::NodeDesc::pitch = 0.f

在文件 NodeDesc.h30 行定义.

被这些函数引用 withRotation().

◆ roll

float eve::scene::NodeDesc::roll = 0.f

在文件 NodeDesc.h30 行定义.

被这些函数引用 withRotation().

◆ space

std::string eve::scene::NodeDesc::space = "3d"

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

在文件 NodeDesc.h21 行定义.

被这些函数引用 withSpace().

◆ sx

float eve::scene::NodeDesc::sx = 1.f

在文件 NodeDesc.h31 行定义.

被这些函数引用 withScale() , 以及 withScaleXYZ().

◆ sy

float eve::scene::NodeDesc::sy = 1.f

在文件 NodeDesc.h31 行定义.

被这些函数引用 withScale() , 以及 withScaleXYZ().

◆ sz

float eve::scene::NodeDesc::sz = 1.f

在文件 NodeDesc.h31 行定义.

被这些函数引用 withScale() , 以及 withScaleXYZ().

◆ tags

std::vector<std::string> eve::scene::NodeDesc::tags

◆ visible

bool eve::scene::NodeDesc::visible = true

在文件 NodeDesc.h22 行定义.

被这些函数引用 eve::scene::Scene::serializeHostAt() , 以及 withVisible().

◆ x

float eve::scene::NodeDesc::x = 0.f

在文件 NodeDesc.h29 行定义.

被这些函数引用 withPosition().

◆ y

float eve::scene::NodeDesc::y = 0.f

在文件 NodeDesc.h29 行定义.

被这些函数引用 withPosition().

◆ yaw

float eve::scene::NodeDesc::yaw = 0.f

在文件 NodeDesc.h30 行定义.

被这些函数引用 withRotation().

◆ z

float eve::scene::NodeDesc::z = 0.f

在文件 NodeDesc.h29 行定义.

被这些函数引用 withPosition().


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