|
0.45.0
|
#include <iNodeManager.h>
Inherits igor::iModule< iNodeManager >.
Classes | |
| struct | iAction |
Public Member Functions | |
| iNodePtr | getNode (iNodeID id) const |
| void | getNodes (std::vector< iNodeID > &nodes, iNodeType nodeType) |
| void | getNodes (std::vector< iNodeID > &nodes) |
| bool | isNode (iNodeID id) const |
| iNodePtr | createCopy (iNodePtr node) |
| void | destroyNodeAsync (iNodePtr node) |
| void | destroyNodeAsync (iNodeID nodeID) |
| void | applyActionsAsync (const std::vector< iAction > &actionQueue) |
| template<class T > | |
| T * | createNode (const iaString &name="") |
| void | insertNodeAsync (iNodePtr parent, iNodePtr child) |
| void | removeNodeAsync (iNodePtr parent, iNodePtr child) |
| void | setActiveAsync (iNodePtr node, bool active) |
| void | flush () |
| template<class T > | |
| T * | createNode (const iaString &name) |
Friends | |
| class | iModule< iNodeManager > |
| class | iApplication |
| class | iScene |
| class | iNode |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iModule< iNodeManager > | |
| static IGOR_INLINE iNodeManager & | getInstance () |
| static IGOR_INLINE bool | isInstantiated () |
| static void | createInstance () |
| static void | destroyInstance () |
Protected Member Functions inherited from igor::iModule< iNodeManager > | |
| iModule ()=default | |
| virtual | ~iModule ()=default |
creates and destroys nodes
| void igor::iNodeManager::applyActionsAsync | ( | const std::vector< iAction > & | actionQueue | ) |
applys asynchrounous actions to nodes
| actionQueue | list of actions to be executed |
create copy of node
| node | the node to copy |
| T * igor::iNodeManager::createNode | ( | const iaString & | name | ) |
| T * igor::iNodeManager::createNode | ( | const iaString & | name = "" | ) |
creates a node
| void igor::iNodeManager::destroyNodeAsync | ( | iNodeID | nodeID | ) |
destroys node and all its children
node get's destroyed in main thread in next frame
| nodeID | id of node (asynchronously) |
| void igor::iNodeManager::destroyNodeAsync | ( | iNodePtr | node | ) |
destroys node and all its children (asynchronously)
node get's destroyed in main thread in next frame
| node | pointer to node to be destroyed |
| void igor::iNodeManager::flush | ( | ) |
flushing queues and updating scenes
get node by id
| id | id of ndoe |
| void igor::iNodeManager::getNodes | ( | std::vector< iNodeID > & | nodes | ) |
returns list of all nodes
| [out] | all | nodes |
returns list of all nodes with given node type
| [out] | nodes | returned by this function |
| nodeType | the given node type |
inserts one node as child to an other (asynchronously)
the actual insertion happens in the main thread
| parent | the future parent node |
| child | the child to be inserted |
| IGOR_INLINE bool iNodeManager::isNode | ( | iNodeID | id | ) | const |
| id | the nodes ID |
removes one node from an other (asynchronously)
the actual removal happens in the main thread
| parent | parent node |
| child | the child to be removed |
| void igor::iNodeManager::setActiveAsync | ( | iNodePtr | node, |
| bool | active | ||
| ) |
sets node active/inactive (asynchronously)
| node | pointer to node |
| active | the active/inactive flag |
|
friend |
|
friend |
|
friend |
|
friend |