![]() |
Zivid C++ API 2.10.0+8ce7dae3-2
Defining the Future of 3D Machine Vision
|
Removes the points outside the box. More...
#include <Zivid/Settings.h>
Classes | |
class | Enabled |
Enabled More... | |
class | Extents |
Two points on the normal describing the direction and distance from the plane from which the normal is derived. More... | |
class | PointA |
A point such that the vector from PointO to PointA describes the first edge of the parallelogram More... | |
class | PointB |
A point such that the vector from PointO to PointB describes the second edge of the parallelogram More... | |
class | PointO |
The point at the intersection of two adjacent edges defining a parallelogram More... | |
Public Member Functions | |
Box () | |
Default constructor More... | |
template<typename... Args> | |
Box (Args &&...args) | |
Constructor taking variadic number of arguments More... | |
template<typename... Args> | |
void | set (Args &&...args) |
Set multiple arguments More... | |
template<typename... Args> | |
Box | copyWith (Args &&...args) const |
Returns a copy of this object with the given argument(s) set to the new value(s) More... | |
const Enabled & | isEnabled () const |
Get Enabled More... | |
Enabled & | isEnabled () |
Get Enabled More... | |
Box & | set (const Enabled &value) |
Set Enabled More... | |
const Extents & | extents () const |
Get Extents More... | |
Extents & | extents () |
Get Extents More... | |
Box & | set (const Extents &value) |
Set Extents More... | |
const PointA & | pointA () const |
Get PointA More... | |
PointA & | pointA () |
Get PointA More... | |
Box & | set (const PointA &value) |
Set PointA More... | |
const PointB & | pointB () const |
Get PointB More... | |
PointB & | pointB () |
Get PointB More... | |
Box & | set (const PointB &value) |
Set PointB More... | |
const PointO & | pointO () const |
Get PointO More... | |
PointO & | pointO () |
Get PointO More... | |
Box & | set (const PointO &value) |
Set PointO More... | |
template<typename T , typename std::enable_if< std::is_same< T, Settings::RegionOfInterest::Box::Enabled >::value, int >::type = 0> | |
const Settings::RegionOfInterest::Box::Enabled & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings::RegionOfInterest::Box::Extents >::value, int >::type = 0> | |
const Settings::RegionOfInterest::Box::Extents & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings::RegionOfInterest::Box::PointA >::value, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointA & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings::RegionOfInterest::Box::PointB >::value, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointB & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings::RegionOfInterest::Box::PointO >::value, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointO & | get () const |
template<size_t i, typename std::enable_if< i==0, int >::type = 0> | |
const Settings::RegionOfInterest::Box::Enabled & | get () const |
template<size_t i, typename std::enable_if< i==1, int >::type = 0> | |
const Settings::RegionOfInterest::Box::Extents & | get () const |
template<size_t i, typename std::enable_if< i==2, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointA & | get () const |
template<size_t i, typename std::enable_if< i==3, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointB & | get () const |
template<size_t i, typename std::enable_if< i==4, int >::type = 0> | |
const Settings::RegionOfInterest::Box::PointO & | 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 More... | |
template<typename F > | |
void | forEach (const F &f) |
Run the given function on each direct member with the value of the member as parameter More... | |
bool | operator== (const Box &other) const |
Equality operator More... | |
bool | operator!= (const Box &other) const |
Inequality operator More... | |
std::string | toString () const |
Get the value as string More... | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::group |
The type of this node More... | |
static constexpr const char * | path { "RegionOfInterest/Box" } |
The full path for this value More... | |
static constexpr const char * | name { "Box" } |
The name of this value More... | |
static constexpr const char * | description |
The description for this value More... | |
Friends | |
struct | DataModel::Detail::Befriend< Box > |
std::ostream & | operator<< (std::ostream &stream, const Box &value) |
Operator to send the value as string to a stream More... | |
Removes the points outside the box.
The box is defined by three points: O, A and B. These points define two vectors, OA that goes from PointO to PointA, and OB that goes from PointO to PointB. This gives 4 points O, A, B and (O + OA + OB), that together form a parallelogram in 3D.
Two extents can be provided, to extrude the parallelogram along the surface normal vector of the parallelogram plane. This creates a 3D volume (parallelepiped). The surface normal vector is defined by the cross product OA x OB.
Zivid::Settings::RegionOfInterest::Box::Box | ( | ) |
Default constructor
|
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 Box
then invoking set(args)
.
The provided arguments must be descendants of Box
. 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 Box 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 Box
. 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
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool Zivid::Settings::RegionOfInterest::Box::operator!= | ( | const Box & | other | ) | const |
Inequality operator
bool Zivid::Settings::RegionOfInterest::Box::operator== | ( | const Box & | other | ) | const |
Equality operator
|
inline |
Set multiple arguments
The method invokes set(arg)
with each of the provided arguments.
The provided arguments must be descendants of Box
. These types can be provided:
std::string Zivid::Settings::RegionOfInterest::Box::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