Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::Rect< T > Class Template Reference

Implements the common functions of RectI and RectF. More...

#include <Rect.hpp>

List of all members.

Public Member Functions

 Rect (const Rect &other)
 Rect ()
 Rect (T x, T y, T width, T height)
x () const
y () const
width () const
height () const
bottom () const
left () const
top () const
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

mX
mY
mWidth
mHeight

Detailed Description

template<typename T>
class vl::Rect< T >

Implements the common functions of RectI and RectF.

Definition at line 43 of file Rect.hpp.


Constructor & Destructor Documentation

template<typename T>
vl::Rect< T >::Rect ( const Rect< T > &  other ) [inline]

Definition at line 46 of file Rect.hpp.

template<typename T>
vl::Rect< T >::Rect (  ) [inline]

Definition at line 53 of file Rect.hpp.

Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().

template<typename T>
vl::Rect< T >::Rect ( x,
y,
width,
height 
) [inline]

Definition at line 61 of file Rect.hpp.


Member Function Documentation

template<typename T>
T vl::Rect< T >::x (  ) const [inline]
template<typename T>
T vl::Rect< T >::y (  ) const [inline]
template<typename T>
T vl::Rect< T >::width (  ) const [inline]
template<typename T>
T vl::Rect< T >::height (  ) const [inline]
template<typename T>
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().

template<typename T>
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().

template<typename T>
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().

template<typename T>
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().

template<typename T>
void vl::Rect< T >::setX ( x ) [inline]

Definition at line 78 of file Rect.hpp.

template<typename T>
void vl::Rect< T >::setY ( y ) [inline]

Definition at line 79 of file Rect.hpp.

template<typename T>
void vl::Rect< T >::setWidth ( w ) [inline]

Definition at line 80 of file Rect.hpp.

template<typename T>
void vl::Rect< T >::setHeight ( h ) [inline]

Definition at line 81 of file Rect.hpp.

template<typename T>
bool vl::Rect< T >::isNull (  ) const [inline]
template<typename T>
bool vl::Rect< T >::isPoint (  ) const [inline]

Definition at line 84 of file Rect.hpp.

template<typename T>
Rect vl::Rect< T >::intersected ( const Rect< T > &  other ) const [inline]

Definition at line 86 of file Rect.hpp.

Referenced by vl::Scissor::enable().

template<typename T>
Rect vl::Rect< T >::united ( const Rect< T > &  other ) const [inline]

Definition at line 105 of file Rect.hpp.

template<typename T>
bool vl::Rect< T >::operator< ( const Rect< T > &  other ) const [inline]

Defines a sort of lexicographic sorting that make possible the use of the Rect class with STL containers like std::set, std::map etc.

Definition at line 129 of file Rect.hpp.


Member Data Documentation

template<typename T>
T vl::Rect< T >::mX [protected]
template<typename T>
T vl::Rect< T >::mY [protected]
template<typename T>
T vl::Rect< T >::mWidth [protected]
template<typename T>
T vl::Rect< T >::mHeight [protected]

The documentation for this class was generated from the following file:

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.