8 namespace vms_server_plugins {
11 namespace special_objects {
13 const std::string kGenerateFixedObjectSetting{
"generateFixedObject"};
14 const std::string kFixedObjectColorSetting{
"fixedObjectColor"};
15 const std::string kNoSpecialColorSettingValue{
"No special color"};
17 const std::string kGenerateCounterSetting{
"generateCounter"};
18 const std::string kCounterBoundingBoxSideSizeSetting{
"counterBoundingBoxSideSize"};
19 const std::string kCounterXOffsetSetting{
"counterXOffset"};
20 const std::string kCounterYOffsetSetting{
"counterYOffset"};
22 const std::string kGeneratePointSetting{
"generatePoint"};
23 const std::string kGenerateEmptyNameObjectSetting{
"generateEmptyNameObject"};
25 const std::string kBlinkingObjectPeriodMsSetting{
"blinkingObjectPeriodMs"};
26 const std::string kBlinkingObjectInDedicatedPacketSetting{
"blinkingObjectInDedicatedPacket"};
28 const std::string kGenerateObjectsEveryNFramesSetting{
"generateObjectsEveryNFrames"};
29 const std::string kAdditionalFrameProcessingDelayMsSetting{
"additionalFrameProcessingDelayMs"};
30 const std::string kOverallMetadataDelayMsSetting{
"overallMetadataDelayMs"};
32 static const std::string kSettingsModel = 1 + R
"json( 39 "caption": "Stub DeviceAgent settings", 44 "caption": "Object generation settings", 49 "name": ")json" + kGenerateFixedObjectSetting + R"json(", 50 "caption": "Generate fixed object", 51 "description": "Generates a fixed object with coordinates (0.25, 0.25, 0.25, 0.25)", 56 "name": ")json" + kFixedObjectColorSetting + R"json(", 57 "caption": "Fixed object color", 59 ")json" + kNoSpecialColorSettingValue + R"json(", 60 "Magenta", "Blue", "Green", "Yellow", "Cyan", "Purple", "Orange", 61 "Red", "White", "#FFFFC0", "!invalid!", "#NONHEX" 63 "defaultValue": ")json" + kNoSpecialColorSettingValue + R"json(" 67 "name": ")json" + kGenerateCounterSetting + R"json(", 68 "caption": "Generate counter", 69 "description": "Generates a counter", 73 "type": "DoubleSpinBox", 74 "caption": "Size of the side of the counter bounding box", 75 "name": ")json" + kCounterBoundingBoxSideSizeSetting + R"json(", 81 "type": "DoubleSpinBox", 82 "caption": "Counter bounding box X-Offset", 83 "name": ")json" + kCounterXOffsetSetting + R"json(", 89 "type": "DoubleSpinBox", 90 "caption": "Counter bounding box Y-Offset", 91 "name": ")json" + kCounterYOffsetSetting + R"json(", 98 "name": ")json" + kGeneratePointSetting + R"json(", 99 "caption": "Generate point", 100 "description": "Generates a point-like object with showAsPoint=true", 101 "defaultValue": false 105 "name": ")json" + kGenerateEmptyNameObjectSetting + R"json(", 106 "caption": "Generate empty-name object", 107 "description": "Generates an object with an empty Object Type Name", 108 "defaultValue": false 112 "name": ")json" + kBlinkingObjectPeriodMsSetting + R"json(", 113 "caption": "Generate 1-frame BlinkingObject every N ms (if not 0)", 120 "name": ")json" + kBlinkingObjectInDedicatedPacketSetting + R"json(", 121 "caption": "Put BlinkingObject into a dedicated MetadataPacket", 122 "defaultValue": false 126 "name": ")json" + kGenerateObjectsEveryNFramesSetting + R"json(", 127 "caption": "Generate objects every N frames", 134 "name": ")json" + kOverallMetadataDelayMsSetting + R"json(", 135 "caption": "Overall metadata delay, ms", 138 "maxValue": 1000000000 144 "name": ")json" + kAdditionalFrameProcessingDelayMsSetting + R"json(", 145 "caption": "Additional frame processing delay, ms", 148 "maxValue": 1000000000 Definition: apple_utils.h:6