An AbstractTask to execute a Method on a SceneNode. More...
#include <CallMethodTask.h>
Public Member Functions | |
CallMethodTask (const QualifiedName &method) | |
Creates a new CallMethodTask. | |
virtual | ~CallMethodTask () |
Deletes this CallMethodTask. | |
virtual ptr< Task > | getTask (ptr< Object > context) |
Creates a new task. | |
Protected Member Functions | |
CallMethodTask () | |
Creates an empty CallMethodTask. | |
void | init (const QualifiedName &method) |
Initializes this CallMethodTask. | |
void | swap (ptr< CallMethodTask > t) |
Swaps this CallMethodTask with the given one. |
An AbstractTask to execute a Method on a SceneNode.
ork::CallMethodTask::CallMethodTask | ( | const QualifiedName & | method | ) |
Creates a new CallMethodTask.
method | a "node.method" qualified name. The first part specifies the scene node on which the method must be called. The second part specifies the name of the method that must be called. |
virtual ork::CallMethodTask::~CallMethodTask | ( | ) | [virtual] |
Deletes this CallMethodTask.
ork::CallMethodTask::CallMethodTask | ( | ) | [protected] |
Creates an empty CallMethodTask.
Creates a new task.
context | an optional parameter to control the task creation. |
Implements ork::TaskFactory.
void ork::CallMethodTask::init | ( | const QualifiedName & | method | ) | [protected] |
Initializes this CallMethodTask.
method | a "node.method" qualified name. The first part specifies the scene node on which the method must be called. The second part specifies the name of the method that must be called. |
void ork::CallMethodTask::swap | ( | ptr< CallMethodTask > | t | ) | [protected] |
Swaps this CallMethodTask with the given one.
t | a CallMethodTask. |