ork::SetTargetTask Class Reference
[scenegraph]

An AbstractTask to set the attachments of a framebuffer. More...

#include <SetTargetTask.h>

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

List of all members.

Classes

struct  Target
 A framebuffer attachment specification. More...

Public Member Functions

 SetTargetTask (const vector< Target > &targets, bool autoResize)
 Creates a new SetTargetTask.
virtual ~SetTargetTask ()
 Deletes this SetTargetTask.
virtual ptr< TaskgetTask (ptr< Object > context)
 Creates a new task.

Static Public Member Functions

static ptr< FrameBuffergetOffscreenBuffer ()
 Returns a shared offscreen framebuffer.

Protected Member Functions

 SetTargetTask ()
 Creates an uninitialized SetTargetTask.
void init (const vector< Target > &targets, bool autoResize)
 Initializes this SetTargetTask.
void swap (ptr< SetTargetTask > t)
 Swaps this SetTargetTask with the given one.

Detailed Description

An AbstractTask to set the attachments of a framebuffer.


Constructor & Destructor Documentation

ork::SetTargetTask::SetTargetTask ( const vector< Target > &  targets,
bool  autoResize 
)

Creates a new SetTargetTask.

Parameters:
targets the framebuffer attachments to be set.
autoResize true to automatically resize the target textures to the default framebuffer viewport size.
virtual ork::SetTargetTask::~SetTargetTask (  )  [virtual]

Deletes this SetTargetTask.

ork::SetTargetTask::SetTargetTask (  )  [protected]

Creates an uninitialized SetTargetTask.


Member Function Documentation

static ptr<FrameBuffer> ork::SetTargetTask::getOffscreenBuffer (  )  [static]

Returns a shared offscreen framebuffer.

virtual ptr<Task> ork::SetTargetTask::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::SetTargetTask::init ( const vector< Target > &  targets,
bool  autoResize 
) [protected]

Initializes this SetTargetTask.

Parameters:
targets the framebuffer attachments to be set.
autoResize true to automatically resize the target textures to the default framebuffer viewport size.
void ork::SetTargetTask::swap ( ptr< SetTargetTask t  )  [protected]

Swaps this SetTargetTask with the given one.

Parameters:
t a SetTargetTask.

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