Base class for algorithms running in the background.
More...
#include <iAAlgorithm.h>
|
| virtual void | performWork () |
| | Method that performs the algorithm's work, to be overridden in child classes. More...
|
| |
| virtual void | run () |
| | Performs the actual work. More...
|
| |
| void | setImageData (vtkImageData *imgData) |
| | sets the image data More...
|
| |
Base class for algorithms running in the background.
- Deprecated:
- For operations producing some kind of output (image or output values), derive from iAFilter instead. For other operations, there is no clear successor yet.
◆ iAAlgorithm()
| iAAlgorithm::iAAlgorithm |
( |
QString |
fn, |
|
|
vtkImageData * |
i, |
|
|
vtkPolyData * |
p, |
|
|
iALogger * |
l, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~iAAlgorithm()
| iAAlgorithm::~iAAlgorithm |
( |
| ) |
|
|
virtual |
◆ AddImage()
| void iAAlgorithm::AddImage |
( |
vtkImageData * |
i | ) |
|
◆ addMsg()
| void iAAlgorithm::addMsg |
( |
QString |
txt | ) |
|
◆ allocConnectors()
| void iAAlgorithm::allocConnectors |
( |
int |
size | ) |
|
◆ aprogress
| void iAAlgorithm::aprogress |
( |
int |
i | ) |
|
|
signal |
◆ Connectors()
| QVector< iAConnector * > const & iAAlgorithm::Connectors |
( |
| ) |
const |
◆ deleteConnector()
◆ getConnector()
return first element of the connectors
◆ getFilterName()
| QString iAAlgorithm::getFilterName |
( |
| ) |
const |
◆ getVtkImageData()
| vtkImageData * iAAlgorithm::getVtkImageData |
( |
| ) |
|
◆ getVtkPolyData()
| vtkPolyData * iAAlgorithm::getVtkPolyData |
( |
| ) |
|
◆ logger()
| iALogger * iAAlgorithm::logger |
( |
| ) |
const |
◆ performWork()
| void iAAlgorithm::performWork |
( |
| ) |
|
|
protectedvirtual |
Method that performs the algorithm's work, to be overridden in child classes.
Reimplemented in iAFilterRunnerGUIThread.
◆ ProgressObserver()
◆ run()
| void iAAlgorithm::run |
( |
| ) |
|
|
protectedvirtual |
Performs the actual work.
The method in this class performs some basic actions (like printing messages when the algorithm started and stopped, and basic error checking by catching any exceptions). Typically you will not want to override this method but the "performWork" method below
Reimplemented in iAIO.
◆ SafeTerminate()
| void iAAlgorithm::SafeTerminate |
( |
| ) |
|
|
virtual |
probably NOT "safe", just calls QThread::terminate (note there: "Warning: This function is dangerous and its use is discouraged.") There is no safe way to terminate algorithms implemented yet.
◆ setImageData()
| void iAAlgorithm::setImageData |
( |
vtkImageData * |
imgData | ) |
|
|
protected |
◆ setup()
| void iAAlgorithm::setup |
( |
QString |
fn, |
|
|
vtkImageData * |
i, |
|
|
vtkPolyData * |
p, |
|
|
iALogger * |
l |
|
) |
| |
◆ Start()
| void iAAlgorithm::Start |
( |
| ) |
|
Start counting the running time and set the start time.
◆ startUpdate
| void iAAlgorithm::startUpdate |
( |
int |
ch = 1 | ) |
|
|
signal |
◆ Stop()
| int iAAlgorithm::Stop |
( |
| ) |
|
Get the elapsed time since Start call.
◆ updateVtkImageData
| void iAAlgorithm::updateVtkImageData |
( |
int |
ch | ) |
|
|
slot |
The documentation for this class was generated from the following files: