Visualization Library 2.1.0
A 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. More... | |
Protected Attributes | |
T | mX |
T | mY |
T | mWidth |
T | mHeight |
Definition at line 53 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().
|
inline |
Definition at line 73 of file Rect.hpp.
Referenced by vl::RectI::bottomLeft(), vl::RectF::bottomLeft(), vl::Rect< int >::intersected(), and vl::Rect< int >::united().
|
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::RectI::operator=(), vl::RectF::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), vl::RectF::RectF(), and vl::RectI::RectI().
Definition at line 86 of file Rect.hpp.
Referenced by vl::Scissor::enable().
|
inline |
Definition at line 83 of file Rect.hpp.
Referenced by vl::Scissor::enable(), vl::Rect< int >::intersected(), and vl::Rect< int >::united().
|
inline |
|
inline |
Definition at line 74 of file Rect.hpp.
Referenced by vl::RectI::bottomLeft(), vl::RectF::bottomLeft(), vl::Rect< int >::intersected(), and vl::Rect< int >::united().
|
inline |
Definition at line 76 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), vl::RectI::topRight(), vl::RectF::topRight(), and vl::Rect< int >::united().
|
inline |
|
inline |
|
inline |
Definition at line 75 of file Rect.hpp.
Referenced by vl::Rect< int >::intersected(), vl::RectI::topRight(), vl::RectF::topRight(), and vl::Rect< int >::united().
|
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::RectI::operator=(), vl::RectF::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), vl::RectF::RectF(), and vl::RectI::RectI().
|
inline |
Definition at line 69 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::RectI::operator=(), vl::RectF::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), and vl::Rect< int >::setX().
|
inline |
Definition at line 70 of file Rect.hpp.
Referenced by vl::Image::copySubImage(), vl::Scissor::enable(), vl::RectI::operator=(), vl::RectF::operator=(), vl::VectorGraphics::pushScissor(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), and vl::Rect< int >::setY().
|
protected |
Definition at line 150 of file Rect.hpp.
Referenced by vl::RectF::addPoint(), vl::Rect< int >::height(), vl::Rect< int >::operator<(), vl::RectI::operator=(), vl::RectF::operator=(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), vl::Rect< int >::setHeight(), vl::Rect< int >::top(), vl::RectI::top(), and vl::RectF::top().
|
protected |
Definition at line 149 of file Rect.hpp.
Referenced by vl::RectF::addPoint(), vl::Rect< int >::operator<(), vl::RectI::operator=(), vl::RectF::operator=(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), vl::Rect< int >::right(), vl::RectI::right(), vl::RectF::right(), vl::Rect< int >::setWidth(), and vl::Rect< int >::width().
|
protected |
Definition at line 147 of file Rect.hpp.
Referenced by vl::RectF::addPoint(), vl::Rect< int >::left(), vl::Rect< int >::operator<(), vl::RectI::operator=(), vl::RectF::operator=(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), vl::Rect< int >::right(), vl::RectI::right(), vl::RectF::right(), vl::Rect< int >::setX(), and vl::Rect< int >::x().
|
protected |
Definition at line 148 of file Rect.hpp.
Referenced by vl::RectF::addPoint(), vl::Rect< int >::bottom(), vl::Rect< int >::operator<(), vl::RectI::operator=(), vl::RectF::operator=(), vl::Rect< int >::Rect(), vl::RectF::RectF(), vl::RectI::RectI(), vl::Rect< int >::setY(), vl::Rect< int >::top(), vl::RectI::top(), vl::RectF::top(), and vl::Rect< int >::y().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:53.
© Copyright Michele Bosi. All rights reserved.