Blue Brain BioExplorer
core::SnapshotFunctor Class Reference

#include <SnapshotTask.h>

Inheritance diagram for core::SnapshotFunctor:
Collaboration diagram for core::SnapshotFunctor:

Public Member Functions

 SnapshotFunctor (Engine &engine, SnapshotParams &&params, ImageGenerator &imageGenerator)
 
ImageGenerator::ImageBase64 operator() ()
 
- Public Member Functions inherited from core::TaskFunctor
void setProgressFunc (const ProgressFunc &progressFunc)
 
void progress (const std::string &message, const float increment, const float amount)
 
void setCancelToken (async::cancellation_token &cancelToken)
 
void cancelCheck () const
 

Additional Inherited Members

- Public Types inherited from core::TaskFunctor
using ProgressFunc = std::function< void(std::string, float, float)>
 

Detailed Description

A functor for snapshot rendering and conversion to a base64-encoded image for the web client.

Definition at line 61 of file SnapshotTask.h.

Constructor & Destructor Documentation

◆ SnapshotFunctor()

core::SnapshotFunctor::SnapshotFunctor ( Engine engine,
SnapshotParams &&  params,
ImageGenerator imageGenerator 
)
inline

Definition at line 64 of file SnapshotTask.h.

Member Function Documentation

◆ operator()()

ImageGenerator::ImageBase64 core::SnapshotFunctor::operator() ( )
inline

Definition at line 117 of file SnapshotTask.h.


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