Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkScreenshotQuestionWidget Class Reference

Question widget for ScreenshotQuestion, allowing users to take screenshots of render windows. More...

#include <QmitkScreenshotQuestionWidget.h>

Inheritance diagram for QmitkScreenshotQuestionWidget:
Collaboration diagram for QmitkScreenshotQuestionWidget:

Public Member Functions

 QmitkScreenshotQuestionWidget (QWidget *parent=nullptr)
 Construct the widget. More...
 
 ~QmitkScreenshotQuestionWidget () override
 Destructor. More...
 
QmitkQuestionWidget * CreateAnother (QWidget *parent=nullptr) const override
 Create a new QmitkScreenshotQuestionWidget instance. More...
 
mitk::Forms::Question * GetQuestion () const override
 Get the associated ScreenshotQuestion. More...
 
void SetQuestion (mitk::Forms::Question *question) override
 Initialize the widget for a ScreenshotQuestion. More...
 
void Reset () override
 Remove all screenshot widgets and clear all responses. More...
 
- Public Member Functions inherited from QmitkQuestionWidget
 QmitkQuestionWidget (QWidget *parent=nullptr)
 Construct the question widget with common GUI elements. More...
 
 ~QmitkQuestionWidget () override
 Destructor. More...
 
void SetRequirementVisible (bool visible)
 Show or hide the requirement reminder. More...
 
void ShowRequirement ()
 Show the requirement reminder label and highlight the widget border in red. More...
 
void HideRequirement ()
 Hide the requirement reminder label and reset the widget border style. More...
 

Additional Inherited Members

- Protected Member Functions inherited from QmitkQuestionWidget
void InsertLayout (QLayout *layout)
 Insert a layout containing all GUI elements specific to the derived question widget type. More...
 

Detailed Description

Question widget for ScreenshotQuestion, allowing users to take screenshots of render windows.

A "Take Screenshot" button shows a popup menu with axial, sagittal, and coronal view options. Taken screenshots appear as thumbnail widgets that can be removed.

See also
mitk::Forms::ScreenshotQuestion, QmitkQuestionWidget

Definition at line 31 of file QmitkScreenshotQuestionWidget.h.

Constructor & Destructor Documentation

◆ QmitkScreenshotQuestionWidget()

QmitkScreenshotQuestionWidget::QmitkScreenshotQuestionWidget ( QWidget *  parent = nullptr)
explicit

Construct the widget.

Parameters
[in]parentThe parent widget.

◆ ~QmitkScreenshotQuestionWidget()

QmitkScreenshotQuestionWidget::~QmitkScreenshotQuestionWidget ( )
override

Destructor.

Member Function Documentation

◆ CreateAnother()

QmitkQuestionWidget* QmitkScreenshotQuestionWidget::CreateAnother ( QWidget *  parent = nullptr) const
overridevirtual

Create a new QmitkScreenshotQuestionWidget instance.

Parameters
[in]parentThe parent widget.
Returns
A pointer to the new widget. The caller takes ownership.

Implements QmitkQuestionWidget.

◆ GetQuestion()

mitk::Forms::Question* QmitkScreenshotQuestionWidget::GetQuestion ( ) const
overridevirtual

Get the associated ScreenshotQuestion.

Returns
A pointer to the ScreenshotQuestion, or nullptr if not set.

Implements QmitkQuestionWidget.

◆ Reset()

void QmitkScreenshotQuestionWidget::Reset ( )
overridevirtual

Remove all screenshot widgets and clear all responses.

Implements QmitkQuestionWidget.

◆ SetQuestion()

void QmitkScreenshotQuestionWidget::SetQuestion ( mitk::Forms::Question *  question)
overridevirtual

Initialize the widget for a ScreenshotQuestion.

Parameters
[in]questionMust be a ScreenshotQuestion. The widget does not take ownership.
Exceptions
mitk::ExceptionIf question is not a ScreenshotQuestion.

Implements QmitkQuestionWidget.


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