|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
A section within a Form, grouping related questions together. More...
#include <mitkForm.h>
Public Member Functions | |
| Section (const std::string &title="", const std::string &description="") | |
| Construct a section with optional title and description. More... | |
| ~Section () | |
| Destructor. More... | |
| Section (Section &&other) noexcept | |
| Move constructor. More... | |
| Section & | operator= (Section &&other) noexcept |
| Move assignment operator. More... | |
| std::string | GetTitle () const |
| Get the title of this section. More... | |
| void | SetTitle (const std::string &title) |
| Set the title of this section. More... | |
| std::string | GetDescription () const |
| Get the description of this section. More... | |
| void | SetDescription (const std::string &description) |
| Set the description of this section. More... | |
| std::vector< Question * > | GetQuestions () const |
| Get all questions belonging to this section. More... | |
| void | AddQuestion (Question *question) |
| Add a question to this section. More... | |
A section within a Form, grouping related questions together.
Each section has its own title and description, and holds a list of Question objects. The Section takes ownership of any Question pointers added to it.
Definition at line 50 of file mitkForm.h.
|
explicit |
Construct a section with optional title and description.
| [in] | title | The section title. |
| [in] | description | The section description. |
| mitk::Forms::Form::Section::~Section | ( | ) |
Destructor.
|
noexcept |
Move constructor.
| void mitk::Forms::Form::Section::AddQuestion | ( | Question * | question | ) |
Add a question to this section.
The section takes ownership of the pointer.
| [in] | question | A pointer to the question to add. Ownership is transferred. |
| std::string mitk::Forms::Form::Section::GetDescription | ( | ) | const |
Get the description of this section.
| std::vector<Question*> mitk::Forms::Form::Section::GetQuestions | ( | ) | const |
Get all questions belonging to this section.
| std::string mitk::Forms::Form::Section::GetTitle | ( | ) | const |
Get the title of this section.
Move assignment operator.
| void mitk::Forms::Form::Section::SetDescription | ( | const std::string & | description | ) |
Set the description of this section.
| [in] | description | The section description. |
| void mitk::Forms::Form::Section::SetTitle | ( | const std::string & | title | ) |
Set the title of this section.
| [in] | title | The section title. |