open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | List of all members
iAFilterRunnerGUIThread Class Reference

GUI Runner Thread for running descendants of iAFilter. More...

#include <iAFilterRunnerGUI.h>

Inheritance diagram for iAFilterRunnerGUIThread:
[legend]
Collaboration diagram for iAFilterRunnerGUIThread:
[legend]

Public Member Functions

 iAFilterRunnerGUIThread (QSharedPointer< iAFilter > filter, QMap< QString, QVariant > paramValues, iAMdiChild *mdiChild, QString const &fileName)
 
void abort () override
 
void addInput (vtkImageData *img, QString const &fileName)
 
QSharedPointer< iAFilterfilter ()
 
void performWork () override
 Method that performs the algorithm's work, to be overridden in child classes. More...
 
- Public Member Functions inherited from iAAlgorithm
 iAAlgorithm (QString fn, vtkImageData *i, vtkPolyData *p, iALogger *l, QObject *parent=nullptr)
 
virtual ~iAAlgorithm ()
 
void AddImage (vtkImageData *i)
 
void addMsg (QString txt)
 
void allocConnectors (int size)
 
QVector< iAConnector * > const & Connectors () const
 get all connectors More...
 
bool deleteConnector (iAConnector *c)
 
iAConnectorgetConnector () const
 return first element of the connectors More...
 
QString getFilterName () const
 
vtkImageData * getVtkImageData ()
 
vtkPolyData * getVtkPolyData ()
 
iALoggerlogger () const
 
iAProgressProgressObserver ()
 
virtual void SafeTerminate ()
 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. More...
 
void setup (QString fn, vtkImageData *i, vtkPolyData *p, iALogger *l)
 
void Start ()
 Start counting the running time and set the start time. More...
 
int Stop ()
 Get the elapsed time since Start call. More...
 

Additional Inherited Members

- Public Slots inherited from iAAlgorithm
void updateVtkImageData (int ch)
 
- Signals inherited from iAAlgorithm
void aprogress (int i)
 
void startUpdate (int ch=1)
 
- Protected Member Functions inherited from iAAlgorithm
virtual void run ()
 Performs the actual work. More...
 
void setImageData (vtkImageData *imgData)
 sets the image data More...
 

Detailed Description

GUI Runner Thread for running descendants of iAFilter.

Used in iAFilterRunnerGUI::run (see below) as thread to run a descendant of iAFilter inside its own thread

Constructor & Destructor Documentation

◆ iAFilterRunnerGUIThread()

iAFilterRunnerGUIThread::iAFilterRunnerGUIThread ( QSharedPointer< iAFilter filter,
QMap< QString, QVariant >  paramValues,
iAMdiChild mdiChild,
QString const &  fileName 
)

Member Function Documentation

◆ abort()

void iAFilterRunnerGUIThread::abort ( )
overridevirtual

Implements iAAbortListener.

◆ addInput()

void iAFilterRunnerGUIThread::addInput ( vtkImageData *  img,
QString const &  fileName 
)

◆ filter()

QSharedPointer< iAFilter > iAFilterRunnerGUIThread::filter ( )

◆ performWork()

void iAFilterRunnerGUIThread::performWork ( )
overridevirtual

Method that performs the algorithm's work, to be overridden in child classes.

Reimplemented from iAAlgorithm.


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