Scene graph query/mutation surface (provided by the scene module).
更多...
#include <SceneQuery.h>
|
| 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< SceneNodeInfo > | nodes (int limit) const =0 |
| | Depth-first node list of the active host, capped at limit.
|
| |
| virtual std::vector< SceneNodeInfo > | nodesOf (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.
|
| |
Scene graph query/mutation surface (provided by the scene module).
在文件 SceneQuery.h 第 30 行定义.
◆ ~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 |
◆ 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 |
该类的文档由以下文件生成: