ork::SetProgramTask Class Reference
[scenegraph]

An AbstractTask to set a program. More...

#include <SetProgramTask.h>

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

List of all members.

Public Member Functions

 SetProgramTask (const vector< QualifiedName > &modules, bool setUniforms)
 Creates a SetProgramTask.
virtual ~SetProgramTask ()
 Deletes this SetProgramTask.
virtual ptr< TaskgetTask (ptr< Object > context)
 Creates a new task.

Protected Member Functions

 SetProgramTask ()
 Creates an uninitialized SetProgramTask.
void init (const vector< QualifiedName > &modules, bool setUniforms)
 Initializes this SetProgramTask.
void swap (ptr< SetProgramTask > t)
 Swaps this SetProgramTask with the given one.

Detailed Description

An AbstractTask to set a program.


Constructor & Destructor Documentation

ork::SetProgramTask::SetProgramTask ( const vector< QualifiedName > &  modules,
bool  setUniforms 
)

Creates a SetProgramTask.

Parameters:
modules the modules of the program to be set. Each module is specified by a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of the module in this node.
setUniforms true to set the uniforms of the program, using the values defined in the scene node from which this task is called.
virtual ork::SetProgramTask::~SetProgramTask (  )  [virtual]

Deletes this SetProgramTask.

ork::SetProgramTask::SetProgramTask (  )  [protected]

Creates an uninitialized SetProgramTask.


Member Function Documentation

virtual ptr<Task> ork::SetProgramTask::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::SetProgramTask::init ( const vector< QualifiedName > &  modules,
bool  setUniforms 
) [protected]

Initializes this SetProgramTask.

Parameters:
modules the modules of the program to be set. Each module is specified by a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of the module in this node.
setUniforms true to set the uniforms of the program, using the values defined in the scene node from which this task is called.
void ork::SetProgramTask::swap ( ptr< SetProgramTask t  )  [protected]

Swaps this SetProgramTask with the given one.

Parameters:
t a SetProgramTask.

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