ork::SequenceTask Class Reference
[scenegraph]

An AbstractTask to compose a list of tasks in a sequence. More...

#include <SequenceTask.h>

Inheritance diagram for ork::SequenceTask:
ork::AbstractTask ork::TaskFactory ork::Object

List of all members.

Public Member Functions

 SequenceTask (const vector< ptr< TaskFactory > > &subtasks)
 Creates a SequenceTask with the given list of tasks.
virtual ~SequenceTask ()
 Deletes this SequenceTask.
virtual ptr< TaskgetTask (ptr< Object > context)
 Creates a new task.

Protected Member Functions

 SequenceTask ()
 Creates an empty SequenceTask.
void init (const vector< ptr< TaskFactory > > &subtasks)
 Initializes this SequenceTask with the given list of tasks.
void swap (ptr< SequenceTask > t)
 Swaps this SequenceTask with another one.

Detailed Description

An AbstractTask to compose a list of tasks in a sequence.


Constructor & Destructor Documentation

ork::SequenceTask::SequenceTask ( const vector< ptr< TaskFactory > > &  subtasks  ) 

Creates a SequenceTask with the given list of tasks.

Parameters:
subtasks the tasks that must be composed into a sequence.
virtual ork::SequenceTask::~SequenceTask (  )  [virtual]

Deletes this SequenceTask.

ork::SequenceTask::SequenceTask (  )  [protected]

Creates an empty SequenceTask.


Member Function Documentation

virtual ptr<Task> ork::SequenceTask::getTask ( ptr< Object context  )  [virtual]

Creates a new task.

Parameters:
context an optional parameter to control the task creation.
Returns:
the created task.

Implements ork::TaskFactory.

void ork::SequenceTask::init ( const vector< ptr< TaskFactory > > &  subtasks  )  [protected]

Initializes this SequenceTask with the given list of tasks.

Parameters:
subtasks the tasks that must be composed into a sequence.
void ork::SequenceTask::swap ( ptr< SequenceTask t  )  [protected]

Swaps this SequenceTask with another one.

Parameters:
t a SequenceTask.

Generated on Mon Oct 18 09:36:11 2010 for ork by  doxygen 1.6.1