Translation vector representing the translational component of the camera pose.
More...
#include <Zivid/CameraExtrinsics.h>
|
| class | X |
| | X component of the translation vector. More...
|
| class | Y |
| | Y component of the translation vector. More...
|
| class | Z |
| | Z component of the translation vector. More...
|
|
| | Tw () |
| | Default constructor.
|
| template<typename... Args> |
| | Tw (Args &&...args) |
| | Constructor taking variadic number of arguments.
|
| template<typename... Args> |
| void | set (Args &&...args) |
| | Set multiple arguments.
|
| template<typename... Args> |
| Tw | copyWith (Args &&...args) const |
| | Returns a copy of this object with the given argument(s) set to the new value(s)
|
| const X & | x () const |
| | Get X.
|
| X & | x () |
| | Get X.
|
| Tw & | set (const X &value) |
| | Set X.
|
| const Y & | y () const |
| | Get Y.
|
| Y & | y () |
| | Get Y.
|
| Tw & | set (const Y &value) |
| | Set Y.
|
| const Z & | z () const |
| | Get Z.
|
| Z & | z () |
| | Get Z.
|
| Tw & | set (const Z &value) |
| | Set Z.
|
| 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::Tw::X & | get () const |
| template<size_t i, typename std::enable_if< i==1, int >::type = 0> |
| const CameraExtrinsics::Tw::Y & | get () const |
| template<size_t i, typename std::enable_if< i==2, int >::type = 0> |
| const CameraExtrinsics::Tw::Z & | 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 Tw &other) const |
| | Equality operator.
|
| bool | operator!= (const Tw &other) const |
| | Inequality operator.
|
| std::string | toString () const |
| | Get the value as string.
|
Translation vector representing the translational component of the camera pose.
◆ Descendants
◆ Tw() [1/2]
| Zivid::CameraExtrinsics::Tw::Tw |
( |
| ) |
|
◆ Tw() [2/2]
template<typename... Args>
| Zivid::CameraExtrinsics::Tw::Tw |
( |
Args &&... | args | ) |
|
|
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 Tw then invoking set(args).
The provided arguments must be descendants of Tw. These types can be provided:
◆ copyWith()
template<typename... Args>
| Tw Zivid::CameraExtrinsics::Tw::copyWith |
( |
Args &&... | args | ) |
const |
|
inline |
Returns a copy of this object with the given argument(s) set to the new value(s)
Creates a copy of this Tw 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 Tw. These types can be provided:
◆ forEach() [1/2]
template<typename F>
| void Zivid::CameraExtrinsics::Tw::forEach |
( |
const F & | f | ) |
|
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ forEach() [2/2]
template<typename F>
| void Zivid::CameraExtrinsics::Tw::forEach |
( |
const F & | f | ) |
const |
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ get() [1/6]
◆ get() [2/6]
◆ get() [3/6]
◆ get() [4/6]
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
◆ get() [5/6]
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
◆ get() [6/6]
template<size_t i, typename std::enable_if< i==2, int >::type = 0>
◆ operator!=()
| bool Zivid::CameraExtrinsics::Tw::operator!= |
( |
const Tw & | other | ) |
const |
◆ operator==()
| bool Zivid::CameraExtrinsics::Tw::operator== |
( |
const Tw & | other | ) |
const |
◆ set() [1/4]
template<typename... Args>
| void Zivid::CameraExtrinsics::Tw::set |
( |
Args &&... | args | ) |
|
|
inline |
Set multiple arguments.
The method invokes set(arg) with each of the provided arguments.
The provided arguments must be descendants of Tw. These types can be provided:
◆ set() [2/4]
| Tw & Zivid::CameraExtrinsics::Tw::set |
( |
const X & | value | ) |
|
|
inline |
◆ set() [3/4]
| Tw & Zivid::CameraExtrinsics::Tw::set |
( |
const Y & | value | ) |
|
|
inline |
◆ set() [4/4]
| Tw & Zivid::CameraExtrinsics::Tw::set |
( |
const Z & | value | ) |
|
|
inline |
◆ toString()
| std::string Zivid::CameraExtrinsics::Tw::toString |
( |
| ) |
const |
◆ x() [1/2]
| X & Zivid::CameraExtrinsics::Tw::x |
( |
| ) |
|
|
inline |
◆ x() [2/2]
| const X & Zivid::CameraExtrinsics::Tw::x |
( |
| ) |
const |
|
inline |
◆ y() [1/2]
| Y & Zivid::CameraExtrinsics::Tw::y |
( |
| ) |
|
|
inline |
◆ y() [2/2]
| const Y & Zivid::CameraExtrinsics::Tw::y |
( |
| ) |
const |
|
inline |
◆ z() [1/2]
| Z & Zivid::CameraExtrinsics::Tw::z |
( |
| ) |
|
|
inline |
◆ z() [2/2]
| const Z & Zivid::CameraExtrinsics::Tw::z |
( |
| ) |
const |
|
inline |
◆ DataModel::Detail::Befriend< Tw >
| friend struct DataModel::Detail::Befriend< Tw > |
|
friend |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Tw & | value ) |
|
friend |
Operator to send the value as string to a stream.
◆ description
| const char* Zivid::CameraExtrinsics::Tw::description |
|
staticconstexpr |
Initial value:{
R"description(Translation vector representing the translational component of the camera pose)description"
}
The description for this value.
◆ name
| const char* Zivid::CameraExtrinsics::Tw::name { "Tw" } |
|
staticconstexpr |
◆ nodeType
◆ path
| const char* Zivid::CameraExtrinsics::Tw::path { "Tw" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: