Blue Brain BioExplorer
core::AddModelTask Class Reference

#include <AddModelTask.h>

Inheritance diagram for core::AddModelTask:
Collaboration diagram for core::AddModelTask:

Public Member Functions

 AddModelTask (const ModelParams &model, Engine &engine)
 
- Public Member Functions inherited from core::Task< ModelDescriptorPtr >
 Task ()=default
 
 Task (F &&functor)
 
void schedule () override
 
ModelDescriptorPtr result ()
 
auto & get ()
 
- Public Member Functions inherited from core::AbstractTask
virtual ~AbstractTask ()=default
 
void cancel (std::function< void()> done={})
 
void finishCancel ()
 
bool canceled () const
 

Additional Inherited Members

- Public Types inherited from core::Task< ModelDescriptorPtr >
using Type = async::task< ModelDescriptorPtr >
 
- Public Attributes inherited from core::AbstractTask
Progress progress {"Scheduling task ..."}
 
- Protected Member Functions inherited from core::Task< ModelDescriptorPtr >
auto && _setupFunctor (F &&functor)
 
- Protected Attributes inherited from core::Task< ModelDescriptorPtr >
Type _task
 
- Protected Attributes inherited from core::AbstractTask
async::cancellation_token _cancelToken
 
std::function< void()> _cancelDone
 
std::atomic_bool _cancelled {false}
 

Detailed Description

A task which loads data from the path of the given params and adds the loaded model to the engines' scene.

Definition at line 33 of file AddModelTask.h.

Constructor & Destructor Documentation

◆ AddModelTask()

core::AddModelTask::AddModelTask ( const ModelParams model,
Engine engine 
)

Definition at line 33 of file AddModelTask.cpp.


The documentation for this class was generated from the following files: