CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Slots | Signals | Public Member Functions | Protected Attributes | Properties | Friends | List of all members
ctkDICOMQuery Class Reference

#include <Libs/DICOM/Core/ctkDICOMQuery.h>

Inheritance diagram for ctkDICOMQuery:
Inheritance graph
[legend]
Collaboration diagram for ctkDICOMQuery:
Collaboration graph
[legend]

Public Slots

void cancel ()
 

Signals

void debug (const QString &message)
 
void done (const bool &error)
 
void error (const QString &message)
 Signal is emitted inside the query() function. It send any error messages. More...
 
void progress (const QString &message)
 
void progress (int progress)
 

Public Member Functions

QString calledAETitle () const
 
QString callingAETitle () const
 
 ctkDICOMQuery (QObject *parent=0)
 
QMap< QString, QVariant > filters () const
 
QString host () const
 
int port () const
 
bool preferCGET () const
 
bool query (ctkDICOMDatabase &database)
 
void setCalledAETitle (const QString &calledAETitle)
 Empty by default. More...
 
void setCallingAETitle (const QString &callingAETitle)
 
void setFilters (const QMap< QString, QVariant > &)
 
void setHost (const QString &host)
 Empty by default. More...
 
void setPort (int port)
 
void setPreferCGET (bool preferCGET)
 
QStringList studyInstanceUIDQueried () const
 Access the list of study instance UIDs from the last query. More...
 
virtual ~ctkDICOMQuery ()
 

Protected Attributes

QScopedPointer< ctkDICOMQueryPrivate > d_ptr
 

Properties

QString calledAETitle
 
QString callingAETitle
 
QString host
 
int port
 
bool preferCGET
 

Friends

class ctkDICOMQuerySCUPrivate
 

Detailed Description

Definition at line 39 of file ctkDICOMQuery.h.

Constructor & Destructor Documentation

◆ ctkDICOMQuery()

ctkDICOMQuery::ctkDICOMQuery ( QObject *  parent = 0)
explicit

◆ ~ctkDICOMQuery()

virtual ctkDICOMQuery::~ctkDICOMQuery ( )
virtual

Member Function Documentation

◆ calledAETitle()

QString ctkDICOMQuery::calledAETitle ( ) const

◆ callingAETitle()

QString ctkDICOMQuery::callingAETitle ( ) const

◆ cancel

void ctkDICOMQuery::cancel ( )
slot

◆ debug

void ctkDICOMQuery::debug ( const QString &  message)
signal

Signal is emitted inside the query() function. It sends detailed feedback for debugging

◆ done

void ctkDICOMQuery::done ( const bool &  error)
signal

Signal is emitted inside the query() function when finished with value true for success or false for error

◆ error

void ctkDICOMQuery::error ( const QString &  message)
signal

Signal is emitted inside the query() function. It send any error messages.

◆ filters()

QMap<QString,QVariant> ctkDICOMQuery::filters ( ) const

◆ host()

QString ctkDICOMQuery::host ( ) const

◆ port()

int ctkDICOMQuery::port ( ) const

◆ preferCGET()

bool ctkDICOMQuery::preferCGET ( ) const

◆ progress [1/2]

void ctkDICOMQuery::progress ( const QString &  message)
signal

Signal is emitted inside the query() function. It sends the different step the function is at.

◆ progress [2/2]

void ctkDICOMQuery::progress ( int  progress)
signal

Signal is emitted inside the query() function. It ranges from 0 to 100. In case of an error, you are assured that the progress value 100 is fired

◆ query()

bool ctkDICOMQuery::query ( ctkDICOMDatabase database)

Query a remote DICOM Image Store SCP You must at least set the host and port before calling query()

◆ setCalledAETitle()

void ctkDICOMQuery::setCalledAETitle ( const QString &  calledAETitle)

Empty by default.

◆ setCallingAETitle()

void ctkDICOMQuery::setCallingAETitle ( const QString &  callingAETitle)

Set methods for connectivity Empty by default

◆ setFilters()

void ctkDICOMQuery::setFilters ( const QMap< QString, QVariant > &  )

Filters are keyword/value pairs as generated by the ctkDICOMWidgets in a human readable (and editable) format. The Query is responsible for converting these into the appropriate dicom syntax for the C-Find Currently supports the keys: Name, Study, Series, ID, Modalities, StartDate and EndDate

Key DICOM Tag Type Example

Name DCM_PatientName QString JOHNDOE Study DCM_StudyDescription QString Series DCM_SeriesDescription QString ID DCM_PatientID QString Modalities DCM_ModalitiesInStudy QStringList CT, MR, MN StartDate DCM_StudyDate QString 20090101 EndDate DCM_StudyDate QString 20091231 No filter (empty) by default.

◆ setHost()

void ctkDICOMQuery::setHost ( const QString &  host)

Empty by default.

◆ setPort()

void ctkDICOMQuery::setPort ( int  port)

Specify a port for the packet headers. port ranges from 0 to 65535. 0 by default.

◆ setPreferCGET()

void ctkDICOMQuery::setPreferCGET ( bool  preferCGET)

Prefer CGET over CMOVE for retrieval of query results false by default

◆ studyInstanceUIDQueried()

QStringList ctkDICOMQuery::studyInstanceUIDQueried ( ) const

Access the list of study instance UIDs from the last query.

Friends And Related Function Documentation

◆ ctkDICOMQuerySCUPrivate

friend class ctkDICOMQuerySCUPrivate
friend

Definition at line 125 of file ctkDICOMQuery.h.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkDICOMQueryPrivate> ctkDICOMQuery::d_ptr
protected

Definition at line 119 of file ctkDICOMQuery.h.

Property Documentation

◆ calledAETitle

QString ctkDICOMQuery::calledAETitle
readwrite

Definition at line 1 of file ctkDICOMQuery.h.

◆ callingAETitle

QString ctkDICOMQuery::callingAETitle
readwrite

Definition at line 1 of file ctkDICOMQuery.h.

◆ host

QString ctkDICOMQuery::host
readwrite

Definition at line 1 of file ctkDICOMQuery.h.

◆ port

int ctkDICOMQuery::port
readwrite

Definition at line 1 of file ctkDICOMQuery.h.

◆ preferCGET

bool ctkDICOMQuery::preferCGET
readwrite

Definition at line 1 of file ctkDICOMQuery.h.


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