68# pragma warning(disable : 4251)
85 static constexpr const char *
path{
"" };
88 static constexpr const char *
name{
"CameraExtrinsics" };
92 R
"description(Extrinsic parameters describing the pose of a camera in 3D space, expressed as a rotation quaternion and a translation vector.
106 static constexpr std::array<uint8_t, 3> binaryId{
'c',
'e',
'x' };
120 static constexpr const char *
path{
"Rw" };
123 static constexpr const char *
name{
"Rw" };
127 R
"description(Unit quaternion representing the rotational component of the camera pose)description"
140 static constexpr const char *
path{
"Rw/W" };
143 static constexpr const char *
name{
"W" };
147 R
"description(Scalar part of the unit quaternion)description"
156 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
176 return m_value == other.m_value;
182 return m_value != other.m_value;
188 return m_value < other.m_value;
194 return m_value > other.m_value;
200 return m_value <= other.m_value;
206 return m_value >= other.m_value;
212 return stream <<
value.toString();
216 void setFromString(
const std::string &value);
218 double m_value{ 1.0 };
220 friend struct DataModel::Detail::Befriend<
W>;
233 static constexpr const char *
path{
"Rw/X" };
236 static constexpr const char *
name{
"X" };
240 R
"description(X component of the quaternion vector)description"
249 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
269 return m_value == other.m_value;
275 return m_value != other.m_value;
281 return m_value < other.m_value;
287 return m_value > other.m_value;
293 return m_value <= other.m_value;
299 return m_value >= other.m_value;
305 return stream <<
value.toString();
309 void setFromString(
const std::string &value);
311 double m_value{ 0.0 };
313 friend struct DataModel::Detail::Befriend<
X>;
326 static constexpr const char *
path{
"Rw/Y" };
329 static constexpr const char *
name{
"Y" };
333 R
"description(Y component of the quaternion vector)description"
342 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
362 return m_value == other.m_value;
368 return m_value != other.m_value;
374 return m_value < other.m_value;
380 return m_value > other.m_value;
386 return m_value <= other.m_value;
392 return m_value >= other.m_value;
398 return stream <<
value.toString();
402 void setFromString(
const std::string &value);
404 double m_value{ 0.0 };
406 friend struct DataModel::Detail::Befriend<
Y>;
419 static constexpr const char *
path{
"Rw/Z" };
422 static constexpr const char *
name{
"Z" };
426 R
"description(Z component of the quaternion vector)description"
435 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
455 return m_value == other.m_value;
461 return m_value != other.m_value;
467 return m_value < other.m_value;
473 return m_value > other.m_value;
479 return m_value <= other.m_value;
485 return m_value >= other.m_value;
491 return stream <<
value.toString();
495 void setFromString(
const std::string &value);
497 double m_value{ 0.0 };
499 friend struct DataModel::Detail::Befriend<
Z>;
528 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
529 typename std::enable_if<
530 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
534 template<typename... Args>
536 explicit
Rw(Args &&...args)
538 using namespace Zivid::Detail::TypeTraits;
541 AllArgsDecayedAreUnique<Args...>::value,
542 "Found duplicate types among the arguments passed to Rw(...). "
543 "Types should be listed at most once.");
545 set(std::forward<Args>(args)...);
562 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
564 template<typename... Args>
568 using namespace Zivid::Detail::TypeTraits;
570 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
572 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
575 AllArgsDecayedAreUnique<Args...>::value,
576 "Found duplicate types among the arguments passed to set(...). "
577 "Types should be listed at most once.");
579 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
597 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
599 template<typename... Args>
603 using namespace Zivid::Detail::TypeTraits;
605 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
607 AllArgsAreDescendantNodes::value,
608 "All arguments passed to copyWith(...) must be descendant nodes.");
611 AllArgsDecayedAreUnique<Args...>::value,
612 "Found duplicate types among the arguments passed to copyWith(...). "
613 "Types should be listed at most once.");
616 copy.set(std::forward<Args>(args)...);
698 typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::W>::value,
int>::type = 0>
706 typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::X>::value,
int>::type = 0>
714 typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::Y>::value,
int>::type = 0>
722 typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::Z>::value,
int>::type = 0>
728 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
734 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
740 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
746 template<size_t i, typename std::enable_if<i == 3, int>::type = 0>
788 void setFromString(
const std::string &value);
790 void setFromString(
const std::string &fullPath,
const std::string &value);
792 std::string getString(
const std::string &fullPath)
const;
799 friend struct DataModel::Detail::Befriend<
Rw>;
812 static constexpr const char *
path{
"Tw" };
815 static constexpr const char *
name{
"Tw" };
819 R
"description(Translation vector representing the translational component of the camera pose)description"
832 static constexpr const char *
path{
"Tw/X" };
835 static constexpr const char *
name{
"X" };
839 R
"description(X component of the translation vector)description"
848 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
868 return m_value == other.m_value;
874 return m_value != other.m_value;
880 return m_value < other.m_value;
886 return m_value > other.m_value;
892 return m_value <= other.m_value;
898 return m_value >= other.m_value;
904 return stream <<
value.toString();
908 void setFromString(
const std::string &value);
910 double m_value{ 0.0 };
912 friend struct DataModel::Detail::Befriend<
X>;
925 static constexpr const char *
path{
"Tw/Y" };
928 static constexpr const char *
name{
"Y" };
932 R
"description(Y component of the translation vector)description"
941 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
961 return m_value == other.m_value;
967 return m_value != other.m_value;
973 return m_value < other.m_value;
979 return m_value > other.m_value;
985 return m_value <= other.m_value;
991 return m_value >= other.m_value;
997 return stream <<
value.toString();
1001 void setFromString(
const std::string &value);
1003 double m_value{ 0.0 };
1005 friend struct DataModel::Detail::Befriend<
Y>;
1018 static constexpr const char *
path{
"Tw/Z" };
1021 static constexpr const char *
name{
"Z" };
1025 R
"description(Z component of the translation vector)description"
1034 return { std::numeric_limits<double>::lowest(), std::numeric_limits<double>::max() };
1054 return m_value == other.m_value;
1060 return m_value != other.m_value;
1066 return m_value < other.m_value;
1072 return m_value > other.m_value;
1078 return m_value <= other.m_value;
1084 return m_value >= other.m_value;
1090 return stream <<
value.toString();
1094 void setFromString(
const std::string &value);
1096 double m_value{ 0.0 };
1098 friend struct DataModel::Detail::Befriend<
Z>;
1101 using Descendants = std::tuple<CameraExtrinsics::Tw::X, CameraExtrinsics::Tw::Y, CameraExtrinsics::Tw::Z>;
1122 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1123 typename std::enable_if<
1124 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::
1128 template<typename... Args>
1130 explicit
Tw(Args &&...args)
1132 using namespace Zivid::Detail::TypeTraits;
1135 AllArgsDecayedAreUnique<Args...>::value,
1136 "Found duplicate types among the arguments passed to Tw(...). "
1137 "Types should be listed at most once.");
1139 set(std::forward<Args>(args)...);
1155 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1157 template<typename... Args>
1161 using namespace Zivid::Detail::TypeTraits;
1163 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1165 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1168 AllArgsDecayedAreUnique<Args...>::value,
1169 "Found duplicate types among the arguments passed to set(...). "
1170 "Types should be listed at most once.");
1172 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1189 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1191 template<typename... Args>
1195 using namespace Zivid::Detail::TypeTraits;
1197 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1199 AllArgsAreDescendantNodes::value,
1200 "All arguments passed to copyWith(...) must be descendant nodes.");
1203 AllArgsDecayedAreUnique<Args...>::value,
1204 "Found duplicate types among the arguments passed to copyWith(...). "
1205 "Types should be listed at most once.");
1208 copy.set(std::forward<Args>(args)...);
1271 typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::X>::value,
int>::type = 0>
1279 typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::Y>::value,
int>::type = 0>
1287 typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::Z>::value,
int>::type = 0>
1293 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1299 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1305 template<size_t i, typename std::enable_if<i == 2, int>::type = 0>
1312 template<
typename F>
1321 template<
typename F>
1345 void setFromString(
const std::string &value);
1347 void setFromString(
const std::string &fullPath,
const std::string &value);
1349 std::string getString(
const std::string &fullPath)
const;
1355 friend struct DataModel::Detail::Befriend<
Tw>;
1411 typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0,
1412 typename std::enable_if<
1413 Zivid::Detail::TypeTraits::AllArgsAreInTuple<
Descendants,
typename std::decay<Args>::type...>::value,
1416 template<typename... Args>
1420 using namespace Zivid::Detail::TypeTraits;
1423 AllArgsDecayedAreUnique<Args...>::value,
1424 "Found duplicate types among the arguments passed to CameraExtrinsics(...). "
1425 "Types should be listed at most once.");
1427 set(std::forward<Args>(args)...);
1449 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 2,
int>::type = 0>
1451 template<typename... Args>
1455 using namespace Zivid::Detail::TypeTraits;
1457 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1459 AllArgsAreDescendantNodes::value,
"All arguments passed to set(...) must be descendant nodes.");
1462 AllArgsDecayedAreUnique<Args...>::value,
1463 "Found duplicate types among the arguments passed to set(...). "
1464 "Types should be listed at most once.");
1466 Zivid::DataModel::Detail::invokeSetWithEachArgument(*
this, std::forward<Args>(args)...);
1489 template<
typename... Args,
typename std::enable_if<
sizeof...(Args) >= 1,
int>::type = 0>
1491 template<typename... Args>
1495 using namespace Zivid::Detail::TypeTraits;
1497 using AllArgsAreDescendantNodes = AllArgsAreInTuple<Descendants, typename std::decay<Args>::type...>;
1499 AllArgsAreDescendantNodes::value,
"All arguments passed to copyWith(...) must be descendant nodes.");
1502 AllArgsDecayedAreUnique<Args...>::value,
1503 "Found duplicate types among the arguments passed to copyWith(...). "
1504 "Types should be listed at most once.");
1507 copy.set(std::forward<Args>(args)...);
1598 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw>::value,
int>::type = 0>
1604 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::W>::value,
int>::type = 0>
1610 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::X>::value,
int>::type = 0>
1616 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::Y>::value,
int>::type = 0>
1622 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Rw::Z>::value,
int>::type = 0>
1628 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw>::value,
int>::type = 0>
1634 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::X>::value,
int>::type = 0>
1640 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::Y>::value,
int>::type = 0>
1646 template<typename T, typename std::enable_if<std::is_same<T, CameraExtrinsics::Tw::Z>::value,
int>::type = 0>
1652 template<size_t i, typename std::enable_if<i == 0, int>::type = 0>
1658 template<size_t i, typename std::enable_if<i == 1, int>::type = 0>
1665 template<
typename F>
1673 template<
typename F>
1696 void save(
const std::string &fileName)
const;
1699 void load(
const std::string &fileName);
1702 void setFromString(
const std::string &value);
1704 void setFromString(
const std::string &fullPath,
const std::string &value);
1706 std::string getString(
const std::string &fullPath)
const;
1716 struct CameraExtrinsics::Version<1>
1729 ZIVID_CORE_EXPORT void save(
const Zivid::CameraExtrinsics &dataModel, std::ostream &ostream);
1730 ZIVID_CORE_EXPORT void load(Zivid::CameraExtrinsics &dataModel, std::istream &istream);
1736# pragma warning(pop)
1740# if !(defined(_MSC_VER) && (_MSC_VER <= 1900))
1745 struct tuple_size<Zivid::CameraExtrinsics::Rw> : integral_constant<size_t, 4>
1749 struct tuple_element<i, Zivid::CameraExtrinsics::Rw>
1751 static_assert(i < tuple_size<Zivid::CameraExtrinsics::Rw>::value,
"Index must be less than 4");
1754 =
decltype(declval<Zivid::CameraExtrinsics::Rw>().get<i>());
1758 struct tuple_size<Zivid::CameraExtrinsics::Tw> : integral_constant<size_t, 3>
1762 struct tuple_element<i, Zivid::CameraExtrinsics::Tw>
1764 static_assert(i < tuple_size<Zivid::CameraExtrinsics::Tw>::value,
"Index must be less than 3");
1767 =
decltype(declval<Zivid::CameraExtrinsics::Tw>().get<i>());
1771 struct tuple_size<Zivid::CameraExtrinsics> : integral_constant<size_t, 2>
1775 struct tuple_element<i, Zivid::CameraExtrinsics>
1777 static_assert(i < tuple_size<Zivid::CameraExtrinsics>::value,
"Index must be less than 2");
1780 =
decltype(declval<Zivid::CameraExtrinsics>().get<i>());
1789#if defined(__has_include) && !defined(NO_DOC)
1790# if __has_include("Zivid/CameraExtrinsicsInternal.h") && __has_include("Zivid/DataModelNodeMetaData.h")
1791# include "Zivid/CameraExtrinsicsInternal.h"
#define ZIVID_CORE_EXPORT
Definition CoreExport.h:56
Scalar part of the unit quaternion.
Definition CameraExtrinsics.h:134
double value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const W &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:210
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:143
bool operator!=(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:180
std::string toString() const
Get the value as string.
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:146
bool operator<(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:186
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:137
W()=default
Default constructor.
bool operator==(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:174
constexpr W(double value)
Constructor.
Definition CameraExtrinsics.h:163
bool operator>=(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:204
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:151
bool operator>(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:192
bool operator<=(const W &other) const
Comparison operator.
Definition CameraExtrinsics.h:198
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:140
static constexpr Range< double > validRange()
The range of valid values for W.
Definition CameraExtrinsics.h:154
X component of the quaternion vector.
Definition CameraExtrinsics.h:227
bool operator>=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:297
bool operator!=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:273
std::string toString() const
Get the value as string.
X()=default
Default constructor.
double value() const
Get the value.
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:239
bool operator>(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:285
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:244
constexpr X(double value)
Constructor.
Definition CameraExtrinsics.h:256
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:236
bool operator<=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:291
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:230
static constexpr Range< double > validRange()
The range of valid values for X.
Definition CameraExtrinsics.h:247
friend std::ostream & operator<<(std::ostream &stream, const X &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:303
bool operator==(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:267
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:233
bool operator<(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:279
Y component of the quaternion vector.
Definition CameraExtrinsics.h:320
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:332
Y()=default
Default constructor.
static constexpr Range< double > validRange()
The range of valid values for Y.
Definition CameraExtrinsics.h:340
bool operator>(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:378
bool operator>=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:390
std::string toString() const
Get the value as string.
bool operator!=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:366
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:326
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:329
bool operator==(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:360
constexpr Y(double value)
Constructor.
Definition CameraExtrinsics.h:349
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:323
bool operator<(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:372
double value() const
Get the value.
friend std::ostream & operator<<(std::ostream &stream, const Y &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:396
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:337
bool operator<=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:384
Z component of the quaternion vector.
Definition CameraExtrinsics.h:413
std::string toString() const
Get the value as string.
bool operator!=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:459
Z()=default
Default constructor.
bool operator<(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:465
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:416
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:422
constexpr Z(double value)
Constructor.
Definition CameraExtrinsics.h:442
bool operator>(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:471
static constexpr Range< double > validRange()
The range of valid values for Z.
Definition CameraExtrinsics.h:433
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:425
bool operator<=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:477
bool operator>=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:483
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:419
bool operator==(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:453
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:430
friend std::ostream & operator<<(std::ostream &stream, const Z &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:489
double value() const
Get the value.
Unit quaternion representing the rotational component of the camera pose.
Definition CameraExtrinsics.h:114
const W & w() const
Get W.
Definition CameraExtrinsics.h:621
Rw & set(const W &value)
Set W.
Definition CameraExtrinsics.h:633
const CameraExtrinsics::Rw::W & get() const
Definition CameraExtrinsics.h:699
W & w()
Get W.
Definition CameraExtrinsics.h:627
void set(Args &&...args)
Set multiple arguments.
Definition CameraExtrinsics.h:566
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:764
const Z & z() const
Get Z.
Definition CameraExtrinsics.h:678
friend std::ostream & operator<<(std::ostream &stream, const Rw &value)
Operator to send the value as string to a stream.
Definition CameraExtrinsics.h:782
Z & z()
Get Z.
Definition CameraExtrinsics.h:684
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:120
Rw copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraExtrinsics.h:601
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:754
const CameraExtrinsics::Rw::X & get() const
Definition CameraExtrinsics.h:707
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:123
Rw & set(const Y &value)
Set Y.
Definition CameraExtrinsics.h:671
bool operator==(const Rw &other) const
Equality operator.
Y & y()
Get Y.
Definition CameraExtrinsics.h:665
const Y & y() const
Get Y.
Definition CameraExtrinsics.h:659
Rw & set(const X &value)
Set X.
Definition CameraExtrinsics.h:652
std::string toString() const
Get the value as string.
Rw & set(const Z &value)
Set Z.
Definition CameraExtrinsics.h:690
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:117
const X & x() const
Get X.
Definition CameraExtrinsics.h:640
X & x()
Get X.
Definition CameraExtrinsics.h:646
const CameraExtrinsics::Rw::Z & get() const
Definition CameraExtrinsics.h:723
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:126
const CameraExtrinsics::Rw::Y & get() const
Definition CameraExtrinsics.h:715
std::tuple< CameraExtrinsics::Rw::W, CameraExtrinsics::Rw::X, CameraExtrinsics::Rw::Y, CameraExtrinsics::Rw::Z > Descendants
Definition CameraExtrinsics.h:502
bool operator!=(const Rw &other) const
Inequality operator.
X component of the translation vector.
Definition CameraExtrinsics.h:826
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:838
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:835
std::string toString() const
Get the value as string.
bool operator>(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:884
X()=default
Default constructor.
bool operator>=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:896
bool operator==(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:866
bool operator<(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:878
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:832
double value() const
Get the value.
bool operator<=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:890
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:829
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:843
friend std::ostream & operator<<(std::ostream &stream, const X &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:902
static constexpr Range< double > validRange()
The range of valid values for X.
Definition CameraExtrinsics.h:846
constexpr X(double value)
Constructor.
Definition CameraExtrinsics.h:855
bool operator!=(const X &other) const
Comparison operator.
Definition CameraExtrinsics.h:872
Y component of the translation vector.
Definition CameraExtrinsics.h:919
bool operator<=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:983
bool operator<(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:971
std::string toString() const
Get the value as string.
static constexpr Range< double > validRange()
The range of valid values for Y.
Definition CameraExtrinsics.h:939
bool operator==(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:959
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:936
double value() const
Get the value.
bool operator>=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:989
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:931
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:928
bool operator>(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:977
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:925
Y()=default
Default constructor.
bool operator!=(const Y &other) const
Comparison operator.
Definition CameraExtrinsics.h:965
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:922
friend std::ostream & operator<<(std::ostream &stream, const Y &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:995
constexpr Y(double value)
Constructor.
Definition CameraExtrinsics.h:948
Z component of the translation vector.
Definition CameraExtrinsics.h:1012
double value() const
Get the value.
bool operator>=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1082
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:1018
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:1024
bool operator!=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1058
bool operator<=(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1076
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:1015
bool operator>(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1070
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:1021
bool operator<(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1064
static constexpr Range< double > validRange()
The range of valid values for Z.
Definition CameraExtrinsics.h:1032
friend std::ostream & operator<<(std::ostream &stream, const Z &value)
Operator to serialize the value to a stream.
Definition CameraExtrinsics.h:1088
Z()=default
Default constructor.
bool operator==(const Z &other) const
Comparison operator.
Definition CameraExtrinsics.h:1052
constexpr Z(double value)
Constructor.
Definition CameraExtrinsics.h:1041
double ValueType
The type of the underlying value.
Definition CameraExtrinsics.h:1029
Translation vector representing the translational component of the camera pose.
Definition CameraExtrinsics.h:806
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:1313
friend std::ostream & operator<<(std::ostream &stream, const Tw &value)
Operator to send the value as string to a stream.
Definition CameraExtrinsics.h:1339
Z & z()
Get Z.
Definition CameraExtrinsics.h:1257
const Z & z() const
Get Z.
Definition CameraExtrinsics.h:1251
Tw & set(const Z &value)
Set Z.
Definition CameraExtrinsics.h:1263
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:809
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:818
Tw copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraExtrinsics.h:1193
bool operator==(const Tw &other) const
Equality operator.
const X & x() const
Get X.
Definition CameraExtrinsics.h:1213
Tw & set(const X &value)
Set X.
Definition CameraExtrinsics.h:1225
Tw & set(const Y &value)
Set Y.
Definition CameraExtrinsics.h:1244
const Y & y() const
Get Y.
Definition CameraExtrinsics.h:1232
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:815
const CameraExtrinsics::Tw::Z & get() const
Definition CameraExtrinsics.h:1288
void set(Args &&...args)
Set multiple arguments.
Definition CameraExtrinsics.h:1159
X & x()
Get X.
Definition CameraExtrinsics.h:1219
bool operator!=(const Tw &other) const
Inequality operator.
const CameraExtrinsics::Tw::Y & get() const
Definition CameraExtrinsics.h:1280
const CameraExtrinsics::Tw::X & get() const
Definition CameraExtrinsics.h:1272
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:1322
std::tuple< CameraExtrinsics::Tw::X, CameraExtrinsics::Tw::Y, CameraExtrinsics::Tw::Z > Descendants
Definition CameraExtrinsics.h:1101
Y & y()
Get Y.
Definition CameraExtrinsics.h:1238
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:812
Extrinsic parameters describing the pose of a camera in 3D space, expressed as a rotation quaternion ...
Definition CameraExtrinsics.h:79
static constexpr const char * description
The description for this value.
Definition CameraExtrinsics.h:91
CameraExtrinsics & set(const Tw::Z &value)
Set Tw::Z.
Definition CameraExtrinsics.h:1592
CameraExtrinsics & set(const Rw::X &value)
Set Rw::X.
Definition CameraExtrinsics.h:1538
CameraExtrinsics & set(const Rw::Z &value)
Set Rw::Z.
Definition CameraExtrinsics.h:1552
CameraExtrinsics & set(const Rw &value)
Set Rw.
Definition CameraExtrinsics.h:1524
bool operator!=(const CameraExtrinsics &other) const
Inequality operator.
const Tw & tw() const
Get Tw.
Definition CameraExtrinsics.h:1559
static CameraExtrinsics fromSerialized(const std::string &value)
Construct a new CameraExtrinsics instance from a previously serialized string.
CameraExtrinsics()
Default constructor.
CameraExtrinsics & set(const Tw::X &value)
Set Tw::X.
Definition CameraExtrinsics.h:1578
static constexpr const char * path
The full path for this value.
Definition CameraExtrinsics.h:85
CameraExtrinsics & set(const Tw &value)
Set Tw.
Definition CameraExtrinsics.h:1571
std::string serialize() const
Serialize to a string.
const CameraExtrinsics::Rw & get() const
Definition CameraExtrinsics.h:1599
const CameraExtrinsics::Tw::X & get() const
Definition CameraExtrinsics.h:1635
static constexpr DataModel::NodeType nodeType
The type of this node.
Definition CameraExtrinsics.h:82
CameraExtrinsics(Args &&...args)
Constructor taking variadic number of arguments.
Definition CameraExtrinsics.h:1418
std::tuple< CameraExtrinsics::Rw, CameraExtrinsics::Rw::W, CameraExtrinsics::Rw::X, CameraExtrinsics::Rw::Y, CameraExtrinsics::Rw::Z, CameraExtrinsics::Tw, CameraExtrinsics::Tw::X, CameraExtrinsics::Tw::Y, CameraExtrinsics::Tw::Z > Descendants
Definition CameraExtrinsics.h:1358
CameraExtrinsics & set(const Rw::Y &value)
Set Rw::Y.
Definition CameraExtrinsics.h:1545
const CameraExtrinsics::Rw::Y & get() const
Definition CameraExtrinsics.h:1617
const CameraExtrinsics::Rw::W & get() const
Definition CameraExtrinsics.h:1605
Rw & rw()
Get Rw.
Definition CameraExtrinsics.h:1518
const CameraExtrinsics::Tw & get() const
Definition CameraExtrinsics.h:1629
void load(const std::string &fileName)
Load from the given file.
Tw & tw()
Get Tw.
Definition CameraExtrinsics.h:1565
std::string toString() const
Get the value as string.
static constexpr const char * name
The name of this value.
Definition CameraExtrinsics.h:88
void set(Args &&...args)
Set multiple arguments.
Definition CameraExtrinsics.h:1453
friend std::ostream & operator<<(std::ostream &stream, const CameraExtrinsics &value)
Operator to send the value as string to a stream.
Definition CameraExtrinsics.h:1690
const CameraExtrinsics::Tw::Y & get() const
Definition CameraExtrinsics.h:1641
const CameraExtrinsics::Tw::Z & get() const
Definition CameraExtrinsics.h:1647
void forEach(const F &f) const
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:1666
static constexpr size_t version
Definition CameraExtrinsics.h:96
const CameraExtrinsics::Rw::Z & get() const
Definition CameraExtrinsics.h:1623
CameraExtrinsics(const std::string &fileName)
Construct CameraExtrinsics by loading from file.
const CameraExtrinsics::Rw::X & get() const
Definition CameraExtrinsics.h:1611
void save(const std::string &fileName) const
Save to the given file.
void forEach(const F &f)
Run the given function on each direct member with the value of the member as parameter.
Definition CameraExtrinsics.h:1674
CameraExtrinsics copyWith(Args &&...args) const
Returns a copy of this object with the given argument(s) set to the new value(s)
Definition CameraExtrinsics.h:1493
const Rw & rw() const
Get Rw.
Definition CameraExtrinsics.h:1512
bool operator==(const CameraExtrinsics &other) const
Equality operator.
CameraExtrinsics & set(const Tw::Y &value)
Set Tw::Y.
Definition CameraExtrinsics.h:1585
CameraExtrinsics & set(const Rw::W &value)
Set Rw::W.
Definition CameraExtrinsics.h:1531
Class describing a range of values for a given type T.
Definition Range.h:75
NodeType
Definition NodeType.h:49
@ leafValue
Definition NodeType.h:52
@ group
Definition NodeType.h:50
Definition EnvironmentInfo.h:74
Get version information for the library.
Definition Version.h:58
The main Zivid namespace. All Zivid code is found here.
Definition Application.h:85