|
0.45.0
|
#include <iNodeSwitch.h>
Inherits igor::iNode.
Public Member Functions | |
| void | setActiveChild (const iaString &name) |
| void | setActiveChild (iNodePtr node) |
| void | setActiveChild (uint32 id) |
Public Member Functions inherited from igor::iNode | |
| iNodeKind | getKind () const |
| iNodeType | getType () const |
| iNodeID | getID () const |
| const iaString & | getName () const |
| virtual std::vector< iaString > | getInfo (bool brief=false) const |
| void | setName (const iaString &name) |
| void | insertNode (iNodePtr node) |
| void | insertNodeAsync (iNodePtr node) |
| void | setActive (bool active=true) |
| void | setActiveAsync (bool active=true) |
| void | removeNode (iNodePtr node) |
| void | removeNodeAsync (iNodePtr node) |
| bool | isChild () |
| bool | isChild (iNodePtr child) |
| bool | hasChildren () |
| const std::vector< iNodePtr > & | getChildren () const |
| void | getAllChildren (std::vector< iNodePtr > &children) const |
| iNodePtr | getChild (const iaString &name) |
| iNodePtr | getChild (iNodeID id) |
| const std::vector< iNodePtr > & | getInactiveChildren () const |
| iNodePtr | getParent () |
| iScenePtr | getScene () |
| bool | isTransformationDirty () |
| void | setTransformationDirty (bool dirty=true) |
| void | calcWorldTransformation (iaMatrixd &matrix) |
| bool | isActive () const |
| iTransformationChangeEvent & | getTransformationChangeEvent () |
Friends | |
| class | iNodeManager |
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iNode | |
| static iaString | getKindName (iNodeKind kind) |
| static iaString | getTypeName (iNodeType nodeType) |
Static Public Attributes inherited from igor::iNode | |
| static const iNodeID | INVALID_NODE_ID = IGOR_INVALID_ID |
Protected Member Functions inherited from igor::iNode | |
| void | setTransformationDirtyDown () |
| void | setTransformationDirtyUp () |
| void | setDataDirty () |
| bool | isDataDirty () |
| void | setParent (iNodePtr parent) |
| void | setScene (iScenePtr scene) |
| virtual void | onUpdateTransform (iaMatrixd &matrix) |
| virtual void | onPreSetScene () |
| virtual void | onPostSetScene () |
| virtual bool | onUpdateData () |
| virtual void | onPostCopyLink (std::map< iNodeID, iNodeID > &nodeIDMap) |
| iNode () | |
| iNode (iNodePtr node) | |
| virtual | ~iNode () |
Protected Attributes inherited from igor::iNode | |
| bool | _active = true |
| iNodeType | _nodeType = iNodeType::iNode |
| iNodeKind | _nodeKind = iNodeKind::Node |
| iaString | _name = L"iNode" |
| bool | _transformationDirty = true |
| iScenePtr | _scene = nullptr |
| iNodePtr | _parent = nullptr |
| std::vector< iNodePtr > | _children |
| std::vector< iNodePtr > | _inactiveChildren |
| iTransformationChangeEvent | _transformationChangeEvent |
the switch node. Has multiple children like every node but only one can be active at a time
| void igor::iNodeSwitch::setActiveChild | ( | const iaString & | name | ) |
sets the active child by name
if name is not found all children are deactivated
| name | the name of the child |
| void igor::iNodeSwitch::setActiveChild | ( | iNodePtr | node | ) |
sets the active child by object
if node pointer is nullptr all children are deactivated
| node | pointer to node object |
| void igor::iNodeSwitch::setActiveChild | ( | uint32 | id | ) |
sets the active child by id
if id is not found all children are deactivated
| id | node id |
|
friend |