![]() |
CTK 0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
The ctkXnatDataModel class reprents the root object in a XNAT data hierarchy. More...
#include <Libs/XNAT/Core/ctkXnatDataModel.h>
Public Member Functions | |
virtual QString | childDataType () const |
Gets a human readable name of the child object type. | |
ctkXnatDataModel (ctkXnatSession *connection) | |
QList< ctkXnatProject * > | projects () const |
ctkXnatSession * | session () const |
![]() | |
void | add (ctkXnatObject *child) |
Adds an object to the children of the current one. | |
virtual ctkXnatResource * | addResourceFolder (QString foldername, QString format="", QString content="", QString tags="") |
virtual QString | childDataType () const |
Gets a human readable name of the child object type. | |
QList< ctkXnatObject * > | children () const |
Gets the children of the object. | |
QString | description () const |
Gets the description of the object. | |
void | download (const QString &) |
void | erase () |
Deletes the object on the XNAT server and removes it from its parent. | |
bool | exists () const |
Checks if the object exists on the XNAT server. | |
void | fetch (bool forceFetch=false) |
Fetches the children and the properties of the object. | |
virtual QString | id () const |
Gets the global ID of the object. | |
bool | isFetched () const |
Tells if the children and the properties of the objects have been fetched. | |
virtual QDateTime | lastModifiedTimeOnServer () |
Gets the last modification time from the server. | |
virtual QString | name () const |
Gets the name of the object. | |
ctkXnatObject * | parent () const |
const QMap< QString, QString > & | properties () const |
Gets the properties of the object. | |
QString | property (const QString &name) const |
Gets the value of the property with the given name. | |
void | remove (ctkXnatObject *child) |
Removes the object from the children of the current object. | |
virtual void | reset () |
virtual QString | resourceUri () const =0 |
void | save (bool overwrite=true) |
QString | schemaType () const |
void | setDescription (const QString &description) |
Sets the description of the object. | |
virtual void | setId (const QString &id) |
void | setLastModifiedTime (const QDateTime &lastModifiedTime) |
Sets the last modfication time on the server. | |
virtual void | setName (const QString &name) |
Sets the name of the object. | |
void | setParent (ctkXnatObject *parent) |
Sets the parent of the object in the data hierarchy. | |
void | setProperty (const QString &name, const QVariant &value) |
Sets the value of the property with the given name. | |
virtual | ~ctkXnatObject () |
Destructs the ctkXnatObject. | |
Additional Inherited Members | |
![]() | |
static const QString | ID |
static const QString | LABEL |
static const QString | NAME |
static const QString | URI |
static const QString | XSI_SCHEMA_TYPE |
![]() | |
ctkXnatObject (const ctkXnatObject &) | |
ctkXnatObject (ctkXnatObject *parent=0, const QString &schemaType=QString::null) | |
Constructs the ctkXnatObject. | |
ctkXnatObject (ctkXnatObjectPrivate &dd, ctkXnatObject *parent=0, const QString &schemaType=QString::null) | |
Constructs the ctkXnatObject with the given private part. | |
virtual void | fetchResources (const QString &path="/resources") |
Fetches the resources of the object. | |
ctkXnatSession * | session () const |
![]() | |
const QScopedPointer< ctkXnatObjectPrivate > | d_ptr |
The private implementation part of the object. | |
The ctkXnatDataModel class reprents the root object in a XNAT data hierarchy.
Definition at line 39 of file ctkXnatDataModel.h.
|
explicit |
|
virtual |
Gets a human readable name of the child object type.
Reimplemented from ctkXnatObject.
QList< ctkXnatProject * > ctkXnatDataModel::projects | ( | ) | const |
ctkXnatSession * ctkXnatDataModel::session | ( | ) | const |