Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RectI class represents a 2D rectangular area using int
precision.
More...
#include <Rect.hpp>
Public Member Functions | |
RectI () | |
RectI (int x, int y, int width, int height) | |
RectI (const Rect< int > &other) | |
RectI (const RectI &other) | |
RectI & | operator= (const Rect< int > &other) |
RectI & | operator= (const RectI &other) |
int | top () const |
int | right () const |
ivec2 | bottomLeft () const |
ivec2 | topRight () const |
Public Member Functions inherited from vl::Rect< int > | |
Rect (const Rect &other) | |
Rect () | |
Rect (int x, int y, int width, int height) | |
int | x () const |
int | y () const |
int | width () const |
int | height () const |
int | bottom () const |
int | left () const |
int | top () const |
int | right () const |
void | setX (int x) |
void | setY (int y) |
void | setWidth (int w) |
void | setHeight (int 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... | |
Additional Inherited Members | |
Protected Attributes inherited from vl::Rect< int > | |
int | mX |
int | mY |
int | mWidth |
int | mHeight |
The RectI class represents a 2D rectangular area using int
precision.
This class is mainly used to manipulate rectangles in pixel coordinates (as opposed to real coordinates). The RectI and RectF differ in the following way:
|
inline |
Definition at line 167 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
|
inline |
Definition at line 175 of file Rect.hpp.
References vl::Rect< T >::bottom(), and vl::Rect< T >::left().
Definition at line 171 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
Definition at line 172 of file Rect.hpp.
References vl::Rect< T >::height(), vl::Rect< T >::mHeight, vl::Rect< T >::mWidth, vl::Rect< T >::mX, vl::Rect< T >::mY, vl::Rect< T >::width(), vl::Rect< T >::x(), and vl::Rect< T >::y().
|
inline |
Definition at line 174 of file Rect.hpp.
References vl::Rect< T >::mWidth, and vl::Rect< T >::mX.
Referenced by vl::Image::copySubImage().
|
inline |
Definition at line 173 of file Rect.hpp.
References vl::Rect< T >::mHeight, and vl::Rect< T >::mY.
Referenced by vl::Image::copySubImage().
|
inline |
Definition at line 176 of file Rect.hpp.
References vl::Rect< T >::right(), and vl::Rect< T >::top().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:53.
© Copyright Michele Bosi. All rights reserved.