Medical Imaging Interaction Toolkit
2025.12.02
Medical Imaging Interaction Toolkit
mitkParagraphQuestion.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkParagraphQuestion_h
14
#define mitkParagraphQuestion_h
15
16
#include <
mitkTextQuestion.h
>
17
18
namespace
mitk::Forms
19
{
24
class
MITKFORMS_EXPORT
ParagraphQuestion
:
public
TextQuestion
25
{
26
public
:
27
~ParagraphQuestion
()
override
;
28
29
std::string
GetType
()
const override
;
30
Question
*
CreateAnother
()
const override
;
31
32
void
FromJSON
(
const
nlohmann::ordered_json& j)
override
;
33
void
ToJSON
(nlohmann::ordered_json& j)
const override
;
34
};
35
36
MITKFORMS_EXPORT
void
from_json
(
const
nlohmann::ordered_json& j,
ParagraphQuestion
& q);
37
MITKFORMS_EXPORT
void
to_json
(nlohmann::ordered_json& j,
const
ParagraphQuestion
& q);
38
}
39
40
#endif
MITKFORMS_EXPORT
#define MITKFORMS_EXPORT
Definition:
MitkFormsExports.h:15
mitk::Forms::ParagraphQuestion
A Question whose possible response is free text.
Definition:
mitkParagraphQuestion.h:25
mitk::Forms::ParagraphQuestion::GetType
std::string GetType() const override
Return the type of a question as string, e.g. "Multiple choice" or "Drop-down".
mitk::Forms::ParagraphQuestion::~ParagraphQuestion
~ParagraphQuestion() override
mitk::Forms::ParagraphQuestion::FromJSON
void FromJSON(const nlohmann::ordered_json &j) override
Deserialize from JSON.
mitk::Forms::ParagraphQuestion::ToJSON
void ToJSON(nlohmann::ordered_json &j) const override
Serialize to JSON.
mitk::Forms::ParagraphQuestion::CreateAnother
Question * CreateAnother() const override
Create a new instance of the derived question class type.
mitk::Forms::Question
Abstract base class for all types of questions used in a Form.
Definition:
mitkQuestion.h:32
mitk::Forms::TextQuestion
Definition:
mitkTextQuestion.h:21
mitkTextQuestion.h
mitk::Forms
Definition:
mitkCheckboxesQuestion.h:19
mitk::Forms::to_json
MITKFORMS_EXPORT void to_json(nlohmann::ordered_json &j, const CheckboxesQuestion &q)
mitk::Forms::from_json
MITKFORMS_EXPORT void from_json(const nlohmann::ordered_json &j, CheckboxesQuestion &q)
src
MITK
Modules
Forms
include
mitkParagraphQuestion.h
Generated on Mon Feb 23 2026 23:28:11 for Medical Imaging Interaction Toolkit by
1.9.1