NDEVR
API Documentation
MeasurePointTypeCombo.h
1#pragma once
2#include <NDEVR/QCustomComboBox.h>
3#include <NDEVR/MeasurePointType.h>
4namespace NDEVR
5{
11 {
12 public:
17 static void Setup(QCustomComboBox* combo)
18 {
19 static Buffer<TranslatedString> point_symbol_labels({ _t("Square"), _t("Round")
20 , _t("Arrow"), _t("45 Cross"), _t("90 Cross")
21 , _t("45 Square Cross"), _t("90 Square Cross")
22 , _t("45 Round Cross"), _t("90 Round Cross") });
23
24 static Buffer<String> point_symbol_values({
25 String(BitFlag({ MeasurePointType::e_square }))
26 , String(BitFlag({ MeasurePointType::e_circle }))
27 , String(BitFlag({ MeasurePointType::e_arrow }))
28 , String(BitFlag({ MeasurePointType::e_45_crosshair }))
29 , String(BitFlag({ MeasurePointType::e_90_crosshair }))
30 , String(BitFlag({ MeasurePointType::e_45_crosshair, MeasurePointType::e_square }))
31 , String(BitFlag({ MeasurePointType::e_90_crosshair, MeasurePointType::e_square }))
32 , String(BitFlag({ MeasurePointType::e_45_crosshair, MeasurePointType::e_circle }))
33 , String(BitFlag({ MeasurePointType::e_90_crosshair, MeasurePointType::e_circle }))
34 });
35
36 combo->setup(_t("Point Symbol"), point_symbol_values, point_symbol_labels);
37 }
38 };
39}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Provides a static utility to configure a QCustomComboBox with measurement point symbol types such as ...
static void Setup(QCustomComboBox *combo)
Populates the given combo box with available measurement point symbol types.
A compact way to present a list of options to the user.
void setup(const TranslatedString &title, const Buffer< TranslatedString > &values)
Sets up the combo box with a title and a list of translated display values.
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
@ BitFlag
Per-vertex bit flags (selected, hidden, etc.).