#include <ArActionGroup.h>
Inheritance diagram for ArActionGroup:
This class is used to collect a group of related ArActions together, and easily turn them on and off in aggregate. The group list may also be retrieved for performing any other operation you wish (e.g. to delete or get information about them.)
Public Member Functions | |
virtual void | activate (void) |
Activates all the actions in this group. | |
virtual void | activateExclusive (void) |
Activates all the actions in this group and deactivates all others. | |
virtual void | addAction (ArAction *action, int priority) |
Adds an action to this group's robot, and associates the action with this group. | |
ArActionGroup (ArRobot *robot) | |
Constructor. | |
virtual void | deactivate (void) |
Deactivates all the actions in this group. | |
virtual void | deleteActions (void) |
Delets all the actions in this group (doesn't delete them right now). | |
virtual std::list< ArAction * > * | getActionList (void) |
Gets the action list (use this to delete actions after doing removeActions). | |
virtual void | remAction (ArAction *action) |
Removes the action from this group's robot and dissasociates it from this group. | |
virtual void | removeActions (void) |
Removes all the actions in this group from the robot. | |
virtual | ~ArActionGroup () |
Destructor, it also deletes the actions in its group. | |
Protected Attributes | |
std::list< ArAction * > | myActions |
ArRobot * | myRobot |
|
Constructor.
|
|
Adds an action to this group's robot, and associates the action with this group. The given action will be included in this group, and then added to this group's robot (specified in the constructor) by using ArRobot::addAction().
|
|
Removes the action from this group's robot and dissasociates it from this group.
|