Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Implements the common functions of RectI and RectF. More...
#include <Rect.hpp>
Public Member Functions | |
Rect (const Rect &other) | |
Rect () | |
Rect (T x, T y, T width, T height) | |
T | x () const |
T | y () const |
T | width () const |
T | height () const |
T | bottom () const |
T | left () const |
T | top () const |
T | right () const |
void | setX (T x) |
void | setY (T y) |
void | setWidth (T w) |
void | setHeight (T h) |
bool | isNull () const |
bool | isPoint () const |
Rect | intersected (const Rect &other) const |
Rect | united (const Rect &other) const |
bool | operator< (const Rect &other) const |
Defines a sort of lexicographic sorting that make possible the use of the Rect class with STL containers like std::set, std::map etc. | |
Protected Attributes | |
T | mX |
T | mY |
T | mWidth |
T | mHeight |
Implements the common functions of RectI and RectF.
Definition at line 43 of file Rect.hpp.
Definition at line 53 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
T vl::Rect< T >::x | ( | ) | const [inline] |
Definition at line 69 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::RectF::operator=(), vl::RectI::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), and vl::Rect< int >::setX().
T vl::Rect< T >::y | ( | ) | const [inline] |
Definition at line 70 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::RectF::operator=(), vl::RectI::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), and vl::Rect< int >::setY().
T vl::Rect< T >::width | ( | ) | const [inline] |
Definition at line 71 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::Rect< int >::isNull(), vl::Rect< int >::isPoint(), vl::RectF::operator=(), vl::RectI::operator=(), vl::VectorGraphics::pushScissor(), and vl::Rect< int >::Rect().
T vl::Rect< T >::height | ( | ) | const [inline] |
Definition at line 72 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::Rect< int >::isNull(), vl::Rect< int >::isPoint(), vl::RectF::operator=(), vl::RectI::operator=(), vl::VectorGraphics::pushScissor(), and vl::Rect< int >::Rect().
T vl::Rect< T >::bottom | ( | ) | const [inline] |
Definition at line 73 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
T vl::Rect< T >::left | ( | ) | const [inline] |
Definition at line 74 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
T vl::Rect< T >::top | ( | ) | const [inline] |
Reimplemented in vl::RectI, and vl::RectF.
Definition at line 75 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
T vl::Rect< T >::right | ( | ) | const [inline] |
Reimplemented in vl::RectI, and vl::RectF.
Definition at line 76 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
void vl::Rect< T >::setX | ( | T | x ) | [inline] |
void vl::Rect< T >::setY | ( | T | y ) | [inline] |
void vl::Rect< T >::setWidth | ( | T | w ) | [inline] |
void vl::Rect< T >::setHeight | ( | T | h ) | [inline] |
bool vl::Rect< T >::isNull | ( | ) | const [inline] |
Definition at line 83 of file Rect.hpp.
Referenced by vl::Scissor::enable(), vl::Rect< int >::intersected(), and vl::Rect< int >::united().
bool vl::Rect< T >::isPoint | ( | ) | const [inline] |
Definition at line 86 of file Rect.hpp.
Referenced by vl::Scissor::enable().
Definition at line 147 of file Rect.hpp.
Referenced by vl::Rect< int >::left(), vl::Rect< int >::operator<(), vl::Rect< int >::Rect(), vl::Rect< int >::right(), vl::Rect< int >::setX(), and vl::Rect< int >::x().
Definition at line 148 of file Rect.hpp.
Referenced by vl::Rect< int >::bottom(), vl::Rect< int >::operator<(), vl::Rect< int >::Rect(), vl::Rect< int >::setY(), vl::Rect< int >::top(), and vl::Rect< int >::y().
Definition at line 149 of file Rect.hpp.
Referenced by vl::Rect< int >::operator<(), vl::Rect< int >::Rect(), vl::Rect< int >::right(), vl::Rect< int >::setWidth(), and vl::Rect< int >::width().
Definition at line 150 of file Rect.hpp.
Referenced by vl::Rect< int >::height(), vl::Rect< int >::operator<(), vl::Rect< int >::Rect(), vl::Rect< int >::setHeight(), and vl::Rect< int >::top().