Metrics related to this capture.
More...
#include <Zivid/FrameInfo.h>
|
class | AcquisitionTime |
| Acquisition Time is the duration from the start of the capture to when the camera has acquired the last image. After this time, the camera has finished its acquisition and you can move the robot, or capture with another camera with overlapping field of view. Acquisition Time is equal to the time it takes for the Camera::capture(settings) API function call to return. More...
|
|
class | CaptureTime |
| Capture Time is the duration from the start of the capture to when all of the data transfer and processing has completed. After this time the 3D point cloud and/or 2D color image is ready and available on the GPU memory, and can be copied to the system memory (RAM). More...
|
|
|
| Metrics () |
| Default constructor.
|
|
template<typename... Args> |
| Metrics (Args &&...args) |
| Constructor taking variadic number of arguments.
|
|
template<typename... Args> |
void | set (Args &&...args) |
| Set multiple arguments.
|
|
template<typename... Args> |
Metrics | copyWith (Args &&...args) const |
| Returns a copy of this object with the given argument(s) set to the new value(s)
|
|
const AcquisitionTime & | acquisitionTime () const |
| Get AcquisitionTime.
|
|
AcquisitionTime & | acquisitionTime () |
| Get AcquisitionTime.
|
|
Metrics & | set (const AcquisitionTime &value) |
| Set AcquisitionTime.
|
|
const CaptureTime & | captureTime () const |
| Get CaptureTime.
|
|
CaptureTime & | captureTime () |
| Get CaptureTime.
|
|
Metrics & | set (const CaptureTime &value) |
| Set CaptureTime.
|
|
template<typename T , typename std::enable_if< std::is_same< T, FrameInfo::Metrics::AcquisitionTime >::value, int >::type = 0> |
const FrameInfo::Metrics::AcquisitionTime & | get () const |
|
template<typename T , typename std::enable_if< std::is_same< T, FrameInfo::Metrics::CaptureTime >::value, int >::type = 0> |
const FrameInfo::Metrics::CaptureTime & | get () const |
|
template<size_t i, typename std::enable_if< i==0, int >::type = 0> |
const FrameInfo::Metrics::AcquisitionTime & | get () const |
|
template<size_t i, typename std::enable_if< i==1, int >::type = 0> |
const FrameInfo::Metrics::CaptureTime & | 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 Metrics &other) const |
| Equality operator.
|
|
bool | operator!= (const Metrics &other) const |
| Inequality operator.
|
|
std::string | toString () const |
| Get the value as string.
|
|
Metrics related to this capture.
◆ Descendants
◆ Metrics() [1/2]
Zivid::FrameInfo::Metrics::Metrics |
( |
| ) |
|
◆ Metrics() [2/2]
template<typename... Args>
Zivid::FrameInfo::Metrics::Metrics |
( |
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 Metrics
then invoking set(args)
.
The provided arguments must be descendants of Metrics
. These types can be provided:
◆ acquisitionTime() [1/2]
◆ acquisitionTime() [2/2]
const AcquisitionTime & Zivid::FrameInfo::Metrics::acquisitionTime |
( |
| ) |
const |
|
inline |
◆ captureTime() [1/2]
CaptureTime & Zivid::FrameInfo::Metrics::captureTime |
( |
| ) |
|
|
inline |
◆ captureTime() [2/2]
const CaptureTime & Zivid::FrameInfo::Metrics::captureTime |
( |
| ) |
const |
|
inline |
◆ copyWith()
template<typename... Args>
Metrics Zivid::FrameInfo::Metrics::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 Metrics 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 Metrics
. These types can be provided:
◆ forEach() [1/2]
template<typename F >
void Zivid::FrameInfo::Metrics::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::FrameInfo::Metrics::forEach |
( |
const F & | f | ) |
const |
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ get() [1/4]
◆ get() [2/4]
◆ get() [3/4]
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
◆ get() [4/4]
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
◆ operator!=()
bool Zivid::FrameInfo::Metrics::operator!= |
( |
const Metrics & | other | ) |
const |
◆ operator==()
bool Zivid::FrameInfo::Metrics::operator== |
( |
const Metrics & | other | ) |
const |
◆ set() [1/3]
template<typename... Args>
void Zivid::FrameInfo::Metrics::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 Metrics
. These types can be provided:
◆ set() [2/3]
◆ set() [3/3]
◆ toString()
std::string Zivid::FrameInfo::Metrics::toString |
( |
| ) |
const |
◆ DataModel::Detail::Befriend< Metrics >
friend struct DataModel::Detail::Befriend< Metrics > |
|
friend |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Metrics & | value ) |
|
friend |
Operator to send the value as string to a stream.
◆ description
const char* Zivid::FrameInfo::Metrics::description { R"description(Metrics related to this capture.)description" } |
|
staticconstexpr |
The description for this value.
◆ name
const char* Zivid::FrameInfo::Metrics::name { "Metrics" } |
|
staticconstexpr |
◆ nodeType
◆ path
const char* Zivid::FrameInfo::Metrics::path { "Metrics" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: