ork::SetTransformsTask Class Reference
[scenegraph]

An AbstractTask to set transformation matrices in programs. More...

#include <SetTransformsTask.h>

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

List of all members.

Public Member Functions

 SetTransformsTask (const string &screen, QualifiedName m, const char *t, const char *ltow, const char *ltos, const char *ctow, const char *ctos, const char *stoc, const char *wtos, const char *wp, const char *wd)
 Creates a new SetTransformsTask.
virtual ~SetTransformsTask ()
 Deletes this SetTransformsTask.
virtual ptr< TaskgetTask (ptr< Object > context)
 Creates a new task.

Protected Member Functions

 SetTransformsTask ()
 Creates an uninitialized SetTransformsTask.
void init (const string &screen, QualifiedName m, const char *t, const char *ltow, const char *ltos, const char *ctow, const char *ctos, const char *stoc, const char *wtos, const char *wp, const char *wd)
 Initializes this SetTransformsTask.
void swap (ptr< SetTransformsTask > t)
 Swaps this SetTransformsTask with the given one.

Detailed Description

An AbstractTask to set transformation matrices in programs.


Constructor & Destructor Documentation

ork::SetTransformsTask::SetTransformsTask ( const string &  screen,
QualifiedName  m,
const char *  t,
const char *  ltow,
const char *  ltos,
const char *  ctow,
const char *  ctos,
const char *  stoc,
const char *  wtos,
const char *  wp,
const char *  wd 
)

Creates a new SetTransformsTask.

Parameters:
screen the "screen" node to be used for transformation involving the "screen" space. An empty name means the "real" screen space of the camera node.
m a "node.module" qualified name. The first part specifies the scene node that contains the module. The second part specifies the name of a module in this node. This module is used to find the uniforms that this task must set.
t the vec2 uniform that contains time of current frame and time elapsed since last frame.
ltow the mat4 uniform to be set to the local to world transformation.
ltos the mat4 uniform to be set to the local to screen transformation.
ctow the mat4 uniform to be set to the camera to world transformation.
ctos the mat4 uniform to be set to the camera to screen transformation.
stoc the mat4 uniform to be set to the screen to camera transformation.
wtos the mat4 uniform to be set to the world to screen transformation.
wp the vec3 uniform to be set to the world coordinates of the origin of the local frame.
wd the vec3 uniform to be set to the world coordinates of the unit z vector of the local frame.
virtual ork::SetTransformsTask::~SetTransformsTask (  )  [virtual]

Deletes this SetTransformsTask.

ork::SetTransformsTask::SetTransformsTask (  )  [protected]

Creates an uninitialized SetTransformsTask.


Member Function Documentation

virtual ptr<Task> ork::SetTransformsTask::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::SetTransformsTask::init ( const string &  screen,
QualifiedName  m,
const char *  t,
const char *  ltow,
const char *  ltos,
const char *  ctow,
const char *  ctos,
const char *  stoc,
const char *  wtos,
const char *  wp,
const char *  wd 
) [protected]

Initializes this SetTransformsTask.

See SetTransformsTask.

void ork::SetTransformsTask::swap ( ptr< SetTransformsTask t  )  [protected]

Swaps this SetTransformsTask with the given one.

Parameters:
t a SetTransformsTask.

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