69# pragma warning(disable : 4251)
85 static constexpr const char *
path{
"" };
88 static constexpr const char *
name{
"Settings2D" };
92 R
"description(Settings used when capturing 2D images with a Zivid camera.)description"
105 static constexpr std::array<uint8_t, 3> binaryId{
's',
't',
'2' };
123 static constexpr const char *
path{
"Acquisition" };
126 static constexpr const char *
name{
"Acquisition" };
129 static constexpr const char *
description{ R
"description(Settings for one 2D acquisition.
131When capturing 2D HDR, all 2D acquisitions must have the same Aperture setting. Use Exposure Time
132or Gain to control the exposure instead.
150 static constexpr const char *
path{
"Acquisition/Aperture" };
153 static constexpr const char *
name{
"Aperture" };
157 R
"description(Aperture setting for the camera. Specified as an f-number (the ratio of lens focal length to
158the effective aperture diameter).
160When capturing 2D HDR, all 2D acquisitions must have the same Aperture setting. Use Exposure Time
161or Gain to control the exposure instead.
171 return { 1.4, 32.0 };
179 : m_opt{ verifyValue(
value) }
200 return m_opt == other.m_opt;
206 return m_opt != other.m_opt;
212 return m_opt < other.m_opt;
218 return m_opt > other.m_opt;
224 return m_opt <= other.m_opt;
230 return m_opt >= other.m_opt;
236 return stream <<
value.toString();
240 void setFromString(
const std::string &value);
242 constexpr ValueType
static verifyValue(
const ValueType &value)
244 return validRange().isInRange(value)
246 :
throw std::out_of_range{
"Aperture{ " + std::to_string(value) +
" } is not in range ["
247 + std::to_string(validRange().min()) +
", "
248 + std::to_string(validRange().max()) +
"]" };
251 std::optional<double> m_opt;
253 friend struct DataModel::Detail::Befriend<
Aperture>;
276 static constexpr const char *
path{
"Acquisition/Brightness" };
279 static constexpr const char *
name{
"Brightness" };
283 R
"description(Brightness controls the light output from the projector.
285Brightness above 1.0 may be needed when the distance between the camera and the scene is large,
286or in case of high levels of ambient lighting.
288When brightness is above 1.0 the duty cycle of the camera (the percentage of time the camera
289can capture) will be reduced. The duty cycle in boost mode is 50%. The duty cycle is calculated
290over a 10 second period. This limitation is enforced automatically by the camera. Calling capture
291when the duty cycle limit has been reached will cause the camera to first wait (sleep) for a
292duration of time to cool down, before capture will start.
310 : m_opt{ verifyValue(
value) }
331 return m_opt == other.m_opt;
337 return m_opt != other.m_opt;
343 return m_opt < other.m_opt;
349 return m_opt > other.m_opt;
355 return m_opt <= other.m_opt;
361 return m_opt >= other.m_opt;
367 return stream <<
value.toString();
371 void setFromString(
const std::string &value);
373 constexpr ValueType
static verifyValue(
const ValueType &value)
375 return validRange().isInRange(value)
377 :
throw std::out_of_range{
"Brightness{ " + std::to_string(value)
378 +
" } is not in range [" + std::to_string(validRange().min())
379 +
", " + std::to_string(validRange().max()) +
"]" };
382 std::optional<double> m_opt;
384 friend struct DataModel::Detail::Befriend<
Brightness>;
397 static constexpr const char *
path{
"Acquisition/ExposureTime" };
400 static constexpr const char *
name{
"ExposureTime" };
403 static constexpr const char *
description{ R
"description(Exposure time for the image.)description" };
411 return { std::chrono::microseconds{ 200 }, std::chrono::microseconds{ 100000 } };
419 : m_opt{ verifyValue(
value) }
426 std::chrono::microseconds
value()
const;
440 return m_opt == other.m_opt;
446 return m_opt != other.m_opt;
452 return m_opt < other.m_opt;
458 return m_opt > other.m_opt;
464 return m_opt <= other.m_opt;
470 return m_opt >= other.m_opt;
476 return stream <<
value.toString();
480 void setFromString(
const std::string &value);
482 constexpr ValueType
static verifyValue(
const ValueType &value)
484 return validRange().isInRange(value)
486 :
throw std::out_of_range{
"ExposureTime{ " + std::to_string(value.count())
487 +
" } is not in range ["
488 + std::to_string(validRange().min().count()) +
", "
489 + std::to_string(validRange().max().count()) +
"]" };
492 std::optional<std::chrono::microseconds> m_opt;
494 friend struct DataModel::Detail::Befriend<
ExposureTime>;
507 static constexpr const char *
path{
"Acquisition/Gain" };
510 static constexpr const char *
name{
"Gain" };
513 static constexpr const char *
description{ R
"description(Analog gain in the camera.)description" };
529 : m_opt{ verifyValue(
value) }
550 return m_opt == other.m_opt;
556 return m_opt != other.m_opt;
562 return m_opt < other.m_opt;
568 return m_opt > other.m_opt;
574 return m_opt <= other.m_opt;
580 return m_opt >= other.m_opt;
586 return stream <<
value.toString();
590 void setFromString(
const std::string &value);
592 constexpr ValueType
static verifyValue(
const ValueType &value)
594 return validRange().isInRange(value)
596 :
throw std::out_of_range{
"Gain{ " + std::to_string(value) +
" } is not in range ["
597 + std::to_string(validRange().min()) +
", "
598 + std::to_string(validRange().max()) +
"]" };
601 std::optional<double> m_opt;
603 friend struct DataModel::Detail::Befriend<
Gain>;
632 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
633 typename std::enable_if<
634 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
638 template<typename... Args>
642 using namespace Zivid::Detail::TypeTraits;
645 AllArgsDecayedAreUnique<Args...>::value,
646 "Found duplicate types among the arguments passed to Acquisition(...). "
647 "Types should be listed at most once.");
649 set(std::forward<Args>(args)...);
666 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
668 template<typename... Args>
672 using namespace Zivid::Detail::TypeTraits;
674 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
676 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
679 AllArgsDecayedAreUnique<Args...>::value,
680 "Found duplicate types among the arguments passed to set(...). "
681 "Types should be listed at most once.");
683 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
701 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
703 template<typename... Args>
707 using namespace Zivid::Detail::TypeTraits;
709 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
711 AllArgsAreDescendantNodes::value,
712 "All arguments passed to copyWith(...) must be descendant nodes.");
715 AllArgsDecayedAreUnique<Args...>::value,
716 "Found duplicate types among the arguments passed to copyWith(...). "
717 "Types should be listed at most once.");
720 copy.set(std::forward<Args>(args)...);
758 m_brightness = value;
765 return m_exposureTime;
771 return m_exposureTime;
777 m_exposureTime = value;
802 typename std::enable_if<std::is_same<T, Settings2D::Acquisition::Aperture>::value,
int>::type = 0>
810 typename std::enable_if<std::is_same<T, Settings2D::Acquisition::Brightness>::value,
int>::type = 0>
818 typename std::enable_if<std::is_same<T, Settings2D::Acquisition::ExposureTime>::value,
int>::type = 0>
821 return m_exposureTime;
826 typename std::enable_if<std::is_same<T, Settings2D::Acquisition::Gain>::value,
int>::type = 0>
832 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
838 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
844 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
847 return m_exposureTime;
850 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
892 void setFromString(
const std::string &value);
894 void setFromString(
const std::string &fullPath,
const std::string &value);
896 std::string getString(
const std::string &fullPath)
const;
899 Brightness m_brightness;
900 ExposureTime m_exposureTime;
903 friend struct DataModel::Detail::Befriend<
Acquisition>;
916 static constexpr const char *
path{
"Acquisitions" };
919 static constexpr const char *
name{
"Acquisitions" };
923 R
"description(List of acquisitions used for 2D capture.)description"
932 return { 0, std::numeric_limits<ValueType::size_type>::max() };
940 : m_value{ std::move(
value) }
949 const std::vector<Settings2D::Acquisition> &
value()
const;
955 std::size_t
size() const noexcept;
965 template<typename... Args>
968 m_value.emplace_back(std::forward<Args>(args)...);
1000 template<
typename F>
1003 for(
auto &child : m_value)
1010 template<
typename F>
1013 for(
const auto &child : m_value)
1020 using Iterator = std::vector<Settings2D::Acquisition>::iterator;
1046 return m_value == other.m_value;
1052 return m_value != other.m_value;
1058 return stream <<
value.toString();
1062 void setFromString(
const std::string &value);
1064 std::vector<Settings2D::Acquisition> m_value{};
1066 friend struct DataModel::Detail::Befriend<
Acquisitions>;
1085 static constexpr const char *
path{
"Diagnostics" };
1088 static constexpr const char *
name{
"Diagnostics" };
1092 R
"description(When Diagnostics is enabled, additional diagnostic data is recorded during capture and included when saving
1093the frame to a .zdf file. This enables Zivid's Customer Success team to provide better assistance and more
1094thorough troubleshooting.
1096Enabling Diagnostics increases the capture time and the RAM usage. It will also increase the size of the
1097.zdf file. It is recommended to enable Diagnostics only when reporting issues to Zivid's support team.
1111 static constexpr const char *
path{
"Diagnostics/Enabled" };
1114 static constexpr const char *
name{
"Enabled" };
1117 static constexpr const char *
description{ R
"description(Enable or disable diagnostics.)description" };
1127 return {
false,
true };
1156 return m_opt == other.m_opt;
1162 return m_opt != other.m_opt;
1168 return stream <<
value.toString();
1172 void setFromString(
const std::string &value);
1174 std::optional<bool> m_opt;
1176 friend struct DataModel::Detail::Befriend<
Enabled>;
1198 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1199 typename std::enable_if<
1200 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1204 template<typename... Args>
1208 using namespace Zivid::Detail::TypeTraits;
1211 AllArgsDecayedAreUnique<Args...>::value,
1212 "Found duplicate types among the arguments passed to Diagnostics(...). "
1213 "Types should be listed at most once.");
1215 set(std::forward<Args>(args)...);
1229 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1231 template<typename... Args>
1235 using namespace Zivid::Detail::TypeTraits;
1237 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1239 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1242 AllArgsDecayedAreUnique<Args...>::value,
1243 "Found duplicate types among the arguments passed to set(...). "
1244 "Types should be listed at most once.");
1246 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1261 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1263 template<typename... Args>
1267 using namespace Zivid::Detail::TypeTraits;
1269 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1271 AllArgsAreDescendantNodes::value,
1272 "All arguments passed to copyWith(...) must be descendant nodes.");
1275 AllArgsDecayedAreUnique<Args...>::value,
1276 "Found duplicate types among the arguments passed to copyWith(...). "
1277 "Types should be listed at most once.");
1280 copy.set(std::forward<Args>(args)...);
1305 typename std::enable_if<std::is_same<T, Settings2D::Diagnostics::Enabled>::value,
int>::type = 0>
1311 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1318 template<
typename F>
1325 template<
typename F>
1347 void setFromString(
const std::string &value);
1349 void setFromString(
const std::string &fullPath,
const std::string &value);
1351 std::string getString(
const std::string &fullPath)
const;
1355 friend struct DataModel::Detail::Befriend<
Diagnostics>;
1368 static constexpr const char *
path{
"Processing" };
1371 static constexpr const char *
name{
"Processing" };
1374 static constexpr const char *
description{ R
"description(2D processing settings.)description" };
1386 static constexpr const char *
path{
"Processing/Color" };
1389 static constexpr const char *
name{
"Color" };
1392 static constexpr const char *
description{ R
"description(Color settings.)description" };
1404 static constexpr const char *
path{
"Processing/Color/Balance" };
1407 static constexpr const char *
name{
"Balance" };
1410 static constexpr const char *
description{ R
"description(Color balance settings.)description" };
1422 static constexpr const char *
path{
"Processing/Color/Balance/Blue" };
1425 static constexpr const char *
name{
"Blue" };
1429 R
"description(Digital gain applied to blue channel.)description"
1438 return { 1.0, 8.0 };
1446 : m_opt{ verifyValue(
value) }
1467 return m_opt == other.m_opt;
1473 return m_opt != other.m_opt;
1479 return m_opt < other.m_opt;
1485 return m_opt > other.m_opt;
1491 return m_opt <= other.m_opt;
1497 return m_opt >= other.m_opt;
1503 return stream <<
value.toString();
1507 void setFromString(
const std::string &value);
1509 constexpr ValueType
static verifyValue(
const ValueType &value)
1511 return validRange().isInRange(value)
1513 :
throw std::out_of_range{
"Blue{ " + std::to_string(value)
1514 +
" } is not in range ["
1515 + std::to_string(validRange().min()) +
", "
1516 + std::to_string(validRange().max()) +
"]" };
1519 std::optional<double> m_opt;
1521 friend struct DataModel::Detail::Befriend<
Blue>;
1534 static constexpr const char *
path{
"Processing/Color/Balance/Green" };
1537 static constexpr const char *
name{
"Green" };
1541 R
"description(Digital gain applied to green channel.)description"
1550 return { 1.0, 8.0 };
1558 : m_opt{ verifyValue(
value) }
1579 return m_opt == other.m_opt;
1585 return m_opt != other.m_opt;
1591 return m_opt < other.m_opt;
1597 return m_opt > other.m_opt;
1603 return m_opt <= other.m_opt;
1609 return m_opt >= other.m_opt;
1615 return stream <<
value.toString();
1619 void setFromString(
const std::string &value);
1621 constexpr ValueType
static verifyValue(
const ValueType &value)
1623 return validRange().isInRange(value)
1625 :
throw std::out_of_range{
"Green{ " + std::to_string(value)
1626 +
" } is not in range ["
1627 + std::to_string(validRange().min()) +
", "
1628 + std::to_string(validRange().max()) +
"]" };
1631 std::optional<double> m_opt;
1633 friend struct DataModel::Detail::Befriend<
Green>;
1646 static constexpr const char *
path{
"Processing/Color/Balance/Red" };
1649 static constexpr const char *
name{
"Red" };
1653 R
"description(Digital gain applied to red channel.)description"
1662 return { 1.0, 8.0 };
1670 : m_opt{ verifyValue(
value) }
1691 return m_opt == other.m_opt;
1697 return m_opt != other.m_opt;
1703 return m_opt < other.m_opt;
1709 return m_opt > other.m_opt;
1715 return m_opt <= other.m_opt;
1721 return m_opt >= other.m_opt;
1727 return stream <<
value.toString();
1731 void setFromString(
const std::string &value);
1733 constexpr ValueType
static verifyValue(
const ValueType &value)
1735 return validRange().isInRange(value)
1737 :
throw std::out_of_range{
"Red{ " + std::to_string(value)
1738 +
" } is not in range ["
1739 + std::to_string(validRange().min()) +
", "
1740 + std::to_string(validRange().max()) +
"]" };
1743 std::optional<double> m_opt;
1745 friend struct DataModel::Detail::Befriend<
Red>;
1772 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1773 typename std::enable_if<
1774 Zivid::Detail::TypeTraits::
1775 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
1778 template<typename... Args>
1782 using namespace Zivid::Detail::TypeTraits;
1785 AllArgsDecayedAreUnique<Args...>::value,
1786 "Found duplicate types among the arguments passed to Balance(...). "
1787 "Types should be listed at most once.");
1789 set(std::forward<Args>(args)...);
1805 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1807 template<typename... Args>
1811 using namespace Zivid::Detail::TypeTraits;
1813 using AllArgsAreDescendantNodes =
1814 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1816 AllArgsAreDescendantNodes::value,
1817 "All arguments passed to set(...) must be descendant nodes.");
1820 AllArgsDecayedAreUnique<Args...>::value,
1821 "Found duplicate types among the arguments passed to set(...). "
1822 "Types should be listed at most once.");
1824 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1841 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1843 template<typename... Args>
1847 using namespace Zivid::Detail::TypeTraits;
1849 using AllArgsAreDescendantNodes =
1850 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1852 AllArgsAreDescendantNodes::value,
1853 "All arguments passed to copyWith(...) must be descendant nodes.");
1856 AllArgsDecayedAreUnique<Args...>::value,
1857 "Found duplicate types among the arguments passed to copyWith(...). "
1858 "Types should be listed at most once.");
1861 copy.set(std::forward<Args>(args)...);
1924 typename std::enable_if<
1925 std::is_same<T, Settings2D::Processing::Color::Balance::Blue>::value,
1934 typename std::enable_if<
1935 std::is_same<T, Settings2D::Processing::Color::Balance::Green>::value,
1944 typename std::enable_if<
1945 std::is_same<T, Settings2D::Processing::Color::Balance::Red>::value,
1952 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1958 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1964 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1971 template<
typename F>
1980 template<
typename F>
2004 void setFromString(
const std::string &value);
2006 void setFromString(
const std::string &fullPath,
const std::string &value);
2008 std::string getString(
const std::string &fullPath)
const;
2014 friend struct DataModel::Detail::Befriend<
Balance>;
2027 static constexpr const char *
path{
"Processing/Color/Experimental" };
2030 static constexpr const char *
name{
"Experimental" };
2034 R
"description(Experimental color settings. These may be renamed, moved or deleted in the future.)description"
2050 static constexpr const char *
path{
"Processing/Color/Experimental/HighlightSuppression" };
2053 static constexpr const char *
name{
"HighlightSuppression" };
2057 R
"description(Suppress highlights caused by the projector. Suppressed areas will appear with structure
2058and detail restored, but with reduced color information relative to the rest of the image.
2059This feature is available for Zivid 2+R and Zivid 3 cameras.
2074 "Processing/Color/Experimental/HighlightSuppression/Enabled"
2078 static constexpr const char *
name{
"Enabled" };
2082 R
"description(Enable or disable the highlight suppression.)description"
2093 return {
false,
true };
2122 return m_opt == other.m_opt;
2128 return m_opt != other.m_opt;
2134 return stream <<
value.toString();
2138 void setFromString(
const std::string &value);
2140 std::optional<bool> m_opt;
2142 friend struct DataModel::Detail::Befriend<
Enabled>;
2146 std::tuple<Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled>;
2165 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2166 typename std::enable_if<
2167 Zivid::Detail::TypeTraits::
2168 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
2171 template<typename... Args>
2175 using namespace Zivid::Detail::TypeTraits;
2178 AllArgsDecayedAreUnique<Args...>::value,
2179 "Found duplicate types among the arguments passed to HighlightSuppression(...). "
2180 "Types should be listed at most once.");
2182 set(std::forward<Args>(args)...);
2196 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2198 template<typename... Args>
2202 using namespace Zivid::Detail::TypeTraits;
2204 using AllArgsAreDescendantNodes =
2205 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2207 AllArgsAreDescendantNodes::value,
2208 "All arguments passed to set(...) must be descendant nodes.");
2211 AllArgsDecayedAreUnique<Args...>::value,
2212 "Found duplicate types among the arguments passed to set(...). "
2213 "Types should be listed at most once.");
2215 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2230 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2232 template<typename... Args>
2236 using namespace Zivid::Detail::TypeTraits;
2238 using AllArgsAreDescendantNodes =
2239 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2241 AllArgsAreDescendantNodes::value,
2242 "All arguments passed to copyWith(...) must be descendant nodes.");
2245 AllArgsDecayedAreUnique<Args...>::value,
2246 "Found duplicate types among the arguments passed to copyWith(...). "
2247 "Types should be listed at most once.");
2250 copy.set(std::forward<Args>(args)...);
2275 typename std::enable_if<
2285 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2292 template<
typename F>
2299 template<
typename F>
2321 void setFromString(
const std::string &value);
2323 void setFromString(
const std::string &fullPath,
const std::string &value);
2325 std::string getString(
const std::string &fullPath)
const;
2356 static constexpr const char *
path{
"Processing/Color/Experimental/Mode" };
2359 static constexpr const char *
name{
"Mode" };
2363 R
"description(This setting controls how the color image is computed.
2365`automatic` is the default option. It performs tone mapping for HDR captures, but not for
2366single-acquisition captures. Use this mode with a single acquisition if you want to have
2367the most control over the colors in the image.
2369`toneMapping` uses all the acquisitions to create one merged and normalized color image. For
2370HDR captures the dynamic range of the captured images is usually higher than the 8-bit color
2371image range. `toneMapping` will map the HDR color data to the 8-bit color output range by
2372applying a scaling factor. `toneMapping` can also be used for single-acquisition captures to
2373normalize the captured color image to the full 8-bit output. Note that when using `toneMapping`
2374mode the color values can be inconsistent over repeated captures if you move, add or remove
2375objects in the scene. For the most control over the colors in the single-acquisition case,
2376select the `automatic` mode.
2400 : m_opt{ verifyValue(
value) }
2421 return stream <<
Mode{
value }.toString();
2427 return m_opt == other.m_opt;
2433 return m_opt != other.m_opt;
2439 return stream <<
value.toString();
2443 void setFromString(
const std::string &value);
2445 constexpr ValueType
static verifyValue(
const ValueType &value)
2447 return value == ValueType::automatic || value == ValueType::toneMapping
2449 :
throw std::invalid_argument{
2450 "Invalid value: Mode{ "
2451 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value))
2456 std::optional<ValueType> m_opt;
2458 friend struct DataModel::Detail::Befriend<
Mode>;
2485 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2486 typename std::enable_if<
2487 Zivid::Detail::TypeTraits::
2488 AllArgsAreInTuple<
Descendants, typename std::decay<Args>::type...>::value,
2491 template<typename... Args>
2495 using namespace Zivid::Detail::TypeTraits;
2498 AllArgsDecayedAreUnique<Args...>::value,
2499 "Found duplicate types among the arguments passed to Experimental(...). "
2500 "Types should be listed at most once.");
2502 set(std::forward<Args>(args)...);
2518 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2520 template<typename... Args>
2524 using namespace Zivid::Detail::TypeTraits;
2526 using AllArgsAreDescendantNodes =
2527 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2529 AllArgsAreDescendantNodes::value,
2530 "All arguments passed to set(...) must be descendant nodes.");
2533 AllArgsDecayedAreUnique<Args...>::value,
2534 "Found duplicate types among the arguments passed to set(...). "
2535 "Types should be listed at most once.");
2537 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2554 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2556 template<typename... Args>
2560 using namespace Zivid::Detail::TypeTraits;
2562 using AllArgsAreDescendantNodes =
2563 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2565 AllArgsAreDescendantNodes::value,
2566 "All arguments passed to copyWith(...) must be descendant nodes.");
2569 AllArgsDecayedAreUnique<Args...>::value,
2570 "Found duplicate types among the arguments passed to copyWith(...). "
2571 "Types should be listed at most once.");
2574 copy.set(std::forward<Args>(args)...);
2581 return m_highlightSuppression;
2587 return m_highlightSuppression;
2593 m_highlightSuppression = value;
2600 m_highlightSuppression.
set(value);
2625 typename std::enable_if<
2626 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression>::value,
2630 return m_highlightSuppression;
2635 typename std::enable_if<
2642 return m_highlightSuppression
2648 typename std::enable_if<
2649 std::is_same<T, Settings2D::Processing::Color::Experimental::Mode>::value,
2656 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
2659 return m_highlightSuppression;
2662 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
2669 template<
typename F>
2672 f(m_highlightSuppression);
2677 template<
typename F>
2680 f(m_highlightSuppression);
2700 void setFromString(
const std::string &value);
2702 void setFromString(
const std::string &fullPath,
const std::string &value);
2704 std::string getString(
const std::string &fullPath)
const;
2706 HighlightSuppression m_highlightSuppression;
2709 friend struct DataModel::Detail::Befriend<
Experimental>;
2724 static constexpr const char *
path{
"Processing/Color/Gamma" };
2727 static constexpr const char *
name{
"Gamma" };
2731 R
"description(Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma
2732greater than 1 makes the colors darker.
2742 return { 0.25, 1.5 };
2750 : m_opt{ verifyValue(
value) }
2771 return m_opt == other.m_opt;
2777 return m_opt != other.m_opt;
2783 return m_opt < other.m_opt;
2789 return m_opt > other.m_opt;
2795 return m_opt <= other.m_opt;
2801 return m_opt >= other.m_opt;
2807 return stream <<
value.toString();
2811 void setFromString(
const std::string &value);
2813 constexpr ValueType
static verifyValue(
const ValueType &value)
2815 return validRange().isInRange(value)
2817 :
throw std::out_of_range{
"Gamma{ " + std::to_string(value) +
" } is not in range ["
2818 + std::to_string(validRange().min()) +
", "
2819 + std::to_string(validRange().max()) +
"]" };
2822 std::optional<double> m_opt;
2824 friend struct DataModel::Detail::Befriend<
Gamma>;
2863 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
2864 typename std::enable_if<
2865 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
2869 template<typename... Args>
2873 using namespace Zivid::Detail::TypeTraits;
2876 AllArgsDecayedAreUnique<Args...>::value,
2877 "Found duplicate types among the arguments passed to Color(...). "
2878 "Types should be listed at most once.");
2880 set(std::forward<Args>(args)...);
2902 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
2904 template<typename... Args>
2908 using namespace Zivid::Detail::TypeTraits;
2910 using AllArgsAreDescendantNodes =
2911 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2913 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
2916 AllArgsDecayedAreUnique<Args...>::value,
2917 "Found duplicate types among the arguments passed to set(...). "
2918 "Types should be listed at most once.");
2920 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
2943 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
2945 template<typename... Args>
2949 using namespace Zivid::Detail::TypeTraits;
2951 using AllArgsAreDescendantNodes =
2952 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
2954 AllArgsAreDescendantNodes::value,
2955 "All arguments passed to copyWith(...) must be descendant nodes.");
2958 AllArgsDecayedAreUnique<Args...>::value,
2959 "Found duplicate types among the arguments passed to copyWith(...). "
2960 "Types should be listed at most once.");
2963 copy.set(std::forward<Args>(args)...);
2989 m_balance.
set(value);
2996 m_balance.
set(value);
3003 m_balance.
set(value);
3010 return m_experimental;
3016 return m_experimental;
3022 m_experimental = value;
3029 m_experimental.
set(value);
3036 m_experimental.
set(value);
3043 m_experimental.
set(value);
3068 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance>::value,
int>::type =
3077 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Blue>::value,
int>::
3087 enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Green>::value,
int>::type = 0>
3095 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Red>::value,
int>::
3104 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Experimental>::value,
int>::
3108 return m_experimental;
3113 typename std::enable_if<
3114 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression>::value,
3123 typename std::enable_if<
3124 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled>::
3129 return m_experimental
3135 typename std::enable_if<
3136 std::is_same<T, Settings2D::Processing::Color::Experimental::Mode>::value,
3145 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Gamma>::value,
int>::type =
3152 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
3158 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
3161 return m_experimental;
3164 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
3171 template<
typename F>
3180 template<
typename F>
3204 void setFromString(
const std::string &value);
3206 void setFromString(
const std::string &fullPath,
const std::string &value);
3208 std::string getString(
const std::string &fullPath)
const;
3214 friend struct DataModel::Detail::Befriend<
Color>;
3255 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
3256 typename std::enable_if<
3257 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
3261 template<typename... Args>
3265 using namespace Zivid::Detail::TypeTraits;
3268 AllArgsDecayedAreUnique<Args...>::value,
3269 "Found duplicate types among the arguments passed to Processing(...). "
3270 "Types should be listed at most once.");
3272 set(std::forward<Args>(args)...);
3295 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
3297 template<typename... Args>
3301 using namespace Zivid::Detail::TypeTraits;
3303 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3305 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
3308 AllArgsDecayedAreUnique<Args...>::value,
3309 "Found duplicate types among the arguments passed to set(...). "
3310 "Types should be listed at most once.");
3312 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
3336 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
3338 template<typename... Args>
3342 using namespace Zivid::Detail::TypeTraits;
3344 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
3346 AllArgsAreDescendantNodes::value,
3347 "All arguments passed to copyWith(...) must be descendant nodes.");
3350 AllArgsDecayedAreUnique<Args...>::value,
3351 "Found duplicate types among the arguments passed to copyWith(...). "
3352 "Types should be listed at most once.");
3355 copy.set(std::forward<Args>(args)...);
3443 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color>::value,
int>::type = 0>
3451 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance>::value,
int>::type = 0>
3459 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Blue>::value,
int>::
3468 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Green>::value,
int>::
3477 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Red>::value,
int>::
3486 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Experimental>::value,
int>::
3495 typename std::enable_if<
3496 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression>::value,
3505 typename std::enable_if<
3506 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled>::value,
3516 enable_if<std::is_same<T, Settings2D::Processing::Color::Experimental::Mode>::value,
int>::type = 0>
3524 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Gamma>::value,
int>::type = 0>
3530 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
3537 template<
typename F>
3544 template<
typename F>
3566 void setFromString(
const std::string &value);
3568 void setFromString(
const std::string &fullPath,
const std::string &value);
3570 std::string getString(
const std::string &fullPath)
const;
3574 friend struct DataModel::Detail::Befriend<
Processing>;
3588 static constexpr const char *
path{
"Sampling" };
3591 static constexpr const char *
name{
"Sampling" };
3594 static constexpr const char *
description{ R
"description(Sampling settings.
3623 static constexpr const char *
path{
"Sampling/Color" };
3626 static constexpr const char *
name{
"Color" };
3629 static constexpr const char *
description{ R
"description(Choose how to sample colors for the 2D image.
3631- `rgb` option gives an image with full colors.
3632- `grayscale` option gives a grayscale (r=g=b) image, which
3633 can be acquired faster than full colors.
3634- `rgbStrongAmbientLight` option gives an image with full colors and reduced
3635 color noise. This option should be chosen only for applications which
3636 suffer from high color noise and with high amounts of ambient light in the
3638- `rgbAmbientSuppression` option gives an image with full colors while
3639 suppressing the ambient light. The Zivid 2+R and Zivid 3 cameras suppress ambient
3640 light by default, and therefore do not need the additional option
3641 `rgbAmbientSuppression`.
3644The `grayscale`, `rgbStrongAmbientLight` and `rgbAmbientSuppression` options are not available on all camera models.
3674 : m_opt{ verifyValue(
value) }
3701 return m_opt == other.m_opt;
3707 return m_opt != other.m_opt;
3713 return stream <<
value.toString();
3717 void setFromString(
const std::string &value);
3719 constexpr ValueType
static verifyValue(
const ValueType &value)
3721 return value == ValueType::rgb || value == ValueType::grayscale
3722 || value == ValueType::rgbStrongAmbientLight
3723 || value == ValueType::rgbAmbientSuppression
3725 :
throw std::invalid_argument{
3726 "Invalid value: Color{ "
3727 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
3731 std::optional<ValueType> m_opt;
3733 friend struct DataModel::Detail::Befriend<
Color>;
3753 static constexpr const char *
path{
"Sampling/Interval" };
3756 static constexpr const char *
name{
"Interval" };
3760 R
"description(Sampling interval controls the interval between successive sensor operations (e.g.,
3761structured light pattern projection and image exposure), aligned to external
3762frequencies (e.g., 50 Hz, 60 Hz grid) or to other devices (e.g., barcode scanners
3763at 100 Hz). The requested interval is a target: the sensor operations will happen
3764at this rate if the it can fit the chosen exposure time plus some processing overhead.
3765Otherwise, the sampling interval is rounded up to the nearest suitable integer multiple
3766(e.g., n * 10 ms for 100 Hz and n * 8.33 ms for 120 Hz).
3783 static constexpr const char *
path{
"Sampling/Interval/Duration" };
3786 static constexpr const char *
name{
"Duration" };
3790 R
"description(Duration between successive sensor operations, in microseconds. The effective interval
3791might be rounded up to the nearest suitable integer multiple and will never be shorter
3792than exposure time plus some processing overhead.
3802 return { std::chrono::microseconds{ 1000 }, std::chrono::microseconds{ 10000 } };
3810 : m_opt{ verifyValue(
value) }
3817 std::chrono::microseconds
value()
const;
3831 return m_opt == other.m_opt;
3837 return m_opt != other.m_opt;
3843 return m_opt < other.m_opt;
3849 return m_opt > other.m_opt;
3855 return m_opt <= other.m_opt;
3861 return m_opt >= other.m_opt;
3867 return stream <<
value.toString();
3871 void setFromString(
const std::string &value);
3873 constexpr ValueType
static verifyValue(
const ValueType &value)
3875 return validRange().isInRange(value)
3877 :
throw std::out_of_range{
"Duration{ " + std::to_string(value.count())
3878 +
" } is not in range ["
3879 + std::to_string(validRange().min().count()) +
", "
3880 + std::to_string(validRange().max().count()) +
"]" };
3883 std::optional<std::chrono::microseconds> m_opt;
3885 friend struct DataModel::Detail::Befriend<
Duration>;
3898 static constexpr const char *
path{
"Sampling/Interval/Enabled" };
3901 static constexpr const char *
name{
"Enabled" };
3905 R
"description(Enable or disable sampling interval.)description"
3916 return {
false,
true };
3945 return m_opt == other.m_opt;
3951 return m_opt != other.m_opt;
3957 return stream <<
value.toString();
3961 void setFromString(
const std::string &value);
3963 std::optional<bool> m_opt;
3965 friend struct DataModel::Detail::Befriend<
Enabled>;
3969 std::tuple<Settings2D::Sampling::Interval::Duration, Settings2D::Sampling::Interval::Enabled>;
3989 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
3990 typename std::enable_if<
3991 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
3995 template<typename... Args>
3999 using namespace Zivid::Detail::TypeTraits;
4002 AllArgsDecayedAreUnique<Args...>::value,
4003 "Found duplicate types among the arguments passed to Interval(...). "
4004 "Types should be listed at most once.");
4006 set(std::forward<Args>(args)...);
4021 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
4023 template<typename... Args>
4027 using namespace Zivid::Detail::TypeTraits;
4029 using AllArgsAreDescendantNodes =
4030 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4032 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
4035 AllArgsDecayedAreUnique<Args...>::value,
4036 "Found duplicate types among the arguments passed to set(...). "
4037 "Types should be listed at most once.");
4039 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
4055 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
4057 template<typename... Args>
4061 using namespace Zivid::Detail::TypeTraits;
4063 using AllArgsAreDescendantNodes =
4064 AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4066 AllArgsAreDescendantNodes::value,
4067 "All arguments passed to copyWith(...) must be descendant nodes.");
4070 AllArgsDecayedAreUnique<Args...>::value,
4071 "Found duplicate types among the arguments passed to copyWith(...). "
4072 "Types should be listed at most once.");
4075 copy.set(std::forward<Args>(args)...);
4119 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Duration>::value,
int>::
4128 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Enabled>::value,
int>::
4135 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
4141 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
4148 template<
typename F>
4156 template<
typename F>
4179 void setFromString(
const std::string &value);
4181 void setFromString(
const std::string &fullPath,
const std::string &value);
4183 std::string getString(
const std::string &fullPath)
const;
4185 Duration m_duration;
4188 friend struct DataModel::Detail::Befriend<
Interval>;
4203 static constexpr const char *
path{
"Sampling/Pixel" };
4206 static constexpr const char *
name{
"Pixel" };
4210 R
"description(Set the pixel sampling to use for the 2D capture. This setting defines how the camera sensor is sampled.
4211When doing 2D+3D capture, picking the same value that is used for 3D is generally recommended.
4251 : m_opt{ verifyValue(
value) }
4278 return m_opt == other.m_opt;
4284 return m_opt != other.m_opt;
4290 return stream <<
value.toString();
4294 void setFromString(
const std::string &value);
4296 constexpr ValueType
static verifyValue(
const ValueType &value)
4298 return value == ValueType::all || value == ValueType::blueSubsample2x2
4299 || value == ValueType::redSubsample2x2 || value == ValueType::blueSubsample4x4
4300 || value == ValueType::redSubsample4x4 || value == ValueType::by2x2
4301 || value == ValueType::by4x4
4303 :
throw std::invalid_argument{
4304 "Invalid value: Pixel{ "
4305 + std::to_string(
static_cast<std::underlying_type<ValueType>::type
>(value)) +
" }"
4309 std::optional<ValueType> m_opt;
4311 friend struct DataModel::Detail::Befriend<
Pixel>;
4342 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
4343 typename std::enable_if<
4344 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
4348 template<typename... Args>
4352 using namespace Zivid::Detail::TypeTraits;
4355 AllArgsDecayedAreUnique<Args...>::value,
4356 "Found duplicate types among the arguments passed to Sampling(...). "
4357 "Types should be listed at most once.");
4359 set(std::forward<Args>(args)...);
4377 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
4379 template<typename... Args>
4383 using namespace Zivid::Detail::TypeTraits;
4385 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4387 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
4390 AllArgsDecayedAreUnique<Args...>::value,
4391 "Found duplicate types among the arguments passed to set(...). "
4392 "Types should be listed at most once.");
4394 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
4413 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
4415 template<typename... Args>
4419 using namespace Zivid::Detail::TypeTraits;
4421 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4423 AllArgsAreDescendantNodes::value,
4424 "All arguments passed to copyWith(...) must be descendant nodes.");
4427 AllArgsDecayedAreUnique<Args...>::value,
4428 "Found duplicate types among the arguments passed to copyWith(...). "
4429 "Types should be listed at most once.");
4432 copy.set(std::forward<Args>(args)...);
4477 m_interval.
set(value);
4484 m_interval.
set(value);
4509 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Color>::value,
int>::type = 0>
4517 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval>::value,
int>::type = 0>
4525 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Duration>::value,
int>::type =
4534 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Enabled>::value,
int>::type = 0>
4542 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Pixel>::value,
int>::type = 0>
4548 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
4554 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
4560 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
4567 template<
typename F>
4576 template<
typename F>
4600 void setFromString(
const std::string &value);
4602 void setFromString(
const std::string &fullPath,
const std::string &value);
4604 std::string getString(
const std::string &fullPath)
const;
4607 Interval m_interval;
4610 friend struct DataModel::Detail::Befriend<
Sampling>;
4688 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
4689 typename std::enable_if<
4690 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
4693 template<typename... Args>
4697 using namespace Zivid::Detail::TypeTraits;
4700 AllArgsDecayedAreUnique<Args...>::value,
4701 "Found duplicate types among the arguments passed to Settings2D(...). "
4702 "Types should be listed at most once.");
4704 set(std::forward<Args>(args)...);
4737 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
4739 template<typename... Args>
4743 using namespace Zivid::Detail::TypeTraits;
4745 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4747 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
4750 AllArgsDecayedAreUnique<Args...>::value,
4751 "Found duplicate types among the arguments passed to set(...). "
4752 "Types should be listed at most once.");
4754 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
4788 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
4790 template<typename... Args>
4794 using namespace Zivid::Detail::TypeTraits;
4796 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
4798 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
4801 AllArgsDecayedAreUnique<Args...>::value,
4802 "Found duplicate types among the arguments passed to copyWith(...). "
4803 "Types should be listed at most once.");
4806 copy.set(std::forward<Args>(args)...);
4813 return m_acquisitions;
4819 return m_acquisitions;
4825 m_acquisitions = value;
4832 return m_diagnostics;
4838 return m_diagnostics;
4844 m_diagnostics = value;
4851 m_diagnostics.
set(value);
4858 return m_processing;
4864 return m_processing;
4870 m_processing = value;
4877 m_processing.
set(value);
4884 m_processing.
set(value);
4891 m_processing.
set(value);
4898 m_processing.
set(value);
4905 m_processing.
set(value);
4912 m_processing.
set(value);
4919 m_processing.
set(value);
4926 m_processing.
set(value);
4933 m_processing.
set(value);
4940 m_processing.
set(value);
4966 m_sampling.
set(value);
4973 m_sampling.
set(value);
4980 m_sampling.
set(value);
4987 m_sampling.
set(value);
4994 m_sampling.
set(value);
4998 template<typename T, typename std::enable_if<std::is_same<T, Settings2D::Acquisitions>::value,
int>::type = 0>
5001 return m_acquisitions;
5004 template<typename T, typename std::enable_if<std::is_same<T, Settings2D::Diagnostics>::value,
int>::type = 0>
5007 return m_diagnostics;
5012 typename std::enable_if<std::is_same<T, Settings2D::Diagnostics::Enabled>::value,
int>::type = 0>
5018 template<typename T, typename std::enable_if<std::is_same<T, Settings2D::Processing>::value,
int>::type = 0>
5021 return m_processing;
5026 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color>::value,
int>::type = 0>
5034 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance>::value,
int>::type = 0>
5042 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Blue>::value,
int>::type =
5051 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Green>::value,
int>::type =
5060 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Balance::Red>::value,
int>::type = 0>
5068 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Experimental>::value,
int>::type = 0>
5076 typename std::enable_if<
5077 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression>::value,
5086 typename std::enable_if<
5087 std::is_same<T, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled>::value,
5096 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Experimental::Mode>::value,
int>::
5105 typename std::enable_if<std::is_same<T, Settings2D::Processing::Color::Gamma>::value,
int>::type = 0>
5111 template<typename T, typename std::enable_if<std::is_same<T, Settings2D::Sampling>::value,
int>::type = 0>
5119 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Color>::value,
int>::type = 0>
5127 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval>::value,
int>::type = 0>
5135 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Duration>::value,
int>::type = 0>
5143 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Interval::Enabled>::value,
int>::type = 0>
5151 typename std::enable_if<std::is_same<T, Settings2D::Sampling::Pixel>::value,
int>::type = 0>
5157 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
5160 return m_acquisitions;
5163 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
5166 return m_diagnostics;
5169 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
5172 return m_processing;
5175 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
5182 template<
typename F>
5192 template<
typename F>
5217 void save(
const std::string &fileName)
const;
5220 void load(
const std::string &fileName);
5223 void setFromString(
const std::string &value);
5225 void setFromString(
const std::string &fullPath,
const std::string &value);
5227 std::string getString(
const std::string &fullPath)
const;
5234 friend struct DataModel::Detail::Befriend<
Settings2D>;
5239 struct Settings2D::Version<10>
5252 ZIVID_CORE_EXPORT void save(
const Zivid::Settings2D &dataModel, std::ostream &ostream);
5253 ZIVID_CORE_EXPORT void load(Zivid::Settings2D &dataModel, std::istream &istream);
5259# pragma warning(pop)
5263# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
5268 struct tuple_size<Zivid::Settings2D::Diagnostics> : integral_constant<size_t, 1>
5272 struct tuple_element<i, Zivid::Settings2D::Diagnostics>
5274 static_assert(i < tuple_size<Zivid::Settings2D::Diagnostics>::value,
"Index must be less than 1");
5277 =
decltype(declval<Zivid::Settings2D::Diagnostics>().get<i>());
5281 struct tuple_size<Zivid::Settings2D::Processing> : integral_constant<size_t, 1>
5285 struct tuple_element<i, Zivid::Settings2D::Processing>
5287 static_assert(i < tuple_size<Zivid::Settings2D::Processing>::value,
"Index must be less than 1");
5290 =
decltype(declval<Zivid::Settings2D::Processing>().get<i>());
5294 struct tuple_size<Zivid::Settings2D::Processing::Color> : integral_constant<size_t, 3>
5298 struct tuple_element<i, Zivid::Settings2D::Processing::Color>
5300 static_assert(i < tuple_size<Zivid::Settings2D::Processing::Color>::value,
"Index must be less than 3");
5303 =
decltype(declval<Zivid::Settings2D::Processing::Color>().get<i>());
5307 struct tuple_size<Zivid::Settings2D::Processing::Color::Balance> : integral_constant<size_t, 3>
5311 struct tuple_element<i, Zivid::Settings2D::Processing::Color::Balance>
5314 i < tuple_size<Zivid::Settings2D::Processing::Color::Balance>::value,
5315 "Index must be less than 3");
5318 =
decltype(declval<Zivid::Settings2D::Processing::Color::Balance>().get<i>());
5322 struct tuple_size<Zivid::Settings2D::Processing::Color::Experimental> : integral_constant<size_t, 2>
5326 struct tuple_element<i, Zivid::Settings2D::Processing::Color::Experimental>
5329 i < tuple_size<Zivid::Settings2D::Processing::Color::Experimental>::value,
5330 "Index must be less than 2");
5333 =
decltype(declval<Zivid::Settings2D::Processing::Color::Experimental>().get<i>());
5337 struct tuple_size<Zivid::Settings2D::Processing::Color::Experimental::HighlightSuppression>
5338 : integral_constant<size_t, 1>
5342 struct tuple_element<i, Zivid::Settings2D::Processing::Color::Experimental::HighlightSuppression>
5345 i < tuple_size<Zivid::Settings2D::Processing::Color::Experimental::HighlightSuppression>::value,
5346 "Index must be less than 1");
5349 =
decltype(declval<Zivid::Settings2D::Processing::Color::Experimental::HighlightSuppression>().get<i>());
5353 struct tuple_size<Zivid::Settings2D::Sampling> : integral_constant<size_t, 3>
5357 struct tuple_element<i, Zivid::Settings2D::Sampling>
5359 static_assert(i < tuple_size<Zivid::Settings2D::Sampling>::value,
"Index must be less than 3");
5362 =
decltype(declval<Zivid::Settings2D::Sampling>().get<i>());
5366 struct tuple_size<Zivid::Settings2D::Sampling::Interval> : integral_constant<size_t, 2>
5370 struct tuple_element<i, Zivid::Settings2D::Sampling::Interval>
5372 static_assert(i < tuple_size<Zivid::Settings2D::Sampling::Interval>::value,
"Index must be less than 2");
5375 =
decltype(declval<Zivid::Settings2D::Sampling::Interval>().get<i>());
5379 struct tuple_size<Zivid::Settings2D> : integral_constant<size_t, 4>
5383 struct tuple_element<i, Zivid::Settings2D>
5385 static_assert(i < tuple_size<Zivid::Settings2D>::value,
"Index must be less than 4");
5388 =
decltype(declval<Zivid::Settings2D>().get<i>());
5397#if defined(__has_include) && !defined(NO_DOC)
5398# if __has_include("Zivid/Settings2DInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
5399# include "Zivid/Settings2DInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
Class describing a range of values for a given type T.
Definition Range.h:75
Aperture setting for the camera. Specified as an f-number (the ratio of lens focal length to the effe...
Definition Settings2D.h:144
void reset()
Reset the node to unset state.
bool operator!=(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:204
static constexpr const char * name
The name of this value.
Definition Settings2D.h:153
friend std::ostream & operator<<(std::ostream &stream, const Aperture &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:234
bool operator<(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:210
constexpr Aperture(double value)
Constructor.
Definition Settings2D.h:178
static constexpr Range< double > validRange()
The range of valid values for Aperture.
Definition Settings2D.h:169
bool operator>=(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:228
bool operator<=(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:222
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:150
std::string toString() const
Get the value as string.
double value() const
Get the value.
bool operator>(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:216
Aperture()=default
Default constructor.
double ValueType
The type of the underlying value.
Definition Settings2D.h:166
bool operator==(const Aperture &other) const
Comparison operator.
Definition Settings2D.h:198
static constexpr const char * description
The description for this value.
Definition Settings2D.h:156
bool hasValue() const
Check if the value is set.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:147
Brightness controls the light output from the projector.
Definition Settings2D.h:270
bool operator==(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:329
bool operator<=(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:353
bool operator>(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:347
bool operator<(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:341
static constexpr Range< double > validRange()
The range of valid values for Brightness.
Definition Settings2D.h:300
static constexpr const char * name
The name of this value.
Definition Settings2D.h:279
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:273
constexpr Brightness(double value)
Constructor.
Definition Settings2D.h:309
std::string toString() const
Get the value as string.
bool operator!=(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:335
bool operator>=(const Brightness &other) const
Comparison operator.
Definition Settings2D.h:359
friend std::ostream & operator<<(std::ostream &stream, const Brightness &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:365
static constexpr const char * description
The description for this value.
Definition Settings2D.h:282
double value() const
Get the value.
Brightness()=default
Default constructor.
bool hasValue() const
Check if the value is set.
void reset()
Reset the node to unset state.
double ValueType
The type of the underlying value.
Definition Settings2D.h:297
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:276
Exposure time for the image.
Definition Settings2D.h:391
static constexpr const char * description
The description for this value.
Definition Settings2D.h:403
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:394
bool operator>(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:456
static constexpr const char * name
The name of this value.
Definition Settings2D.h:400
std::chrono::microseconds ValueType
The type of the underlying value.
Definition Settings2D.h:406
bool operator>=(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:468
void reset()
Reset the node to unset state.
constexpr ExposureTime(std::chrono::microseconds value)
Constructor.
Definition Settings2D.h:418
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:397
std::chrono::microseconds value() const
Get the value.
bool operator<(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:450
bool operator<=(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:462
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for ExposureTime.
Definition Settings2D.h:409
bool operator!=(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:444
std::string toString() const
Get the value as string.
ExposureTime()=default
Default constructor.
bool operator==(const ExposureTime &other) const
Comparison operator.
Definition Settings2D.h:438
friend std::ostream & operator<<(std::ostream &stream, const ExposureTime &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:474
bool hasValue() const
Check if the value is set.
Analog gain in the camera.
Definition Settings2D.h:501
bool operator>(const Gain &other) const
Comparison operator.
Definition Settings2D.h:566
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:504
bool operator!=(const Gain &other) const
Comparison operator.
Definition Settings2D.h:554
bool operator==(const Gain &other) const
Comparison operator.
Definition Settings2D.h:548
friend std::ostream & operator<<(std::ostream &stream, const Gain &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:584
double ValueType
The type of the underlying value.
Definition Settings2D.h:516
Gain()=default
Default constructor.
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition Settings2D.h:513
void reset()
Reset the node to unset state.
static constexpr const char * name
The name of this value.
Definition Settings2D.h:510
constexpr Gain(double value)
Constructor.
Definition Settings2D.h:528
double value() const
Get the value.
bool hasValue() const
Check if the value is set.
bool operator>=(const Gain &other) const
Comparison operator.
Definition Settings2D.h:578
bool operator<=(const Gain &other) const
Comparison operator.
Definition Settings2D.h:572
static constexpr Range< double > validRange()
The range of valid values for Gain.
Definition Settings2D.h:519
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:507
bool operator<(const Gain &other) const
Comparison operator.
Definition Settings2D.h:560
Settings for one 2D acquisition.
Definition Settings2D.h:117
const Settings2D::Acquisition::Gain & get() const
Definition Settings2D.h:827
const ExposureTime & exposureTime() const
Get ExposureTime.
Definition Settings2D.h:763
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:858
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:868
const Settings2D::Acquisition::Aperture & get() const
Definition Settings2D.h:803
ExposureTime & exposureTime()
Get ExposureTime.
Definition Settings2D.h:769
friend std::ostream & operator<<(std::ostream &stream, const Acquisition &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:886
bool operator!=(const Acquisition &other) const
Inequality operator.
Acquisition & set(const Gain &value)
Set Gain.
Definition Settings2D.h:794
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition Settings2D.h:126
Acquisition & set(const Aperture &value)
Set Aperture.
Definition Settings2D.h:737
Gain & gain()
Get Gain.
Definition Settings2D.h:788
bool operator==(const Acquisition &other) const
Equality operator.
Acquisition copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:705
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:670
const Settings2D::Acquisition::ExposureTime & get() const
Definition Settings2D.h:819
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:123
Acquisition()
Default constructor.
Aperture & aperture()
Get Aperture.
Definition Settings2D.h:731
static constexpr const char * description
The description for this value.
Definition Settings2D.h:129
const Aperture & aperture() const
Get Aperture.
Definition Settings2D.h:725
Acquisition & set(const Brightness &value)
Set Brightness.
Definition Settings2D.h:756
const Brightness & brightness() const
Get Brightness.
Definition Settings2D.h:744
Brightness & brightness()
Get Brightness.
Definition Settings2D.h:750
std::tuple< Settings2D::Acquisition::Aperture, Settings2D::Acquisition::Brightness, Settings2D::Acquisition::ExposureTime, Settings2D::Acquisition::Gain > Descendants
Definition Settings2D.h:606
const Gain & gain() const
Get Gain.
Definition Settings2D.h:782
const Settings2D::Acquisition::Brightness & get() const
Definition Settings2D.h:811
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:120
Acquisition & set(const ExposureTime &value)
Set ExposureTime.
Definition Settings2D.h:775
List of acquisitions used for 2D capture.
Definition Settings2D.h:910
const Settings2D::Acquisition & at(std::size_t pos) const
Returns a const reference to the element at position pos in the list.
static constexpr Range< ValueType::size_type > validSize()
The valid sizes for Acquisitions.
Definition Settings2D.h:930
Acquisitions(std::initializer_list< Settings2D::Acquisition > value)
Constructor.
Definition Settings2D.h:944
static constexpr const char * description
The description for this value.
Definition Settings2D.h:922
Settings2D::Acquisition & operator[](std::size_t pos)
Returns a reference to the element at position pos in the list.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:916
const Settings2D::Acquisition & operator[](std::size_t pos) const
Returns a const reference to the element at position pos in the list.
ConstIterator cbegin() const noexcept
Returns a constant iterator to the first element of the list.
Acquisitions(std::vector< Settings2D::Acquisition > value)
Constructor.
Definition Settings2D.h:939
void forEach(const F &f)
Run the given function on each element in the list.
Definition Settings2D.h:1001
ConstIterator cend() const noexcept
Returns a constant iterator to the element following the last element of the list.
Settings2D::Acquisition & at(std::size_t pos)
Returns a reference to the element at position pos in the list.
void forEach(const F &f) const
Run the given function on each element in the list.
Definition Settings2D.h:1011
std::vector< Settings2D::Acquisition > ValueType
The type of the underlying value.
Definition Settings2D.h:927
Iterator begin() noexcept
Returns an iterator to the first element of the list.
std::string toString() const
Get the value as string.
friend std::ostream & operator<<(std::ostream &stream, const Acquisitions &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:1056
std::vector< Settings2D::Acquisition >::iterator Iterator
Iterator type for Acquisitions.
Definition Settings2D.h:1020
std::vector< Settings2D::Acquisition >::const_iterator ConstIterator
Constant iterator type for Acquisitions.
Definition Settings2D.h:1029
std::size_t size() const noexcept
Get the size of the list.
bool operator!=(const Acquisitions &other) const
Comparison operator.
Definition Settings2D.h:1050
Acquisitions()=default
Default constructor.
void emplaceBack(Args &&...args)
Appends a new element to the end of the list.
Definition Settings2D.h:966
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:913
static constexpr const char * name
The name of this value.
Definition Settings2D.h:919
Iterator end() noexcept
Returns an iterator to the element following the last element of the list.
bool isEmpty() const noexcept
Check if the list is empty.
const std::vector< Settings2D::Acquisition > & value() const
Get the value.
Enable or disable diagnostics.
Definition Settings2D.h:1105
static const Enabled no
Off/disabled.
Definition Settings2D.h:1122
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1117
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1108
static std::set< bool > validValues()
All valid values of Enabled.
Definition Settings2D.h:1125
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1114
bool operator!=(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:1160
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1111
void reset()
Reset the node to unset state.
bool value() const
Get the value.
static const Enabled yes
On/enabled.
Definition Settings2D.h:1121
friend std::ostream & operator<<(std::ostream &stream, const Enabled &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:1166
Enabled()=default
Default constructor.
constexpr Enabled(bool value)
Constructor.
Definition Settings2D.h:1134
bool operator==(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:1154
bool hasValue() const
Check if the value is set.
bool ValueType
The type of the underlying value.
Definition Settings2D.h:1120
std::string toString() const
Get the value as string.
When Diagnostics is enabled, additional diagnostic data is recorded during capture and included when ...
Definition Settings2D.h:1079
friend std::ostream & operator<<(std::ostream &stream, const Diagnostics &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:1341
const Enabled & isEnabled() const
Get Enabled.
Definition Settings2D.h:1285
std::tuple< Settings2D::Diagnostics::Enabled > Descendants
Definition Settings2D.h:1179
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1091
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:1233
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1085
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1088
Diagnostics copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:1265
const Settings2D::Diagnostics::Enabled & get() const
Definition Settings2D.h:1306
Diagnostics & set(const Enabled &value)
Set Enabled.
Definition Settings2D.h:1297
bool operator==(const Diagnostics &other) const
Equality operator.
Enabled & isEnabled()
Get Enabled.
Definition Settings2D.h:1291
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:1326
std::string toString() const
Get the value as string.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:1319
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1082
bool operator!=(const Diagnostics &other) const
Inequality operator.
Diagnostics()
Default constructor.
Digital gain applied to blue channel.
Definition Settings2D.h:1416
double value() const
Get the value.
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1425
friend std::ostream & operator<<(std::ostream &stream, const Blue &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:1501
bool operator<=(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1489
bool operator==(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1465
void reset()
Reset the node to unset state.
double ValueType
The type of the underlying value.
Definition Settings2D.h:1433
bool operator>(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1483
std::string toString() const
Get the value as string.
constexpr Blue(double value)
Constructor.
Definition Settings2D.h:1445
bool operator!=(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1471
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1428
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1419
bool hasValue() const
Check if the value is set.
static constexpr Range< double > validRange()
The range of valid values for Blue.
Definition Settings2D.h:1436
bool operator<(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1477
bool operator>=(const Blue &other) const
Comparison operator.
Definition Settings2D.h:1495
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1422
Blue()=default
Default constructor.
Digital gain applied to green channel.
Definition Settings2D.h:1528
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1531
double ValueType
The type of the underlying value.
Definition Settings2D.h:1545
static constexpr Range< double > validRange()
The range of valid values for Green.
Definition Settings2D.h:1548
bool operator==(const Green &other) const
Comparison operator.
Definition Settings2D.h:1577
std::string toString() const
Get the value as string.
constexpr Green(double value)
Constructor.
Definition Settings2D.h:1557
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1537
friend std::ostream & operator<<(std::ostream &stream, const Green &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:1613
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1540
bool operator<(const Green &other) const
Comparison operator.
Definition Settings2D.h:1589
bool hasValue() const
Check if the value is set.
bool operator<=(const Green &other) const
Comparison operator.
Definition Settings2D.h:1601
Green()=default
Default constructor.
bool operator>=(const Green &other) const
Comparison operator.
Definition Settings2D.h:1607
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1534
bool operator!=(const Green &other) const
Comparison operator.
Definition Settings2D.h:1583
bool operator>(const Green &other) const
Comparison operator.
Definition Settings2D.h:1595
double value() const
Get the value.
void reset()
Reset the node to unset state.
Digital gain applied to red channel.
Definition Settings2D.h:1640
double ValueType
The type of the underlying value.
Definition Settings2D.h:1657
friend std::ostream & operator<<(std::ostream &stream, const Red &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:1725
bool operator>=(const Red &other) const
Comparison operator.
Definition Settings2D.h:1719
Red()=default
Default constructor.
bool operator<(const Red &other) const
Comparison operator.
Definition Settings2D.h:1701
bool operator<=(const Red &other) const
Comparison operator.
Definition Settings2D.h:1713
std::string toString() const
Get the value as string.
static constexpr Range< double > validRange()
The range of valid values for Red.
Definition Settings2D.h:1660
bool hasValue() const
Check if the value is set.
bool operator!=(const Red &other) const
Comparison operator.
Definition Settings2D.h:1695
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1649
double value() const
Get the value.
constexpr Red(double value)
Constructor.
Definition Settings2D.h:1669
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1643
bool operator==(const Red &other) const
Comparison operator.
Definition Settings2D.h:1689
void reset()
Reset the node to unset state.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1646
bool operator>(const Red &other) const
Comparison operator.
Definition Settings2D.h:1707
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1652
Color balance settings.
Definition Settings2D.h:1398
const Settings2D::Processing::Color::Balance::Red & get() const
Definition Settings2D.h:1947
Blue & blue()
Get Blue.
Definition Settings2D.h:1872
bool operator!=(const Balance &other) const
Inequality operator.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:1981
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:1972
std::tuple< Settings2D::Processing::Color::Balance::Blue, Settings2D::Processing::Color::Balance::Green, Settings2D::Processing::Color::Balance::Red > Descendants
Definition Settings2D.h:1748
const Blue & blue() const
Get Blue.
Definition Settings2D.h:1866
bool operator==(const Balance &other) const
Equality operator.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1401
Balance & set(const Blue &value)
Set Blue.
Definition Settings2D.h:1878
Red & red()
Get Red.
Definition Settings2D.h:1910
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1404
Green & green()
Get Green.
Definition Settings2D.h:1891
Balance & set(const Green &value)
Set Green.
Definition Settings2D.h:1897
Balance copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:1845
const Green & green() const
Get Green.
Definition Settings2D.h:1885
Balance()
Default constructor.
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1410
Balance & set(const Red &value)
Set Red.
Definition Settings2D.h:1916
const Settings2D::Processing::Color::Balance::Green & get() const
Definition Settings2D.h:1937
const Red & red() const
Get Red.
Definition Settings2D.h:1904
std::string toString() const
Get the value as string.
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:1809
friend std::ostream & operator<<(std::ostream &stream, const Balance &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:1998
const Settings2D::Processing::Color::Balance::Blue & get() const
Definition Settings2D.h:1927
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1407
Enable or disable the highlight suppression.
Definition Settings2D.h:2067
void reset()
Reset the node to unset state.
bool value() const
Get the value.
bool ValueType
The type of the underlying value.
Definition Settings2D.h:2086
bool operator!=(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:2126
static constexpr const char * name
The name of this value.
Definition Settings2D.h:2078
std::string toString() const
Get the value as string.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:2073
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:2070
static const Enabled no
Off/disabled.
Definition Settings2D.h:2088
constexpr Enabled(bool value)
Constructor.
Definition Settings2D.h:2100
static std::set< bool > validValues()
All valid values of Enabled.
Definition Settings2D.h:2091
friend std::ostream & operator<<(std::ostream &stream, const Enabled &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:2132
static const Enabled yes
On/enabled.
Definition Settings2D.h:2087
bool hasValue() const
Check if the value is set.
bool operator==(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:2120
static constexpr const char * description
The description for this value.
Definition Settings2D.h:2081
Enabled()=default
Default constructor.
Suppress highlights caused by the projector. Suppressed areas will appear with structure and detail r...
Definition Settings2D.h:2044
friend std::ostream & operator<<(std::ostream &stream, const HighlightSuppression &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:2315
HighlightSuppression copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:2234
HighlightSuppression & set(const Enabled &value)
Set Enabled.
Definition Settings2D.h:2267
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:2047
std::tuple< Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled > Descendants
Definition Settings2D.h:2145
HighlightSuppression()
Default constructor.
const Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled & get() const
Definition Settings2D.h:2280
bool operator==(const HighlightSuppression &other) const
Equality operator.
std::string toString() const
Get the value as string.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:2293
static constexpr const char * description
The description for this value.
Definition Settings2D.h:2056
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:2200
bool operator!=(const HighlightSuppression &other) const
Inequality operator.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:2050
Enabled & isEnabled()
Get Enabled.
Definition Settings2D.h:2261
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:2300
const Enabled & isEnabled() const
Get Enabled.
Definition Settings2D.h:2255
static constexpr const char * name
The name of this value.
Definition Settings2D.h:2053
This setting controls how the color image is computed.
Definition Settings2D.h:2350
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:2356
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:2353
friend std::ostream & operator<<(std::ostream &stream, const Mode &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:2437
static constexpr const char * name
The name of this value.
Definition Settings2D.h:2359
static constexpr const char * description
The description for this value.
Definition Settings2D.h:2362
static const Mode toneMapping
toneMapping
Definition Settings2D.h:2387
bool operator==(const Mode &other) const
Comparison operator.
Definition Settings2D.h:2425
static const Mode automatic
automatic
Definition Settings2D.h:2386
bool operator!=(const Mode &other) const
Comparison operator.
Definition Settings2D.h:2431
Mode()=default
Default constructor.
void reset()
Reset the node to unset state.
constexpr Mode(ValueType value)
Constructor.
Definition Settings2D.h:2399
bool hasValue() const
Check if the value is set.
static std::set< ValueType > validValues()
All valid values of Mode.
Definition Settings2D.h:2390
friend std::ostream & operator<<(std::ostream &stream, const Mode::ValueType &value)
Operator to serialize ValueType to a stream.
Definition Settings2D.h:2419
ValueType value() const
Get the value.
std::string toString() const
Get the value as string.
ValueType
The type of the underlying value.
Definition Settings2D.h:2382
@ automatic
Definition Settings2D.h:2383
@ toneMapping
Definition Settings2D.h:2384
Experimental color settings. These may be renamed, moved or deleted in the future.
Definition Settings2D.h:2021
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:2027
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:2678
Mode & mode()
Get Mode.
Definition Settings2D.h:2611
const Mode & mode() const
Get Mode.
Definition Settings2D.h:2605
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:2024
static constexpr const char * description
The description for this value.
Definition Settings2D.h:2033
std::tuple< Settings2D::Processing::Color::Experimental::HighlightSuppression, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled, Settings2D::Processing::Color::Experimental::Mode > Descendants
Definition Settings2D.h:2461
friend std::ostream & operator<<(std::ostream &stream, const Experimental &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:2694
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:2670
Experimental & set(const HighlightSuppression &value)
Set HighlightSuppression.
Definition Settings2D.h:2591
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:2522
Experimental()
Default constructor.
std::string toString() const
Get the value as string.
HighlightSuppression & highlightSuppression()
Get HighlightSuppression.
Definition Settings2D.h:2585
const HighlightSuppression & highlightSuppression() const
Get HighlightSuppression.
Definition Settings2D.h:2579
static constexpr const char * name
The name of this value.
Definition Settings2D.h:2030
const Settings2D::Processing::Color::Experimental::Mode & get() const
Definition Settings2D.h:2651
const Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled & get() const
Definition Settings2D.h:2640
const Settings2D::Processing::Color::Experimental::HighlightSuppression & get() const
Definition Settings2D.h:2628
bool operator!=(const Experimental &other) const
Inequality operator.
bool operator==(const Experimental &other) const
Equality operator.
Experimental & set(const Mode &value)
Set Mode.
Definition Settings2D.h:2617
Experimental copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:2558
Experimental & set(const HighlightSuppression::Enabled &value)
Set HighlightSuppression::Enabled.
Definition Settings2D.h:2598
Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater t...
Definition Settings2D.h:2718
double ValueType
The type of the underlying value.
Definition Settings2D.h:2737
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:2721
static constexpr Range< double > validRange()
The range of valid values for Gamma.
Definition Settings2D.h:2740
bool operator>(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2787
bool operator==(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2769
friend std::ostream & operator<<(std::ostream &stream, const Gamma &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:2805
bool operator!=(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2775
static constexpr const char * description
The description for this value.
Definition Settings2D.h:2730
bool hasValue() const
Check if the value is set.
std::string toString() const
Get the value as string.
bool operator<(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2781
static constexpr const char * name
The name of this value.
Definition Settings2D.h:2727
void reset()
Reset the node to unset state.
bool operator>=(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2799
constexpr Gamma(double value)
Constructor.
Definition Settings2D.h:2749
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:2724
Gamma()=default
Default constructor.
bool operator<=(const Gamma &other) const
Comparison operator.
Definition Settings2D.h:2793
double value() const
Get the value.
Color settings.
Definition Settings2D.h:1380
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:2906
Color & set(const Balance::Green &value)
Set Balance::Green.
Definition Settings2D.h:2994
bool operator!=(const Color &other) const
Inequality operator.
bool operator==(const Color &other) const
Equality operator.
const Experimental & experimental() const
Get Experimental.
Definition Settings2D.h:3008
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1386
std::string toString() const
Get the value as string.
const Balance & balance() const
Get Balance.
Definition Settings2D.h:2968
Color & set(const Balance::Blue &value)
Set Balance::Blue.
Definition Settings2D.h:2987
Balance & balance()
Get Balance.
Definition Settings2D.h:2974
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:3172
friend std::ostream & operator<<(std::ostream &stream, const Color &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:3198
Experimental & experimental()
Get Experimental.
Definition Settings2D.h:3014
const Settings2D::Processing::Color::Experimental::Mode & get() const
Definition Settings2D.h:3138
const Settings2D::Processing::Color::Gamma & get() const
Definition Settings2D.h:3147
std::tuple< Settings2D::Processing::Color::Balance, Settings2D::Processing::Color::Balance::Blue, Settings2D::Processing::Color::Balance::Green, Settings2D::Processing::Color::Balance::Red, Settings2D::Processing::Color::Experimental, Settings2D::Processing::Color::Experimental::HighlightSuppression, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled, Settings2D::Processing::Color::Experimental::Mode, Settings2D::Processing::Color::Gamma > Descendants
Definition Settings2D.h:2827
Color & set(const Experimental::Mode &value)
Set Experimental::Mode.
Definition Settings2D.h:3041
const Settings2D::Processing::Color::Balance::Green & get() const
Definition Settings2D.h:3088
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1389
Gamma & gamma()
Get Gamma.
Definition Settings2D.h:3054
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1383
Color & set(const Experimental::HighlightSuppression::Enabled &value)
Set Experimental::HighlightSuppression::Enabled.
Definition Settings2D.h:3034
const Settings2D::Processing::Color::Balance::Red & get() const
Definition Settings2D.h:3097
const Settings2D::Processing::Color::Experimental & get() const
Definition Settings2D.h:3106
Color copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:2947
const Settings2D::Processing::Color::Balance & get() const
Definition Settings2D.h:3070
Color & set(const Experimental::HighlightSuppression &value)
Set Experimental::HighlightSuppression.
Definition Settings2D.h:3027
Color()
Default constructor.
const Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled & get() const
Definition Settings2D.h:3127
const Gamma & gamma() const
Get Gamma.
Definition Settings2D.h:3048
const Settings2D::Processing::Color::Balance::Blue & get() const
Definition Settings2D.h:3079
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1392
Color & set(const Balance &value)
Set Balance.
Definition Settings2D.h:2980
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:3181
const Settings2D::Processing::Color::Experimental::HighlightSuppression & get() const
Definition Settings2D.h:3116
Color & set(const Gamma &value)
Set Gamma.
Definition Settings2D.h:3060
Color & set(const Experimental &value)
Set Experimental.
Definition Settings2D.h:3020
Color & set(const Balance::Red &value)
Set Balance::Red.
Definition Settings2D.h:3001
2D processing settings.
Definition Settings2D.h:1362
const Settings2D::Processing::Color & get() const
Definition Settings2D.h:3444
static constexpr const char * description
The description for this value.
Definition Settings2D.h:1374
Processing & set(const Color::Gamma &value)
Set Color::Gamma.
Definition Settings2D.h:3435
bool operator!=(const Processing &other) const
Inequality operator.
bool operator==(const Processing &other) const
Equality operator.
Processing & set(const Color &value)
Set Color.
Definition Settings2D.h:3372
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:1365
Processing & set(const Color::Experimental &value)
Set Color::Experimental.
Definition Settings2D.h:3407
const Settings2D::Processing::Color::Balance & get() const
Definition Settings2D.h:3452
Processing & set(const Color::Experimental::Mode &value)
Set Color::Experimental::Mode.
Definition Settings2D.h:3428
friend std::ostream & operator<<(std::ostream &stream, const Processing &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:3560
std::tuple< Settings2D::Processing::Color, Settings2D::Processing::Color::Balance, Settings2D::Processing::Color::Balance::Blue, Settings2D::Processing::Color::Balance::Green, Settings2D::Processing::Color::Balance::Red, Settings2D::Processing::Color::Experimental, Settings2D::Processing::Color::Experimental::HighlightSuppression, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled, Settings2D::Processing::Color::Experimental::Mode, Settings2D::Processing::Color::Gamma > Descendants
Definition Settings2D.h:3217
Processing & set(const Color::Experimental::HighlightSuppression &value)
Set Color::Experimental::HighlightSuppression.
Definition Settings2D.h:3414
const Settings2D::Processing::Color::Experimental & get() const
Definition Settings2D.h:3488
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:3538
Color & color()
Get Color.
Definition Settings2D.h:3366
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:3299
Processing & set(const Color::Balance::Blue &value)
Set Color::Balance::Blue.
Definition Settings2D.h:3386
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:1368
const Settings2D::Processing::Color::Experimental::Mode & get() const
Definition Settings2D.h:3517
const Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled & get() const
Definition Settings2D.h:3508
Processing & set(const Color::Balance &value)
Set Color::Balance.
Definition Settings2D.h:3379
const Color & color() const
Get Color.
Definition Settings2D.h:3360
Processing & set(const Color::Balance::Red &value)
Set Color::Balance::Red.
Definition Settings2D.h:3400
const Settings2D::Processing::Color::Gamma & get() const
Definition Settings2D.h:3525
const Settings2D::Processing::Color::Balance::Red & get() const
Definition Settings2D.h:3479
const Settings2D::Processing::Color::Experimental::HighlightSuppression & get() const
Definition Settings2D.h:3498
Processing copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:3340
const Settings2D::Processing::Color::Balance::Blue & get() const
Definition Settings2D.h:3461
const Settings2D::Processing::Color::Balance::Green & get() const
Definition Settings2D.h:3470
std::string toString() const
Get the value as string.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:3545
Processing()
Default constructor.
Processing & set(const Color::Experimental::HighlightSuppression::Enabled &value)
Set Color::Experimental::HighlightSuppression::Enabled.
Definition Settings2D.h:3421
Processing & set(const Color::Balance::Green &value)
Set Color::Balance::Green.
Definition Settings2D.h:3393
static constexpr const char * name
The name of this value.
Definition Settings2D.h:1371
Choose how to sample colors for the 2D image.
Definition Settings2D.h:3617
ValueType
The type of the underlying value.
Definition Settings2D.h:3649
@ grayscale
Definition Settings2D.h:3651
@ rgbStrongAmbientLight
Definition Settings2D.h:3652
@ rgbAmbientSuppression
Definition Settings2D.h:3653
@ rgb
Definition Settings2D.h:3650
Color()=default
Default constructor.
void reset()
Reset the node to unset state.
static const Color grayscale
grayscale
Definition Settings2D.h:3656
static std::set< ValueType > validValues()
All valid values of Color.
Definition Settings2D.h:3661
static const Color rgbAmbientSuppression
rgbAmbientSuppression
Definition Settings2D.h:3658
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:3620
ValueType value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const Color &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:3711
constexpr Color(ValueType value)
Constructor.
Definition Settings2D.h:3673
static constexpr const char * description
The description for this value.
Definition Settings2D.h:3629
bool hasValue() const
Check if the value is set.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:3623
static const Color rgb
rgb
Definition Settings2D.h:3655
bool operator==(const Color &other) const
Comparison operator.
Definition Settings2D.h:3699
bool operator!=(const Color &other) const
Comparison operator.
Definition Settings2D.h:3705
static constexpr const char * name
The name of this value.
Definition Settings2D.h:3626
std::string toString() const
Get the value as string.
static const Color rgbStrongAmbientLight
rgbStrongAmbientLight
Definition Settings2D.h:3657
friend std::ostream & operator<<(std::ostream &stream, const Color::ValueType &value)
Operator to serialize ValueType to a stream.
Definition Settings2D.h:3693
Duration between successive sensor operations, in microseconds. The effective interval might be round...
Definition Settings2D.h:3777
friend std::ostream & operator<<(std::ostream &stream, const Duration &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:3865
std::chrono::microseconds ValueType
The type of the underlying value.
Definition Settings2D.h:3797
bool operator<(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3841
static constexpr const char * name
The name of this value.
Definition Settings2D.h:3786
bool operator==(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3829
std::chrono::microseconds value() const
Get the value.
void reset()
Reset the node to unset state.
bool operator>(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3847
Duration()=default
Default constructor.
bool operator!=(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3835
constexpr Duration(std::chrono::microseconds value)
Constructor.
Definition Settings2D.h:3809
bool operator>=(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3859
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:3783
static constexpr Range< std::chrono::microseconds > validRange()
The range of valid values for Duration.
Definition Settings2D.h:3800
std::string toString() const
Get the value as string.
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:3780
bool operator<=(const Duration &other) const
Comparison operator.
Definition Settings2D.h:3853
static constexpr const char * description
The description for this value.
Definition Settings2D.h:3789
bool hasValue() const
Check if the value is set.
Enable or disable sampling interval.
Definition Settings2D.h:3892
bool value() const
Get the value.
static const Enabled no
Off/disabled.
Definition Settings2D.h:3911
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:3895
static constexpr const char * description
The description for this value.
Definition Settings2D.h:3904
Enabled()=default
Default constructor.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:3898
bool operator==(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:3943
void reset()
Reset the node to unset state.
static constexpr const char * name
The name of this value.
Definition Settings2D.h:3901
constexpr Enabled(bool value)
Constructor.
Definition Settings2D.h:3923
std::string toString() const
Get the value as string.
static std::set< bool > validValues()
All valid values of Enabled.
Definition Settings2D.h:3914
bool hasValue() const
Check if the value is set.
friend std::ostream & operator<<(std::ostream &stream, const Enabled &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:3955
static const Enabled yes
On/enabled.
Definition Settings2D.h:3910
bool ValueType
The type of the underlying value.
Definition Settings2D.h:3909
bool operator!=(const Enabled &other) const
Comparison operator.
Definition Settings2D.h:3949
Sampling interval controls the interval between successive sensor operations (e.g....
Definition Settings2D.h:3747
friend std::ostream & operator<<(std::ostream &stream, const Interval &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:4173
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition Settings2D.h:3759
Enabled & isEnabled()
Get Enabled.
Definition Settings2D.h:4105
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:3753
Interval copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:4059
bool operator==(const Interval &other) const
Equality operator.
Interval & set(const Duration &value)
Set Duration.
Definition Settings2D.h:4092
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:4157
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:4149
Duration & duration()
Get Duration.
Definition Settings2D.h:4086
std::tuple< Settings2D::Sampling::Interval::Duration, Settings2D::Sampling::Interval::Enabled > Descendants
Definition Settings2D.h:3968
const Settings2D::Sampling::Interval::Enabled & get() const
Definition Settings2D.h:4130
bool operator!=(const Interval &other) const
Inequality operator.
const Duration & duration() const
Get Duration.
Definition Settings2D.h:4080
Interval & set(const Enabled &value)
Set Enabled.
Definition Settings2D.h:4111
Interval()
Default constructor.
static constexpr const char * name
The name of this value.
Definition Settings2D.h:3756
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:3750
const Enabled & isEnabled() const
Get Enabled.
Definition Settings2D.h:4099
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:4025
const Settings2D::Sampling::Interval::Duration & get() const
Definition Settings2D.h:4121
Set the pixel sampling to use for the 2D capture. This setting defines how the camera sensor is sampl...
Definition Settings2D.h:4197
static const Pixel redSubsample4x4
redSubsample4x4
Definition Settings2D.h:4230
static const Pixel by2x2
by2x2
Definition Settings2D.h:4231
Pixel()=default
Default constructor.
constexpr Pixel(ValueType value)
Constructor.
Definition Settings2D.h:4250
ValueType
The type of the underlying value.
Definition Settings2D.h:4217
@ by4x4
Definition Settings2D.h:4224
@ redSubsample2x2
Definition Settings2D.h:4220
@ blueSubsample4x4
Definition Settings2D.h:4221
@ blueSubsample2x2
Definition Settings2D.h:4219
@ by2x2
Definition Settings2D.h:4223
@ redSubsample4x4
Definition Settings2D.h:4222
@ all
Definition Settings2D.h:4218
static const Pixel by4x4
by4x4
Definition Settings2D.h:4232
bool operator!=(const Pixel &other) const
Comparison operator.
Definition Settings2D.h:4282
ValueType value() const
Get the value.
bool operator==(const Pixel &other) const
Comparison operator.
Definition Settings2D.h:4276
static const Pixel redSubsample2x2
redSubsample2x2
Definition Settings2D.h:4228
static const Pixel all
all
Definition Settings2D.h:4226
static std::set< ValueType > validValues()
All valid values of Pixel.
Definition Settings2D.h:4235
static constexpr const char * name
The name of this value.
Definition Settings2D.h:4206
std::string toString() const
Get the value as string.
static const Pixel blueSubsample2x2
blueSubsample2x2
Definition Settings2D.h:4227
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:4200
friend std::ostream & operator<<(std::ostream &stream, const Pixel::ValueType &value)
Operator to serialize ValueType to a stream.
Definition Settings2D.h:4270
friend std::ostream & operator<<(std::ostream &stream, const Pixel &value)
Operator to serialize the value to a stream.
Definition Settings2D.h:4288
static constexpr const char * description
The description for this value.
Definition Settings2D.h:4209
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:4203
void reset()
Reset the node to unset state.
static const Pixel blueSubsample4x4
blueSubsample4x4
Definition Settings2D.h:4229
bool hasValue() const
Check if the value is set.
Sampling settings.
Definition Settings2D.h:3582
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:4577
bool operator==(const Sampling &other) const
Equality operator.
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:4381
const Settings2D::Sampling::Interval::Duration & get() const
Definition Settings2D.h:4527
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:3585
const Settings2D::Sampling::Pixel & get() const
Definition Settings2D.h:4543
const Settings2D::Sampling::Interval::Enabled & get() const
Definition Settings2D.h:4535
Sampling & set(const Interval::Enabled &value)
Set Interval::Enabled.
Definition Settings2D.h:4482
Sampling & set(const Pixel &value)
Set Pixel.
Definition Settings2D.h:4501
const Pixel & pixel() const
Get Pixel.
Definition Settings2D.h:4489
Pixel & pixel()
Get Pixel.
Definition Settings2D.h:4495
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:3588
std::string toString() const
Get the value as string.
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:4568
const Settings2D::Sampling::Color & get() const
Definition Settings2D.h:4510
friend std::ostream & operator<<(std::ostream &stream, const Sampling &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:4594
bool operator!=(const Sampling &other) const
Inequality operator.
static constexpr const char * description
The description for this value.
Definition Settings2D.h:3594
Sampling & set(const Interval::Duration &value)
Set Interval::Duration.
Definition Settings2D.h:4475
const Color & color() const
Get Color.
Definition Settings2D.h:4437
Sampling & set(const Interval &value)
Set Interval.
Definition Settings2D.h:4468
Sampling & set(const Color &value)
Set Color.
Definition Settings2D.h:4449
Sampling copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:4417
Color & color()
Get Color.
Definition Settings2D.h:4443
const Interval & interval() const
Get Interval.
Definition Settings2D.h:4456
const Settings2D::Sampling::Interval & get() const
Definition Settings2D.h:4518
Interval & interval()
Get Interval.
Definition Settings2D.h:4462
Sampling()
Default constructor.
std::tuple< Settings2D::Sampling::Color, Settings2D::Sampling::Interval, Settings2D::Sampling::Interval::Duration, Settings2D::Sampling::Interval::Enabled, Settings2D::Sampling::Pixel > Descendants
Definition Settings2D.h:4314
static constexpr const char * name
The name of this value.
Definition Settings2D.h:3591
Settings used when capturing 2D images with a Zivid camera.
Definition Settings2D.h:79
Settings2D & set(const Processing &value)
Set Processing.
Definition Settings2D.h:4868
const Settings2D::Sampling::Pixel & get() const
Definition Settings2D.h:5152
static constexpr size_t version
Definition Settings2D.h:95
const Settings2D::Processing::Color & get() const
Definition Settings2D.h:5027
Settings2D & set(const Sampling::Interval::Enabled &value)
Set Sampling::Interval::Enabled.
Definition Settings2D.h:4985
Sampling & sampling()
Get Sampling.
Definition Settings2D.h:4951
const Settings2D::Processing::Color::Experimental::HighlightSuppression & get() const
Definition Settings2D.h:5079
const Settings2D::Sampling::Color & get() const
Definition Settings2D.h:5120
const Settings2D::Processing::Color::Balance::Red & get() const
Definition Settings2D.h:5061
const Settings2D::Processing::Color::Balance::Green & get() const
Definition Settings2D.h:5053
Settings2D & set(const Sampling::Color &value)
Set Sampling::Color.
Definition Settings2D.h:4964
const Settings2D::Diagnostics::Enabled & get() const
Definition Settings2D.h:5013
const Diagnostics & diagnostics() const
Get Diagnostics.
Definition Settings2D.h:4830
void save(const std::string &fileName) const
Save to the given file.
std::string serialize() const
Serialize to a string.
const Settings2D::Processing::Color::Balance::Blue & get() const
Definition Settings2D.h:5044
const Acquisitions & acquisitions() const
Get Acquisitions.
Definition Settings2D.h:4811
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:5193
Settings2D & set(const Diagnostics::Enabled &value)
Set Diagnostics::Enabled.
Definition Settings2D.h:4849
Settings2D & set(const Sampling::Interval &value)
Set Sampling::Interval.
Definition Settings2D.h:4971
Diagnostics & diagnostics()
Get Diagnostics.
Definition Settings2D.h:4836
Settings2D & set(const Sampling &value)
Set Sampling.
Definition Settings2D.h:4957
Settings2D(Args &&...args)
Constructor taking variadic number of arguments.
Definition Settings2D.h:4695
const Settings2D::Sampling::Interval & get() const
Definition Settings2D.h:5128
const Settings2D::Diagnostics & get() const
Definition Settings2D.h:5005
const Settings2D::Acquisitions & get() const
Definition Settings2D.h:4999
Settings2D()
Default constructor.
const Settings2D::Processing::Color::Gamma & get() const
Definition Settings2D.h:5106
Settings2D & set(const Acquisitions &value)
Set Acquisitions.
Definition Settings2D.h:4823
Settings2D(const std::string &fileName)
Construct Settings2D by loading from file.
Settings2D & set(const Sampling::Interval::Duration &value)
Set Sampling::Interval::Duration.
Definition Settings2D.h:4978
const Settings2D::Sampling & get() const
Definition Settings2D.h:5112
const Settings2D::Sampling::Interval::Duration & get() const
Definition Settings2D.h:5136
void load(const std::string &fileName)
Load from the given file.
const Settings2D::Processing::Color::Balance & get() const
Definition Settings2D.h:5035
Settings2D & set(const Processing::Color::Balance::Green &value)
Set Processing::Color::Balance::Green.
Definition Settings2D.h:4896
bool operator!=(const Settings2D &other) const
Inequality operator.
Settings2D & set(const Processing::Color::Balance &value)
Set Processing::Color::Balance.
Definition Settings2D.h:4882
Settings2D & set(const Processing::Color::Experimental::HighlightSuppression::Enabled &value)
Set Processing::Color::Experimental::HighlightSuppression::Enabled.
Definition Settings2D.h:4924
const Settings2D::Processing::Color::Experimental & get() const
Definition Settings2D.h:5069
Settings2D & set(const Processing::Color::Experimental::HighlightSuppression &value)
Set Processing::Color::Experimental::HighlightSuppression.
Definition Settings2D.h:4917
const Settings2D::Processing & get() const
Definition Settings2D.h:5019
static Settings2D fromSerialized(const std::string &value)
Construct a new Settings2D instance from a previously serialized string.
Settings2D & set(const Processing::Color::Balance::Red &value)
Set Processing::Color::Balance::Red.
Definition Settings2D.h:4903
void set(Args &&...args)
Set multiple arguments.
Definition Settings2D.h:4741
Processing & processing()
Get Processing.
Definition Settings2D.h:4862
const Processing & processing() const
Get Processing.
Definition Settings2D.h:4856
Settings2D copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition Settings2D.h:4792
Settings2D & set(const Processing::Color::Balance::Blue &value)
Set Processing::Color::Balance::Blue.
Definition Settings2D.h:4889
Settings2D & set(const Processing::Color::Experimental::Mode &value)
Set Processing::Color::Experimental::Mode.
Definition Settings2D.h:4931
Acquisitions & acquisitions()
Get Acquisitions.
Definition Settings2D.h:4817
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition Settings2D.h:82
std::string toString() const
Get the value as string.
Settings2D & set(const Processing::Color::Experimental &value)
Set Processing::Color::Experimental.
Definition Settings2D.h:4910
Settings2D & set(const Sampling::Pixel &value)
Set Sampling::Pixel.
Definition Settings2D.h:4992
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition Settings2D.h:5183
const Settings2D::Sampling::Interval::Enabled & get() const
Definition Settings2D.h:5144
const Settings2D::Processing::Color::Experimental::Mode & get() const
Definition Settings2D.h:5098
bool operator==(const Settings2D &other) const
Equality operator.
static constexpr const char * path
The full path for this value.
Definition Settings2D.h:85
const Sampling & sampling() const
Get Sampling.
Definition Settings2D.h:4945
Settings2D & set(const Diagnostics &value)
Set Diagnostics.
Definition Settings2D.h:4842
friend std::ostream & operator<<(std::ostream &stream, const Settings2D &value)
Operator to send the value as string to a stream.
Definition Settings2D.h:5211
const Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled & get() const
Definition Settings2D.h:5089
static constexpr const char * description
The description for this value.
Definition Settings2D.h:91
static constexpr const char * name
The name of this value.
Definition Settings2D.h:88
Settings2D & set(const Processing::Color &value)
Set Processing::Color.
Definition Settings2D.h:4875
std::tuple< Settings2D::Acquisitions, Settings2D::Diagnostics, Settings2D::Diagnostics::Enabled, Settings2D::Processing, Settings2D::Processing::Color, Settings2D::Processing::Color::Balance, Settings2D::Processing::Color::Balance::Blue, Settings2D::Processing::Color::Balance::Green, Settings2D::Processing::Color::Balance::Red, Settings2D::Processing::Color::Experimental, Settings2D::Processing::Color::Experimental::HighlightSuppression, Settings2D::Processing::Color::Experimental::HighlightSuppression::Enabled, Settings2D::Processing::Color::Experimental::Mode, Settings2D::Processing::Color::Gamma, Settings2D::Sampling, Settings2D::Sampling::Color, Settings2D::Sampling::Interval, Settings2D::Sampling::Interval::Duration, Settings2D::Sampling::Interval::Enabled, Settings2D::Sampling::Pixel > Descendants
Definition Settings2D.h:4613
Settings2D & set(const Processing::Color::Gamma &value)
Set Processing::Color::Gamma.
Definition Settings2D.h:4938
NodeType
Definition NodeType.h:49
@ leafDataModelList
Definition NodeType.h:51
@ leafValue
Definition NodeType.h:52
@ group
Definition NodeType.h:50
Definition EnvironmentInfo.h:74
Definition Calibration.h:59
Get version information for the library.
Definition Version.h:58
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85