Fixing warning on mac and more description of the Task class

This commit is contained in:
Sam Cake 2017-04-10 22:17:12 -07:00
parent 5d7accca2b
commit 80c781bcdc
2 changed files with 6 additions and 5 deletions

View file

@ -37,9 +37,6 @@ void FilterLayeredItems::run(const SceneContextPointer& sceneContext, const Rend
}
void SliceItems::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemBounds& inItems, ItemBounds& outItems) {
auto& scene = sceneContext->_scene;
// Now we have a selection of items to render
outItems.clear();
std::static_pointer_cast<Config>(renderContext->jobConfig)->setNumItems((int)inItems.size());

View file

@ -570,8 +570,12 @@ protected:
};
// A task is a specialized job to run a collection of other jobs
// It is defined with JobModel = Task::Model<T>
// It can be created on any type T by aliasing the type JobModel in the class T
// using JobModel = Task::Model<T>
// The class T is expected to have a "build" method acting as a constructor.
// The build method is where child Jobs can be added internally to the task
// where the input of the task can be setup to feed the child jobs
// and where the output of the task is defined
class Task : public Job {
public:
using Config = TaskConfig;