#include <mlabBaseDicomTool.h>
Inherited by MLABFindSCU, and MLABPlainDicomTool.
Base class for all Dicom tools of this script extension. It implements basic setup and handling of the thread (if used).
◆ Encoding
Character encoding mode to use when querying a PACS.
| Enumerator |
|---|
| QueryEncoding | Do not state a SpecificCharacterSet, but request it per dataset. Values are transmitted and received Latin1-encoded, but this may generate extra result entries (with key name suffix "_display"), where the specified encoding is applied and differs from the Latin1 encoding.
|
| Latin1 | Values are transmitted and received Latin1-encoded. SpecificCharacterSet is set accordingly.
|
| Utf8 | Values are transmitted and received UTF8-encoded. SpecificCharacterSet is set accordingly.
|
◆ QueryModel
Query information model.
| Enumerator |
|---|
| PatientRoot | Query from patient root.
|
| StudyRoot | Query from study root.
|
| PatientStudyOnly | Retired from standard.
|
◆ cancel
| virtual void MLABBaseDicomTool::cancel |
( |
| ) |
|
|
pure virtualslot |
◆ finished
| void MLABBaseDicomTool::finished |
( |
bool | success | ) |
|
|
signal |
Emitted when the execution of the tool finishes (also when run synchronously).
◆ getErrorMessages
| QStringList MLABBaseDicomTool::getErrorMessages |
( |
| ) |
const |
|
slot |
Returns error messages of the last execution of this tool.
◆ run
| bool MLABBaseDicomTool::run |
( |
| ) |
|
|
slot |
Runs tool (waits until finished), returns if execution was successful.
◆ setCalledAET
| void MLABBaseDicomTool::setCalledAET |
( |
const QString & | aet | ) |
|
|
slot |
Sets AET title of the called instance.
◆ setCallingAET
| void MLABBaseDicomTool::setCallingAET |
( |
const QString & | aet | ) |
|
|
slot |
Sets AET title of the calling instance.
◆ start
| bool MLABBaseDicomTool::start |
( |
| ) |
|
|
slot |
Runs tool asynchronously. Connects to finished() signal to get notified when execution finishes.
◆ wait
| bool MLABBaseDicomTool::wait |
( |
unsigned long | time = ULONG_MAX | ) |
|
|
slot |
Waits for asynchronous execution to finish. This may also block receiving of results, so it might be better to call run() in the first place.