DD::Image::TopDownGraphNotifier Class Reference

Public Member Functions

void addObserver (TopDownGraphObserver *observer)
 Register an observer so that it can receive topdown rendering events.
 
void removeObserver (TopDownGraphObserver *observer)
 Unregister an observer so that it will no longer receive topdown rendering events.
 
void graphStarted (TopDownGraphEvaluator *graph)
 Notify observers that a topdown render has started.
 
void graphStarted (OpTask *rootTask, Op *rootOp, OpTasks &opTaskMap)
 
void graphEnded (TopDownGraphEvaluator *graph)
 Notify observers that a topdown render has finished.
 
void taskSpawned (OpTask *task, bool leaf=false)
 Notify observers that a task has been spawned.
 
void taskStarted (OpTask *task)
 Notify observers that a task has started executing.
 
void taskEnded (OpTask *task)
 Notify observers that a task has finished executing.
 
void regionStarted (OpTask *task, int y)
 Notify observers that a scanline op has started rendering the region starting at position y.
 
void regionEnded (OpTask *task, int y)
 Notify observers that a scanline op has finished rendering the region ending at position y.
 

Detailed Description

TopDownGraphNotifier is a class for managing TopDownGraphObserver objects and notifying them about topdown rendering events. Observers must be registered with the addObserver method in order to receive events.

Member Function Documentation

void TopDownGraphNotifier::graphStarted ( OpTask rootTask,
Op rootOp,
OpTasks &  opTaskMap 
)

Notify observers that a topdown render has started. This version can be used for observers that need access to the full set of tasks that will be executed.



©2022 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk