Zivid C++ API 2.18.0+1b44dbef-1
Zivid::CameraExtrinsics::Tw Class Reference

Translation vector representing the translational component of the camera pose. More...

#include <Zivid/CameraExtrinsics.h>

Classes

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...

Public Types

using Descendants = std::tuple<CameraExtrinsics::Tw::X, CameraExtrinsics::Tw::Y, CameraExtrinsics::Tw::Z>

Public Member Functions

 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 Xx () const
 Get X.
Xx ()
 Get X.
Twset (const X &value)
 Set X.
const Yy () const
 Get Y.
Yy ()
 Get Y.
Twset (const Y &value)
 Set Y.
const Zz () const
 Get Z.
Zz ()
 Get Z.
Twset (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::Xget () const
template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Y >::value, int >::type = 0>
const CameraExtrinsics::Tw::Yget () const
template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Z >::value, int >::type = 0>
const CameraExtrinsics::Tw::Zget () const
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const CameraExtrinsics::Tw::Xget () const
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
const CameraExtrinsics::Tw::Yget () const
template<size_t i, typename std::enable_if< i==2, int >::type = 0>
const CameraExtrinsics::Tw::Zget () 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.

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
 The type of this node.
static constexpr const char * path { "Tw" }
 The full path for this value.
static constexpr const char * name { "Tw" }
 The name of this value.
static constexpr const char * description
 The description for this value.

Friends

struct DataModel::Detail::Befriend< Tw >
std::ostream & operator<< (std::ostream &stream, const Tw &value)
 Operator to send the value as string to a stream.

Detailed Description

Translation vector representing the translational component of the camera pose.

Member Typedef Documentation

◆ Descendants

Constructor & Destructor Documentation

◆ Tw() [1/2]

Zivid::CameraExtrinsics::Tw::Tw ( )

Default constructor.

◆ 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:

Member Function Documentation

◆ 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]

template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::X >::value, int >::type = 0>
const CameraExtrinsics::Tw::X & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ get() [2/6]

template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Y >::value, int >::type = 0>
const CameraExtrinsics::Tw::Y & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ get() [3/6]

template<typename T, typename std::enable_if< std::is_same< T, CameraExtrinsics::Tw::Z >::value, int >::type = 0>
const CameraExtrinsics::Tw::Z & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ get() [4/6]

template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const CameraExtrinsics::Tw::X & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ get() [5/6]

template<size_t i, typename std::enable_if< i==1, int >::type = 0>
const CameraExtrinsics::Tw::Y & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ get() [6/6]

template<size_t i, typename std::enable_if< i==2, int >::type = 0>
const CameraExtrinsics::Tw::Z & Zivid::CameraExtrinsics::Tw::get ( ) const
inline

◆ operator!=()

bool Zivid::CameraExtrinsics::Tw::operator!= ( const Tw & other) const

Inequality operator.

◆ operator==()

bool Zivid::CameraExtrinsics::Tw::operator== ( const Tw & other) const

Equality operator.

◆ 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 X.

◆ set() [3/4]

Tw & Zivid::CameraExtrinsics::Tw::set ( const Y & value)
inline

Set Y.

◆ set() [4/4]

Tw & Zivid::CameraExtrinsics::Tw::set ( const Z & value)
inline

Set Z.

◆ toString()

std::string Zivid::CameraExtrinsics::Tw::toString ( ) const

Get the value as string.

◆ x() [1/2]

X & Zivid::CameraExtrinsics::Tw::x ( )
inline

Get X.

◆ x() [2/2]

const X & Zivid::CameraExtrinsics::Tw::x ( ) const
inline

Get X.

◆ y() [1/2]

Y & Zivid::CameraExtrinsics::Tw::y ( )
inline

Get Y.

◆ y() [2/2]

const Y & Zivid::CameraExtrinsics::Tw::y ( ) const
inline

Get Y.

◆ z() [1/2]

Z & Zivid::CameraExtrinsics::Tw::z ( )
inline

Get Z.

◆ z() [2/2]

const Z & Zivid::CameraExtrinsics::Tw::z ( ) const
inline

Get Z.

◆ 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.

Member Data Documentation

◆ 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

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::CameraExtrinsics::Tw::nodeType = DataModel::NodeType::group
staticconstexpr

The type of this node.

◆ 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: