载入中...
搜索中...
未找到
eve::ISceneQuery类 参考abstract

Scene graph query/mutation surface (provided by the scene module). 更多...

#include <SceneQuery.h>

Public 成员函数

virtual ~ISceneQuery ()=default
 
virtual std::string activeHost () const =0
 Name of the currently selected host, or "" when none.
 
virtual int hostCount () const =0
 Number of mounted hosts.
 
virtual std::string hostNameAt (int index) const =0
 Name of the host at index.
 
virtual int nodeCount () const =0
 Node count of the active host (0 when none).
 
virtual std::string rootId () const =0
 Root node id of the active host, or "".
 
virtual std::vector< SceneNodeInfonodes (int limit) const =0
 Depth-first node list of the active host, capped at limit.
 
virtual std::vector< SceneNodeInfonodesOf (const std::string &host, int limit) const =0
 Node list of a named host, capped at limit.
 
virtual bool getNode (const std::string &id, SceneNodeInfo *out) const =0
 Look up one node in the active host.
 
virtual bool getNodeIn (const std::string &host, const std::string &id, SceneNodeInfo *out) const =0
 Look up one node in a named host.
 
virtual bool setNodeTransform (const std::string &id, float x, float y, float z)=0
 Mutate the active host's node transform (marks subtree dirty).
 
virtual bool setNodeVisible (const std::string &id, bool visible)=0
 Show/hide a node in the active host.
 
virtual void syncTransforms ()=0
 Propagate local transforms -> world for every host.
 

静态 Public 属性

static constexpr const char * capabilityName = "ISceneQuery"
 

详细描述

Scene graph query/mutation surface (provided by the scene module).

在文件 SceneQuery.h30 行定义.

构造及析构函数说明

◆ ~ISceneQuery()

virtual eve::ISceneQuery::~ISceneQuery ( )
virtualdefault

成员函数说明

◆ activeHost()

virtual std::string eve::ISceneQuery::activeHost ( ) const
pure virtual

Name of the currently selected host, or "" when none.

◆ getNode()

virtual bool eve::ISceneQuery::getNode ( const std::string &  id,
SceneNodeInfo out 
) const
pure virtual

Look up one node in the active host.

◆ getNodeIn()

virtual bool eve::ISceneQuery::getNodeIn ( const std::string &  host,
const std::string &  id,
SceneNodeInfo out 
) const
pure virtual

Look up one node in a named host.

◆ hostCount()

virtual int eve::ISceneQuery::hostCount ( ) const
pure virtual

Number of mounted hosts.

◆ hostNameAt()

virtual std::string eve::ISceneQuery::hostNameAt ( int  index) const
pure virtual

Name of the host at index.

◆ nodeCount()

virtual int eve::ISceneQuery::nodeCount ( ) const
pure virtual

Node count of the active host (0 when none).

◆ nodes()

virtual std::vector< SceneNodeInfo > eve::ISceneQuery::nodes ( int  limit) const
pure virtual

Depth-first node list of the active host, capped at limit.

◆ nodesOf()

virtual std::vector< SceneNodeInfo > eve::ISceneQuery::nodesOf ( const std::string &  host,
int  limit 
) const
pure virtual

Node list of a named host, capped at limit.

◆ rootId()

virtual std::string eve::ISceneQuery::rootId ( ) const
pure virtual

Root node id of the active host, or "".

◆ setNodeTransform()

virtual bool eve::ISceneQuery::setNodeTransform ( const std::string &  id,
float  x,
float  y,
float  z 
)
pure virtual

Mutate the active host's node transform (marks subtree dirty).

◆ setNodeVisible()

virtual bool eve::ISceneQuery::setNodeVisible ( const std::string &  id,
bool  visible 
)
pure virtual

Show/hide a node in the active host.

◆ syncTransforms()

virtual void eve::ISceneQuery::syncTransforms ( )
pure virtual

Propagate local transforms -> world for every host.

类成员变量说明

◆ capabilityName

constexpr const char* eve::ISceneQuery::capabilityName = "ISceneQuery"
staticconstexpr

在文件 SceneQuery.h32 行定义.


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