Jetson Linux API 参考文档

32.7.4 版本
Argus::Rectangle< T > 类模板参考

详细描述

template<typename T>
class Argus::Rectangle< T >

Rectangle 模板类。

这是一个 Tuple 特化,包含 4 个元素,分别对应矩形的左、上、右和下边缘的位置,按此顺序排列。可以使用命名方法访问值。

定义于文件 Types.h 的第 755 行。

Argus::Rectangle< T > 的继承关系图
Argus::Rectangle< T > 的协作图

公共成员函数

 Rectangle ()
 
 Rectangle (const Tuple< 4, T > &other)
 
 Rectangle (T init)
 
 Rectangle (T _left, T _top, T _right, T _bottom)
 
T & left ()
 
const T & left () const
 
T & top ()
 
const T & top () const
 
T & right ()
 
const T & right () const
 
T & bottom ()
 
const T & bottom () const
 
width () const
 返回矩形的宽度。 更多...
 
height () const
 返回矩形的高度。 更多...
 
area () const
 返回矩形的面积 (宽度 * 高度)。 更多...
 
bool operator== (const Tuple< N, T > &rhs) const
 当两个元组中的每个元素都相同时,返回 true。 更多...
 
bool operator!= (const Tuple< N, T > &rhs) const
 如果两个元组之间有任何差异,则返回 true。 更多...
 
Tuple< N, T > & operator+= (const Tuple< N, T > &rhs)
 将另一个元组的每个元素添加到此元组的元素中。 更多...
 
Tuple< N, T > & operator-= (const Tuple< N, T > &rhs)
 从此元组的元素中减去另一个元组的每个元素。 更多...
 
Tuple< N, T > & operator*= (const T &rhs)
 将元组中的每个元素乘以单个值。 更多...
 
Tuple< N, T > & operator/= (const T &rhs)
 将元组中的每个元素除以单个值。 更多...
 
const Tuple< N, T > operator+ (const Tuple< N, T > &rhs) const
 返回将另一个元组添加到此元组的结果。 更多...
 
const Tuple< N, T > operator- (const Tuple< N, T > &rhs) const
 返回从此元组中减去另一个元组的结果。 更多...
 
const Tuple< N, T > operator* (const T &rhs) const
 返回将此元组乘以单个值的结果。 更多...
 
const Tuple< N, T > operator/ (const T &rhs) const
 返回将此元组除以单个值的结果。 更多...
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 

静态公共成员函数

static unsigned int tupleSize ()
 返回元组中元素的数量。 更多...
 

受保护的属性

m_data [N]
 

构造函数 & 析构函数文档

◆ Rectangle() [1/4]

template<typename T >
Argus::Rectangle< T >::Rectangle ( )
inline

定义于文件 Types.h 的第 758 行。

◆ Rectangle() [2/4]

template<typename T >
Argus::Rectangle< T >::Rectangle ( const Tuple< 4, T > &  other)
inline

定义于文件 Types.h 的第 759 行。

◆ Rectangle() [3/4]

template<typename T >
Argus::Rectangle< T >::Rectangle ( init)
inline

定义于文件 761 的第 761 行。

◆ Rectangle() [4/4]

template<typename T >
Argus::Rectangle< T >::Rectangle ( _left,
_top,
_right,
_bottom 
)
inline

定义于文件 766 的第 766 行。

成员函数文档

◆ area()

template<typename T >
T Argus::Rectangle< T >::area ( ) const
inline

返回矩形的面积 (宽度 * 高度)。

定义于文件 790 的第 790 行。

◆ bottom() [1/2]

template<typename T >
T& Argus::Rectangle< T >::bottom ( )
inline

◆ bottom() [2/2]

template<typename T >
const T& Argus::Rectangle< T >::bottom ( ) const
inline

定义于文件 781 的第 781 行。

◆ height()

template<typename T >
T Argus::Rectangle< T >::height ( ) const
inline

返回矩形的高度。

定义于文件 787 的第 787 行。

引用自 Argus::Rectangle< uint32_t >::area()

◆ left() [1/2]

template<typename T >
T& Argus::Rectangle< T >::left ( )
inline

◆ left() [2/2]

template<typename T >
const T& Argus::Rectangle< T >::left ( ) const
inline

定义于文件 775 的第 775 行。

◆ operator!=()

bool Argus::Tuple< N, T >::operator!= ( const Tuple< N, T > &  rhs) const
inlineinherited

如果两个元组之间有任何差异,则返回 true。

定义于文件 519 的第 519 行。

◆ operator*()

const Tuple<N, T> Argus::Tuple< N, T >::operator* ( const T &  rhs) const
inlineinherited

返回将此元组乘以单个值的结果。

定义于文件 569 的第 569 行。

◆ operator*=()

Tuple<N, T>& Argus::Tuple< N, T >::operator*= ( const T &  rhs)
inlineinherited

将元组中的每个元素乘以单个值。

定义于文件 541 的第 541 行。

◆ operator+()

const Tuple<N, T> Argus::Tuple< N, T >::operator+ ( const Tuple< N, T > &  rhs) const
inlineinherited

返回将另一个元组添加到此元组的结果。

定义于文件 557 的第 557 行。

◆ operator+=()

Tuple<N, T>& Argus::Tuple< N, T >::operator+= ( const Tuple< N, T > &  rhs)
inlineinherited

将另一个元组的每个元素添加到此元组的元素中。

定义于文件 525 的第 525 行。

◆ operator-()

const Tuple<N, T> Argus::Tuple< N, T >::operator- ( const Tuple< N, T > &  rhs) const
inlineinherited

返回从此元组中减去另一个元组的结果。

定义于文件 563 的第 563 行。

◆ operator-=()

Tuple<N, T>& Argus::Tuple< N, T >::operator-= ( const Tuple< N, T > &  rhs)
inlineinherited

从此元组的元素中减去另一个元组的每个元素。

定义于文件 533 的第 533 行。

◆ operator/()

const Tuple<N, T> Argus::Tuple< N, T >::operator/ ( const T &  rhs) const
inlineinherited

返回将此元组除以单个值的结果。

定义于文件 575 的第 575 行。

◆ operator/=()

Tuple<N, T>& Argus::Tuple< N, T >::operator/= ( const T &  rhs)
inlineinherited

将元组中的每个元素除以单个值。

定义于文件 549 的第 549 行。

◆ operator==()

bool Argus::Tuple< N, T >::operator== ( const Tuple< N, T > &  rhs) const
inlineinherited

当两个元组中的每个元素都相同时,返回 true。

定义于文件 513 的第 513 行。

◆ operator[]() [1/2]

T& Argus::Tuple< N, T >::operator[] ( unsigned int  i)
inlineinherited

定义于文件 580 的第 580 行。

◆ operator[]() [2/2]

const T& Argus::Tuple< N, T >::operator[] ( unsigned int  i) const
inlineinherited

定义于文件 581 的第 581 行。

◆ right() [1/2]

template<typename T >
T& Argus::Rectangle< T >::right ( )
inline

◆ right() [2/2]

template<typename T >
const T& Argus::Rectangle< T >::right ( ) const
inline

定义于文件 779 的第 779 行。

◆ top() [1/2]

template<typename T >
T& Argus::Rectangle< T >::top ( )
inline

◆ top() [2/2]

template<typename T >
const T& Argus::Rectangle< T >::top ( ) const
inline

定义于文件 777 的第 777 行。

◆ tupleSize()

static unsigned int Argus::Tuple< N, T >::tupleSize
inlinestaticinherited

返回元组中元素的数量。

定义于文件 584 的第 584 行。

◆ width()

template<typename T >
T Argus::Rectangle< T >::width ( ) const
inline

返回矩形的宽度。

定义于文件 784 的第 784 行。

引用自 Argus::Rectangle< uint32_t >::area()

字段文档

◆ m_data

T Argus::Tuple< N, T >::m_data[N]
protectedinherited

定义于文件 587 的第 587 行。


此类文档由以下文件生成
. All rights reserved.