![]() |
open_iA
2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Class currently containing most IO operations (file reading and writing). More...
#include <iAIO.h>
Signals | |
| void | done (bool active=false) |
| void | failed () |
Signals inherited from iAAlgorithm | |
| void | aprogress (int i) |
| void | startUpdate (int ch=1) |
Public Member Functions | |
| const QString & | additionalInfo () |
| Get additional information (if any, e.g. for a volume stack) More... | |
| const QString & | fileName () |
| Get the name of the file that was read. More... | |
| iAIO (iALogger *logger, QWidget *parent, std::vector< vtkSmartPointer< vtkImageData > > *volumes, std::vector< QString > *fileNames=0) | |
| iAIO (QSharedPointer< iAModalityList > modalities, vtkCamera *cam, iALogger *logger) | |
| iAIO (vtkImageData *i, vtkPolyData *p, iALogger *logger, QWidget *parent=0, std::vector< vtkSmartPointer< vtkImageData > > *volumes=0, std::vector< QString > *fileNames=0) | |
| void | init (QWidget *par) |
| initialize variables More... | |
| int | ioID () const |
| Get the type of file being read. More... | |
| QSharedPointer< iAModalityList > | modalities () |
| Get the list of modalities that were read. More... | |
| void | setAdditionalInfo (QString const &additionalInfo) |
| Set additional information for the current file. More... | |
| bool | setupIO (iAIOType type, QString fileName, bool compression=false, int channel=-1) |
| Set up the file IO specified by the parameters. More... | |
| virtual | ~iAIO () |
Public Member Functions inherited from iAAlgorithm | |
| void | AddImage (vtkImageData *i) |
| void | addMsg (QString txt) |
| void | allocConnectors (int size) |
| const QVector< iAConnector * > & | Connectors () const |
| get all connectors More... | |
| bool | deleteConnector (iAConnector *c) |
| iAConnector * | getConnector () const |
| return first element of the connectors More... | |
| QString | getFilterName () const |
| vtkImageData * | getVtkImageData () |
| vtkPolyData * | getVtkPolyData () |
| iAAlgorithm (QString fn, vtkImageData *i, vtkPolyData *p, iALogger *l, QObject *parent=nullptr) | |
| void | itkMesh_vtkPolydata (MeshType::Pointer mesh, vtkPolyData *polyData) |
| iALogger * | logger () const |
| iAProgress * | ProgressObserver () |
| virtual void | SafeTerminate () |
| void | setup (QString fn, vtkImageData *i, vtkPolyData *p, iALogger *l) |
| void | Start () |
| int | Stop () |
| void | vtkPolydata_itkMesh (vtkPolyData *polyData, MeshType::Pointer mesh) |
| virtual | ~iAAlgorithm () |
Static Public Attributes | |
| static const QString | VolstackExtension |
Protected Member Functions | |
| void | run () override |
| Performs the actual work. More... | |
Protected Member Functions inherited from iAAlgorithm | |
| virtual void | performWork () |
| Method that performs the algorithm's work, to be overridden in child classes. More... | |
| void | setImageData (vtkImageData *imgData) |
| sets the image data More... | |
Additional Inherited Members | |
Public Slots inherited from iAAlgorithm | |
| void | updateVtkImageData (int ch) |
Class currently containing most IO operations (file reading and writing).
Should be split up into readers for specific formats!
| iAIO::iAIO | ( | vtkImageData * | i, |
| vtkPolyData * | p, | ||
| iALogger * | logger, | ||
| QWidget * | parent = 0, |
||
| std::vector< vtkSmartPointer< vtkImageData > > * | volumes = 0, |
||
| std::vector< QString > * | fileNames = 0 |
||
| ) |
| iAIO::iAIO | ( | iALogger * | logger, |
| QWidget * | parent, | ||
| std::vector< vtkSmartPointer< vtkImageData > > * | volumes, | ||
| std::vector< QString > * | fileNames = 0 |
||
| ) |
| iAIO::iAIO | ( | QSharedPointer< iAModalityList > | modalities, |
| vtkCamera * | cam, | ||
| iALogger * | logger | ||
| ) |
|
virtual |
| const QString & iAIO::additionalInfo | ( | ) |
Get additional information (if any, e.g. for a volume stack)
|
signal |
|
signal |
| const QString & iAIO::fileName | ( | ) |
Get the name of the file that was read.
| void iAIO::init | ( | QWidget * | par | ) |
initialize variables
| int iAIO::ioID | ( | ) | const |
Get the type of file being read.
| QSharedPointer< iAModalityList > iAIO::modalities | ( | ) |
Get the list of modalities that were read.
|
overrideprotectedvirtual |
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 from iAAlgorithm.
| void iAIO::setAdditionalInfo | ( | QString const & | additionalInfo | ) |
Set additional information for the current file.
| bool iAIO::setupIO | ( | iAIOType | type, |
| QString | fileName, | ||
| bool | compression = false, |
||
| int | channel = -1 |
||
| ) |
Set up the file IO specified by the parameters.
| type | type of the file to read |
| fileName | name of the file to read |
| compression | whether to use compression (if file format supports it) |
| channel | which channel to read/write (if file format supports more than one) |
|
static |
1.8.16