13 #ifndef mitkLinearScaleQuestion_h
14 #define mitkLinearScaleQuestion_h
34 std::string GetType()
const override;
35 Question* CreateAnother()
const override;
37 void FromJSON(
const nlohmann::ordered_json& j)
override;
38 void ToJSON(nlohmann::ordered_json& j)
const override;
40 std::vector<std::string> GetResponsesAsStrings()
const override;
41 void ClearResponses()
override;
43 bool IsComplete()
const override;
45 std::optional<int> GetResponse()
const;
46 void SetResponse(
int response);
48 std::pair<int, int> GetRange()
const;
57 void SetRange(
const std::pair<int, int>& range);
59 std::pair<std::string, std::string> GetRangeLabels()
const;
60 void SetRangeLabels(
const std::pair<std::string, std::string>& labels);
63 std::optional<int> m_Response;
64 std::pair<int, int> m_Range;
65 std::pair<std::string, std::string> m_Labels;