|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget for displaying or editing XNAT subject properties. More...
#include <QmitkXnatSubjectWidget.h>


Public Types | |
| enum | Mode { INFO , CREATE } |
| Operation mode for the subject widget. More... | |
Public Member Functions | |
| QmitkXnatSubjectWidget (QWidget *parent=nullptr) | |
| Construct the widget in INFO mode. More... | |
| QmitkXnatSubjectWidget (Mode mode, QWidget *parent=nullptr) | |
| Construct the widget in the specified mode. More... | |
| ~QmitkXnatSubjectWidget () override | |
| Destructor. More... | |
| void | SetSubject (ctkXnatSubject *subject) |
| Populate the widget fields from the given subject object. More... | |
| ctkXnatSubject * | GetSubject () const |
| Retrieve the subject object, optionally updated with user-entered values. More... | |
Protected Attributes | |
| std::unique_ptr< Ui::QmitkXnatSubjectWidgetControls > | m_Controls |
| UI controls generated from the .ui form. More... | |
Widget for displaying or editing XNAT subject properties.
QmitkXnatSubjectWidget provides a form-based user interface for viewing or creating XNAT subjects. In INFO mode, the widget shows the subject label, date of birth, gender, handedness, height, and weight as read-only fields, along with a breadcrumb showing the parent project. In CREATE mode, all fields are editable.
Definition at line 37 of file QmitkXnatSubjectWidget.h.
Operation mode for the subject widget.
| Enumerator | |
|---|---|
| INFO | Display subject properties in read-only mode. |
| CREATE | Allow editing of subject properties for creation. |
Definition at line 45 of file QmitkXnatSubjectWidget.h.
| QmitkXnatSubjectWidget::QmitkXnatSubjectWidget | ( | QWidget * | parent = nullptr | ) |
Construct the widget in INFO mode.
| [in] | parent | Optional parent widget. |
| QmitkXnatSubjectWidget::QmitkXnatSubjectWidget | ( | Mode | mode, |
| QWidget * | parent = nullptr |
||
| ) |
Construct the widget in the specified mode.
| [in] | mode | The operation mode (INFO or CREATE). |
| [in] | parent | Optional parent widget. |
|
override |
Destructor.
| ctkXnatSubject* QmitkXnatSubjectWidget::GetSubject | ( | ) | const |
Retrieve the subject object, optionally updated with user-entered values.
In CREATE mode, the returned subject has its label, dob, gender, handedness, height, and weight properties updated from the widget's input fields. In INFO mode, the subject is returned unchanged.
| void QmitkXnatSubjectWidget::SetSubject | ( | ctkXnatSubject * | subject | ) |
Populate the widget fields from the given subject object.
Sets the breadcrumb, label, date of birth, gender, handedness, height, and weight fields from the subject's properties.
| [in] | subject | The XNAT subject whose properties should be displayed. |
subject must not be nullptr.
|
protected |
UI controls generated from the .ui form.
Definition at line 94 of file QmitkXnatSubjectWidget.h.