Utility class to test DICOM network applications A simple DICOM archive server can be run (startDCMQRSCP()), and images can be stored into the server using storeData(). It internally uses storeSCU.
More...
#include <Libs/DICOM/Core/ctkDICOMTester.h>
|
QScopedPointer< ctkDICOMTesterPrivate > | d_ptr |
|
Utility class to test DICOM network applications A simple DICOM archive server can be run (startDCMQRSCP()), and images can be stored into the server using storeData(). It internally uses storeSCU.
Definition at line 39 of file ctkDICOMTester.h.
◆ ctkDICOMTester() [1/2]
ctkDICOMTester::ctkDICOMTester |
( |
QObject * |
parent = 0 | ) |
|
◆ ctkDICOMTester() [2/2]
ctkDICOMTester::ctkDICOMTester |
( |
const QString & |
dcmqrscp, |
|
|
const QString & |
configFile, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
◆ ~ctkDICOMTester()
virtual ctkDICOMTester::~ctkDICOMTester |
( |
| ) |
|
|
virtual |
◆ dcmqrscpConfigFile()
QString ctkDICOMTester::dcmqrscpConfigFile |
( |
| ) |
const |
◆ dcmqrscpExecutable()
QString ctkDICOMTester::dcmqrscpExecutable |
( |
| ) |
const |
◆ dcmqrscpPort()
int ctkDICOMTester::dcmqrscpPort |
( |
| ) |
const |
◆ setDCMQRSCPConfigFile()
void ctkDICOMTester::setDCMQRSCPConfigFile |
( |
const QString & |
configFile | ) |
|
◆ setDCMQRSCPExecutable()
void ctkDICOMTester::setDCMQRSCPExecutable |
( |
const QString & |
dcmqrscp | ) |
|
◆ setDCMQRSCPPort()
void ctkDICOMTester::setDCMQRSCPPort |
( |
int |
port | ) |
|
Port number [0,65365] where the dcmqrscp and storescu communicate. Changing the port won't change the port of any running process. You must stop and restart any process you want to have its port changed
◆ setStoreSCPExecutable()
void ctkDICOMTester::setStoreSCPExecutable |
( |
const QString & |
storescp | ) |
|
◆ setStoreSCUExecutable()
void ctkDICOMTester::setStoreSCUExecutable |
( |
const QString & |
storescu | ) |
|
◆ startDCMQRSCP()
Q_INVOKABLE QProcess* ctkDICOMTester::startDCMQRSCP |
( |
| ) |
|
Starts a new DCMQRSCP as a separate process. The process is running until stopDCMQRSCP is called or ctkDICOMTester is destroyed. Only one process of DCMQRSCP can be running at a time. Calling startDCMQRSCP() while a DCMQRSCP process is already running results into a no-op. The return value is 0.
- See also
- QProcess::start(),
◆ stopDCMQRSCP()
Q_INVOKABLE bool ctkDICOMTester::stopDCMQRSCP |
( |
| ) |
|
Stop the running DCMQRSCP process. Returns it's exit status or false if there is no running process.
◆ storeData()
Q_INVOKABLE bool ctkDICOMTester::storeData |
( |
const QStringList & |
data | ) |
|
Pushes data (DCM images referred to by file name in data list) using DCMTK storeSCU app. It creates a separate process and waits for its termination. To be working, dcmqrscp must be running
- See also
- startDCMQRSCP()
◆ storeSCPExecutable()
QString ctkDICOMTester::storeSCPExecutable |
( |
| ) |
const |
◆ storeSCUExecutable()
QString ctkDICOMTester::storeSCUExecutable |
( |
| ) |
const |
◆ d_ptr
QScopedPointer<ctkDICOMTesterPrivate> ctkDICOMTester::d_ptr |
|
protected |
◆ dcmqrscpConfigFile
QString ctkDICOMTester::dcmqrscpConfigFile |
|
readwrite |
◆ dcmqrscpExecutable
QString ctkDICOMTester::dcmqrscpExecutable |
|
readwrite |
◆ dcmqrscpPort
int ctkDICOMTester::dcmqrscpPort |
|
readwrite |
◆ storeSCPExecutable
QString ctkDICOMTester::storeSCPExecutable |
|
readwrite |
◆ storeSCUExecutable
QString ctkDICOMTester::storeSCUExecutable |
|
readwrite |
The documentation for this class was generated from the following file: