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 (int progress)
 
void progress (const QString &message)
 

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 ( QObject *  parent = 0)
explicit
virtual ctkDICOMQuery::~ctkDICOMQuery ( )
virtual

Member Function Documentation

QString ctkDICOMQuery::calledAETitle ( ) const
QString ctkDICOMQuery::callingAETitle ( ) const
void ctkDICOMQuery::cancel ( )
slot
void ctkDICOMQuery::debug ( const QString &  message)
signal

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

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

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

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

QMap<QString,QVariant> ctkDICOMQuery::filters ( ) const
QString ctkDICOMQuery::host ( ) const
int ctkDICOMQuery::port ( ) const
bool ctkDICOMQuery::preferCGET ( ) const
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

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

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

bool ctkDICOMQuery::query ( ctkDICOMDatabase database)

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

void ctkDICOMQuery::setCalledAETitle ( const QString &  calledAETitle)

Empty by default.

void ctkDICOMQuery::setCallingAETitle ( const QString &  callingAETitle)

Set methods for connectivity Empty by default

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.

void ctkDICOMQuery::setHost ( const QString &  host)

Empty by default.

void ctkDICOMQuery::setPort ( int  port)

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

void ctkDICOMQuery::setPreferCGET ( bool  preferCGET)

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

QStringList ctkDICOMQuery::studyInstanceUIDQueried ( ) const

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

Friends And Related Function Documentation

friend class ctkDICOMQuerySCUPrivate
friend

Definition at line 125 of file ctkDICOMQuery.h.

Member Data Documentation

QScopedPointer<ctkDICOMQueryPrivate> ctkDICOMQuery::d_ptr
protected

Definition at line 119 of file ctkDICOMQuery.h.

Property Documentation

QString ctkDICOMQuery::calledAETitle
readwrite

Definition at line 42 of file ctkDICOMQuery.h.

QString ctkDICOMQuery::callingAETitle
readwrite

Definition at line 42 of file ctkDICOMQuery.h.

QString ctkDICOMQuery::host
readwrite

Definition at line 43 of file ctkDICOMQuery.h.

int ctkDICOMQuery::port
readwrite

Definition at line 44 of file ctkDICOMQuery.h.

bool ctkDICOMQuery::preferCGET
readwrite

Definition at line 45 of file ctkDICOMQuery.h.


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