iVS3D v2.0.0
Loading...
Searching...
No Matches
AlgorithmThread< outType > Class Template Referenceabstract

The AlgorithmThread class is used to start the execution of a major plugin task on a new thread. The templated type will be used to define the type of output which is generated by the plugin task. More...

#include <algorithmthread.h>

Inheritance diagram for AlgorithmThread< outType >:

Public Member Functions

 AlgorithmThread (Progressable *receiver, std::vector< uint > images, volatile bool *stopped, int pluginIdx, bool useCuda)
 AlgorithmThread Constructor which takes all parameters used by IAlgorithm.
 
outType getOutput ()
 getOutput getter for the computed output (for example keyframes or generated settings )
 
int getResult ()
 getResult Getter for the status of the plugin calulation
 

Protected Member Functions

virtual void run ()=0
 QThread method stub which is implemented in its child classes.
 

Detailed Description

template<typename outType>
class AlgorithmThread< outType >

The AlgorithmThread class is used to start the execution of a major plugin task on a new thread. The templated type will be used to define the type of output which is generated by the plugin task.

Author
Dominic Zahn
Date
2021/02/08

Constructor & Destructor Documentation

◆ AlgorithmThread()

template<typename outType >
AlgorithmThread< outType >::AlgorithmThread ( Progressable receiver,
std::vector< uint >  images,
volatile bool *  stopped,
int  pluginIdx,
bool  useCuda 
)

AlgorithmThread Constructor which takes all parameters used by IAlgorithm.

Parameters
parametersaccording to IAlgorithm

Member Function Documentation

◆ getOutput()

template<typename outType >
outType AlgorithmThread< outType >::getOutput ( )

getOutput getter for the computed output (for example keyframes or generated settings )

Returns
The datatype of the computed output is set by the template

◆ getResult()

template<typename outType >
int AlgorithmThread< outType >::getResult ( )

getResult Getter for the status of the plugin calulation

Returns
0 if plugin executed without errors, ny other number indicates an error

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