![]() |
Murl Engine API
Version 2018.3
|
The ISwitch graph node interface. More...
#include <murl_graph_i_switch.h>
The ISwitch graph node interface.
Graph::ISwitch nodes provide an easy and efficient way to select at most one child among a given number of children to be active and visible at the same time.
The currently active child can be either selected via the Graph::IIndexed base interface by specifying that child's index, or by calling SetSelectedChild() with a given child node ID. When doing so, any previously active other child gets deactivated.
Public Member Functions | |
virtual INode * | GetNodeInterface ()=0 |
Get the mutable Graph::INode interface. More... | |
virtual const INode * | GetNodeInterface () const =0 |
Get the constant Graph::INode interface. More... | |
virtual Bool | SetSelectedChild (const String &id)=0 |
Set the currently active child node. More... | |
virtual INode * | GetSelectedChild () const =0 |
Get the currently active child node. More... | |
virtual Bool | IsChildSelected (const Char *id) const =0 |
Check if a child with a given node ID is currently active. More... | |
virtual Bool | IsChildSelected (const String &id) const =0 |
Check if a child with a given node ID is currently active. More... | |
![]() | |
virtual Bool | SetIndex (SInt32 index)=0 |
Set the current index. More... | |
virtual SInt32 | GetIndex () const =0 |
Get the current index. More... | |
virtual SInt32 | GetFirstIndex () const =0 |
Get the lowest valid index. More... | |
virtual UInt32 | GetNumberOfIndices () const =0 |
Get the total number of valid indices. More... | |
|
pure virtual |
Get the mutable Graph::INode interface.
This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.
|
pure virtual |
Get the constant Graph::INode interface.
This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Set the currently active child node.
id | The node ID of the child to activate. |
|
pure virtual |
Get the currently active child node.
Check if a child with a given node ID is currently active.
id | The child node ID to check. |
Check if a child with a given node ID is currently active.
id | The child node ID to check. |