ork::DrawMeshTask Class Reference
[scenegraph]

An AbstractTask to draw a mesh. More...

#include <DrawMeshTask.h>

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

List of all members.

Public Member Functions

 DrawMeshTask (const QualifiedName &mesh, int count=1)
 Creates a new DrawMeshTask.
virtual ~DrawMeshTask ()
 Deletes this DrawMeshTask.
virtual ptr< TaskgetTask (ptr< Object > context)
 Creates a new task.

Protected Member Functions

 DrawMeshTask ()
 Creates an empty DrawMeshTask.
void init (const QualifiedName &mesh, int count)
 Initializes this DrawMeshTask.
void swap (ptr< DrawMeshTask > t)
 Swaps this DrawMeshTask with anoter one.

Detailed Description

An AbstractTask to draw a mesh.

The mesh is drawn using the current framebuffer and the current program.


Constructor & Destructor Documentation

ork::DrawMeshTask::DrawMeshTask ( const QualifiedName mesh,
int  count = 1 
)

Creates a new DrawMeshTask.

Parameters:
mesh a "node.mesh" qualified name. The first part specifies the scene node that contains the mesh. The second part specifies the name of the mesh in this node.
count the number of time this mesh must be drawn.
virtual ork::DrawMeshTask::~DrawMeshTask (  )  [virtual]

Deletes this DrawMeshTask.

ork::DrawMeshTask::DrawMeshTask (  )  [protected]

Creates an empty DrawMeshTask.


Member Function Documentation

virtual ptr<Task> ork::DrawMeshTask::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::DrawMeshTask::init ( const QualifiedName mesh,
int  count 
) [protected]

Initializes this DrawMeshTask.

Parameters:
mesh a "node.mesh" qualified name. The first part specifies the scene node that contains the mesh. The second part specifies the name of the mesh in this node.
count the number of time this mesh must be drawn.
void ork::DrawMeshTask::swap ( ptr< DrawMeshTask t  )  [protected]

Swaps this DrawMeshTask with anoter one.

Parameters:
t a DrawMeshTask.

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