CMGDK r49-rc2
|
矩形范围类 更多...
#include <RectScope.H>
公有成员 | |
T | GetBottom () const |
T | GetRight () const |
void | SetBottom (T v) |
void | SetRight (T v) |
RectScope2 () | |
RectScope2 (T, T, T, T) | |
template<typename N > | |
RectScope2 (const RectScope2< N > &) | |
void | Clear () |
void | Set (T, T, T, T) |
bool | PointIn (T, T) const |
template<typename N > | |
bool | PointIn (const N &v) const |
一个点是否在其上 | |
template<typename N > | |
void | operator= (const RectScope2< N > &rs) |
template<typename N > | |
bool | operator== (const RectScope2< N > &rs) const |
template<typename N > | |
bool | operator!= (const RectScope2< N > &rs) const |
template<typename N > | |
RectScope2< T > | operator+ (const Vertex2< N > &v) const |
template<typename N > | |
RectScope2< T > | operator- (const Vertex2< N > &v) const |
template<typename N > | |
RectScope2< T > & | operator+= (const Vertex2< N > &v) |
template<typename N > | |
RectScope2< T > & | operator-= (const Vertex2< N > &v) |
公有属性 | |
T | Left |
矩形左边所在的坐标 | |
T | Top |
矩形上边所在的坐标 | |
T | Width |
矩形的宽度 | |
T | Height |
矩形的高度 |
矩形范围类
这个类用于描述和处理一个矩形范围
hgl::RectScope2< T >::RectScope2 | ( | ) |
本类构造函数
hgl::RectScope2< T >::RectScope2 | ( | T | l, |
T | t, | ||
T | w, | ||
T | h | ||
) |
本类构造函数
l | 矩形最左边的坐标值 |
t | 矩形最上边的坐标值 |
w | 矩形的宽度 |
h | 矩形的高度 |
hgl::RectScope2< T >::RectScope2 | ( | const RectScope2< N > & | rs | ) |
void hgl::RectScope2< T >::Clear | ( | ) | [inline] |
T hgl::RectScope2< T >::GetBottom | ( | ) | const [inline] |
T hgl::RectScope2< T >::GetRight | ( | ) | const [inline] |
bool hgl::RectScope2< T >::operator!= | ( | const RectScope2< N > & | rs | ) | const [inline] |
RectScope2<T> hgl::RectScope2< T >::operator+ | ( | const Vertex2< N > & | v | ) | const [inline] |
RectScope2<T>& hgl::RectScope2< T >::operator+= | ( | const Vertex2< N > & | v | ) | [inline] |
RectScope2<T> hgl::RectScope2< T >::operator- | ( | const Vertex2< N > & | v | ) | const [inline] |
RectScope2<T>& hgl::RectScope2< T >::operator-= | ( | const Vertex2< N > & | v | ) | [inline] |
void hgl::RectScope2< T >::operator= | ( | const RectScope2< N > & | rs | ) | [inline] |
bool hgl::RectScope2< T >::operator== | ( | const RectScope2< N > & | rs | ) | const [inline] |
bool hgl::RectScope2< T >::PointIn | ( | const N & | v | ) | const [inline] |
一个点是否在其上
bool hgl::RectScope2< T >::PointIn | ( | T | x, |
T | y | ||
) | const |
求坐标点x,y,z是否在这个矩形内
x | X坐标 |
y | Y坐标 |
void hgl::RectScope2< T >::Set | ( | T | l, |
T | t, | ||
T | w, | ||
T | h | ||
) |
设置数据
l | 矩形最左边的坐标值 |
t | 矩形最上边的坐标值 |
w | 矩形的宽度 |
h | 矩形的高度 |
void hgl::RectScope2< T >::SetBottom | ( | T | v | ) | [inline] |
void hgl::RectScope2< T >::SetRight | ( | T | v | ) | [inline] |
T hgl::RectScope2< T >::Height |
矩形的高度
T hgl::RectScope2< T >::Left |
矩形左边所在的坐标
T hgl::RectScope2< T >::Top |
矩形上边所在的坐标
T hgl::RectScope2< T >::Width |
矩形的宽度