Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkAnyFloatWidget Class Reference

A QDoubleSpinBox-based adapter for float options. More...

#include <QmitkFileReaderWriterOptionsWidget.h>

Inheritance diagram for QmitkAnyFloatWidget:
Collaboration diagram for QmitkAnyFloatWidget:

Public Member Functions

 QmitkAnyFloatWidget (const std::string &name, const us::Any &any, QWidget *parent=nullptr)
 Constructs a float option widget. More...
 
us::Any GetAny () const override
 Returns the current value as a us::Any wrapping a float. More...
 
- Public Member Functions inherited from QmitkAnyAdapter
 QmitkAnyAdapter (const std::string &name)
 Constructs the adapter with the given option name. More...
 
virtual ~QmitkAnyAdapter ()
 
std::string GetName () const
 Returns the option name associated with this adapter. More...
 

Detailed Description

A QDoubleSpinBox-based adapter for float options.

See also
QmitkAnyAdapter

Definition at line 213 of file QmitkFileReaderWriterOptionsWidget.h.

Constructor & Destructor Documentation

◆ QmitkAnyFloatWidget()

QmitkAnyFloatWidget::QmitkAnyFloatWidget ( const std::string &  name,
const us::Any &  any,
QWidget *  parent = nullptr 
)

Constructs a float option widget.

Parameters
[in]nameThe option name.
[in]anyThe initial value (must be convertible to float).
[in]parentOptional parent widget.

Member Function Documentation

◆ GetAny()

us::Any QmitkAnyFloatWidget::GetAny ( ) const
overridevirtual

Returns the current value as a us::Any wrapping a float.

Implements QmitkAnyAdapter.


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