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


Public Types | |
| enum | Mode { INFO , CREATE } |
| Operation mode for the experiment widget. More... | |
Public Member Functions | |
| QmitkXnatExperimentWidget (QWidget *parent=nullptr) | |
| Construct the widget in INFO mode. More... | |
| QmitkXnatExperimentWidget (Mode mode, QWidget *parent=nullptr) | |
| Construct the widget in the specified mode. More... | |
| ~QmitkXnatExperimentWidget () override | |
| Destructor. More... | |
| void | SetExperiment (ctkXnatExperiment *experiment) |
| Populate the widget fields from the given experiment object. More... | |
| ctkXnatExperiment * | GetExperiment () const |
| Retrieve the experiment object, optionally updated with user-entered values. More... | |
Protected Attributes | |
| std::unique_ptr< Ui::QmitkXnatExperimentWidgetControls > | m_Controls |
| UI controls generated from the .ui form. More... | |
Widget for displaying or editing XNAT experiment properties.
QmitkXnatExperimentWidget provides a form-based user interface for viewing or creating XNAT experiments. In INFO mode, the widget displays read-only experiment properties (label, modality, date, time, scanner) along with a breadcrumb showing the parent project and subject. In CREATE mode, the modality field becomes an XSI type selector with auto-completion for all standard XNAT experiment session types, and all fields are editable.
Definition at line 40 of file QmitkXnatExperimentWidget.h.
Operation mode for the experiment widget.
| Enumerator | |
|---|---|
| INFO | Display experiment properties in read-only mode. |
| CREATE | Allow editing of experiment properties for creation. |
Definition at line 48 of file QmitkXnatExperimentWidget.h.
| QmitkXnatExperimentWidget::QmitkXnatExperimentWidget | ( | QWidget * | parent = nullptr | ) |
Construct the widget in INFO mode.
| [in] | parent | Optional parent widget. |
| QmitkXnatExperimentWidget::QmitkXnatExperimentWidget | ( | Mode | mode, |
| QWidget * | parent = nullptr |
||
| ) |
Construct the widget in the specified mode.
In CREATE mode, the modality field is replaced by an XSI type field with auto-completion for all supported XNAT experiment session types.
| [in] | mode | The operation mode (INFO or CREATE). |
| [in] | parent | Optional parent widget. |
|
override |
Destructor.
| ctkXnatExperiment* QmitkXnatExperimentWidget::GetExperiment | ( | ) | const |
Retrieve the experiment object, optionally updated with user-entered values.
In CREATE mode, the returned experiment has its label, xsiType, date, time, and scanner properties updated from the widget's input fields. In INFO mode, the experiment is returned unchanged.
| void QmitkXnatExperimentWidget::SetExperiment | ( | ctkXnatExperiment * | experiment | ) |
Populate the widget fields from the given experiment object.
Sets the breadcrumb label, ID/label, modality, date, time, and scanner fields from the experiment's properties.
| [in] | experiment | The XNAT experiment whose properties should be displayed. |
experiment must not be nullptr.
|
protected |
UI controls generated from the .ui form.
Definition at line 100 of file QmitkXnatExperimentWidget.h.