|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Singleton factory for creating property view and editor widgets. More...
#include <QmitkPropertyViewFactory.h>
Public Types | |
| enum | ViewTypes { vtDEFAULT } |
| View type identifiers. More... | |
| enum | EditorTypes { etDEFAULT , etALWAYS_EDIT , etON_DEMAND_EDIT } |
| Editor type identifiers. More... | |
Public Member Functions | |
| QWidget * | CreateView (const mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr) |
| Create a read-only view widget for the given property. More... | |
| QWidget * | CreateEditor (mitk::BaseProperty *property, unsigned int type=0, QWidget *parent=nullptr) |
| Create an editor widget for the given property. More... | |
Static Public Member Functions | |
| static QmitkPropertyViewFactory * | GetInstance () |
| Get the singleton instance. More... | |
Protected Member Functions | |
| QmitkPropertyViewFactory () | |
| Hidden constructor; use GetInstance(). More... | |
| ~QmitkPropertyViewFactory () | |
| Destructor. More... | |
Singleton factory for creating property view and editor widgets.
Given a mitk::BaseProperty, this factory creates the appropriate Qt widget to either display (view) or edit the property value. Supports string, color, bool, int, float, double, and enumeration properties.
Definition at line 34 of file QmitkPropertyViewFactory.h.
Editor type identifiers.
| Enumerator | |
|---|---|
| etDEFAULT | Default (always editable) editor. |
| etALWAYS_EDIT | Always-edit mode editor. |
| etON_DEMAND_EDIT | On-demand (click to edit) editor. |
Definition at line 44 of file QmitkPropertyViewFactory.h.
View type identifiers.
| Enumerator | |
|---|---|
| vtDEFAULT | Default view type. |
Definition at line 38 of file QmitkPropertyViewFactory.h.
|
protected |
Hidden constructor; use GetInstance().
|
protected |
Destructor.
| QWidget* QmitkPropertyViewFactory::CreateEditor | ( | mitk::BaseProperty * | property, |
| unsigned int | type = 0, |
||
| QWidget * | parent = nullptr |
||
| ) |
Create an editor widget for the given property.
The caller owns the returned widget and must delete it.
| [in] | property | The property to edit. |
| [in] | type | The editor type (default: etDEFAULT). |
| [in] | parent | The parent widget. |
| QWidget* QmitkPropertyViewFactory::CreateView | ( | const mitk::BaseProperty * | property, |
| unsigned int | type = 0, |
||
| QWidget * | parent = nullptr |
||
| ) |
Create a read-only view widget for the given property.
The caller owns the returned widget and must delete it.
| [in] | property | The property to display. |
| [in] | type | The view type (default: vtDEFAULT). |
| [in] | parent | The parent widget. |
|
static |
Get the singleton instance.