#include <Action.hpp>
Inheritance diagram for vrvis::Action:
Public Member Functions | |
Destructor | |
virtual | ~Action (void) |
Virtual destructor. | |
Accessors | |
const std::string & | getName (void) const |
Name accessor. | |
Protected Member Functions | |
Constructor | |
Action (const std::string &crName) | |
Standard constructor. | |
Accessors | |
Input * | getInput (void) const |
Input accessor for child classes. | |
Activation | |
virtual void | activate (void) |
Commands to execute on activation of this Action. | |
virtual void | deactivate (void) |
Commands to execute on deactivation of this Action. | |
Static Protected Member Functions | |
Action * | getByName (const std::string &crName) |
Static function for Action access by name. |
|
Virtual destructor. |
|
Constructs an Action with the given name and adds it to the static storage. May only be called by child classes.
|
|
A virtual method, through which each Action can execute code on activation of the owning ActionSet, if desired. It is called once for each Action right after changing the active ActionSet. The default implementation is empty.
Reimplemented in vrvis::SelectAction< SelectableT >.
|
|
A virtual method, through which each Action can execute code on deactivation of the owning ActionSet, if desired. It is called once for each Action right before changing the active ActionSet. The default implementation is empty.
Reimplemented in vrvis::SelectAction< SelectableT >.
|
|
Accesses the Action object with the given name.
|
|
Accesses the Input object, prints error message and exits if Action is not yet added to an ActionSet.
|
|
Accesses the name of the Action object.
|