![]() |
Zivid C++ API 2.18.0+1b44dbef-1
|
Extrinsic parameters describing the pose of a camera in 3D space, expressed as a rotation quaternion and a translation vector. More...
#include <Zivid/CameraExtrinsics.h>
Classes | |
| class | Rw |
| Unit quaternion representing the rotational component of the camera pose. More... | |
| class | Tw |
| Translation vector representing the translational component of the camera pose. More... | |
Public Types | |
| using | Descendants |
Public Member Functions | |
| CameraExtrinsics () | |
| Default constructor. | |
| CameraExtrinsics (const std::string &fileName) | |
| Construct CameraExtrinsics by loading from file. | |
| std::string | serialize () const |
| Serialize to a string. | |
| template<typename... Args> | |
| CameraExtrinsics (Args &&...args) | |
| Constructor taking variadic number of arguments. | |
| template<typename... Args> | |
| void | set (Args &&...args) |
| Set multiple arguments. | |
| template<typename... Args> | |
| CameraExtrinsics | copyWith (Args &&...args) const |
| Returns a copy of this object with the given argument(s) set to the new value(s) | |
| const Rw & | rw () const |
| Get Rw. | |
| Rw & | rw () |
| Get Rw. | |
| CameraExtrinsics & | set (const Rw &value) |
| Set Rw. | |
| CameraExtrinsics & | set (const Rw::W &value) |
| Set Rw::W. | |
| CameraExtrinsics & | set (const Rw::X &value) |
| Set Rw::X. | |
| CameraExtrinsics & | set (const Rw::Y &value) |
| Set Rw::Y. | |
| CameraExtrinsics & | set (const Rw::Z &value) |
| Set Rw::Z. | |
| const Tw & | tw () const |
| Get Tw. | |
| Tw & | tw () |
| Get Tw. | |
| CameraExtrinsics & | set (const Tw &value) |
| Set Tw. | |
| CameraExtrinsics & | set (const Tw::X &value) |
| Set Tw::X. | |
| CameraExtrinsics & | set (const Tw::Y &value) |
| Set Tw::Y. | |
| CameraExtrinsics & | set (const Tw::Z &value) |
| Set Tw::Z. | |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Rw >::value, int >::type = 0> | |
| const CameraExtrinsics::Rw & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Rw::W >::value, int >::type = 0> | |
| const CameraExtrinsics::Rw::W & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Rw::X >::value, int >::type = 0> | |
| const CameraExtrinsics::Rw::X & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Rw::Y >::value, int >::type = 0> | |
| const CameraExtrinsics::Rw::Y & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Rw::Z >::value, int >::type = 0> | |
| const CameraExtrinsics::Rw::Z & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw >::value, int >::type = 0> | |
| const CameraExtrinsics::Tw & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::X >::value, int >::type = 0> | |
| const CameraExtrinsics::Tw::X & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Y >::value, int >::type = 0> | |
| const CameraExtrinsics::Tw::Y & | get () const |
| template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Z >::value, int >::type = 0> | |
| const CameraExtrinsics::Tw::Z & | get () const |
| template<size_t i, typename std::enable_if< i==0, int >::type = 0> | |
| const CameraExtrinsics::Rw & | get () const |
| template<size_t i, typename std::enable_if< i==1, int >::type = 0> | |
| const CameraExtrinsics::Tw & | get () const |
| template<typename F> | |
| void | forEach (const F &f) const |
| Run the given function on each direct member with the value of the member as parameter. | |
| template<typename F> | |
| void | forEach (const F &f) |
| Run the given function on each direct member with the value of the member as parameter. | |
| bool | operator== (const CameraExtrinsics &other) const |
| Equality operator. | |
| bool | operator!= (const CameraExtrinsics &other) const |
| Inequality operator. | |
| std::string | toString () const |
| Get the value as string. | |
| void | save (const std::string &fileName) const |
| Save to the given file. | |
| void | load (const std::string &fileName) |
| Load from the given file. | |
Static Public Member Functions | |
| static CameraExtrinsics | fromSerialized (const std::string &value) |
| Construct a new CameraExtrinsics instance from a previously serialized string. | |
Static Public Attributes | |
| static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::group |
| The type of this node. | |
| static constexpr const char * | path { "" } |
| The full path for this value. | |
| static constexpr const char * | name { "CameraExtrinsics" } |
| The name of this value. | |
| static constexpr const char * | description |
| The description for this value. | |
| static constexpr size_t | version { 1 } |
Friends | |
| struct | DataModel::Detail::Befriend< CameraExtrinsics > |
| std::ostream & | operator<< (std::ostream &stream, const CameraExtrinsics &value) |
| Operator to send the value as string to a stream. | |
Extrinsic parameters describing the pose of a camera in 3D space, expressed as a rotation quaternion and a translation vector.
| Zivid::CameraExtrinsics::CameraExtrinsics | ( | ) |
Default constructor.
|
explicit |
Construct CameraExtrinsics by loading from file.
|
inlineexplicit |
Constructor taking variadic number of arguments.
One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing CameraExtrinsics then invoking set(args).
The provided arguments must be descendants of CameraExtrinsics. These types can be provided:
|
inline |
Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this CameraExtrinsics object, then invokes set(args) on the copy, and finally returns the copy. This method does not modify the original object.
The provided arguments must be descendants of CameraExtrinsics. These types can be provided:
|
inline |
Run the given function on each direct member with the value of the member as parameter.
|
inline |
Run the given function on each direct member with the value of the member as parameter.
|
staticnodiscard |
Construct a new CameraExtrinsics instance from a previously serialized string.
See also serialize.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Zivid::CameraExtrinsics::load | ( | const std::string & | fileName | ) |
Load from the given file.
| bool Zivid::CameraExtrinsics::operator!= | ( | const CameraExtrinsics & | other | ) | const |
Inequality operator.
| bool Zivid::CameraExtrinsics::operator== | ( | const CameraExtrinsics & | other | ) | const |
Equality operator.
| void Zivid::CameraExtrinsics::save | ( | const std::string & | fileName | ) | const |
Save to the given file.
| std::string Zivid::CameraExtrinsics::serialize | ( | ) | const |
Serialize to a string.
See also fromSerialized. The returned string is formatted in YAML, and is compatible with the contents of files saved using save.
|
inline |
Set multiple arguments.
The method invokes set(arg) with each of the provided arguments.
The provided arguments must be descendants of CameraExtrinsics. These types can be provided:
|
inline |
Set Rw.
|
inline |
Set Rw::W.
|
inline |
Set Rw::X.
|
inline |
Set Rw::Y.
|
inline |
Set Rw::Z.
|
inline |
Set Tw.
|
inline |
Set Tw::X.
|
inline |
Set Tw::Y.
|
inline |
Set Tw::Z.
| std::string Zivid::CameraExtrinsics::toString | ( | ) | const |
Get the value as string.
|
friend |
|
friend |
Operator to send the value as string to a stream.
|
staticconstexpr |
The description for this value.
|
staticconstexpr |
The name of this value.
|
staticconstexpr |
The type of this node.
|
staticconstexpr |
The full path for this value.
|
staticconstexpr |