Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ixion::rectangle Struct Template Reference

#include <ixlib_geometry.hh>

List of all members.

Public Methods

 rectangle ()
 rectangle (T ax, T ay, T bx, T by)
 rectangle (coord_vector< T > const &a, coord_vector< T > const &b)
template<class TP>  rectangle (rectangle< TP > const &src)
template<class TP> rectangle& operator= (rectangle< TP > const &src)
width () const
height () const
area () const
bool contains (T x, T y) const
bool contains (coord_vector< T > const &point) const
bool intersects (rectangle< T > const &rect) const
bool empty () const
void clear ()
void set (T ax, T ay, T bx, T by)
template<class TP> void set (coord_vector< TP > const &a, coord_vector< TP > const &b)
void setSize (T sizex, T sizey)
template<class TP> void setSize (coord_vector< TP > const &p)
void resize (T dx, T dy)
template<class TP> void resize (coord_vector< TP > const &p)
void move (T dx, T dy)
template<class TP> void move (coord_vector< TP > const &p)
void unite (rectangle const &rect)
void intersect (rectangle const &rect)
template<class TP> rectangle& operator+= (coord_vector< TP > const &p)
template<class TP> rectangle operator+ (coord_vector< TP > const &p)
template<class TP> rectangle& operator-= (coord_vector< TP > const &p)
template<class TP> rectangle operator- (coord_vector< TP > const &p)
getSizeX () const
 
Deprecated:
use width() instead.


getSizeY () const
 
Deprecated:
use height() instead.


getWidth () const
 
Deprecated:
use width() instead.


getHeight () const
 
Deprecated:
use height() instead.


getArea () const
 
Deprecated:
use area() instead.


bool doesContain (T x, T y) const
 
Deprecated:
use contains() instead.


bool doesContain (coord_vector< T > const &point) const
 
Deprecated:
use contains() instead.


bool doesIntersect (rectangle< T > const &rect) const
 
Deprecated:
use intersects() instead.


bool isEmpty () const
 
Deprecated:
use empty() instead.



Public Attributes

coord_vector<T> A
coord_vector<T> B

template<class T> struct ixion::rectangle


Constructor & Destructor Documentation

template<class T>
ixion::rectangle<T>::rectangle<T> ( ) [inline]
 

Definition at line 193 of file ixlib_geometry.hh.

template<class T>
ixion::rectangle<T>::rectangle<T> ( T ax,
T ay,
T bx,
T by ) [inline]
 

Definition at line 195 of file ixlib_geometry.hh.

template<class T>
ixion::rectangle<T>::rectangle<T> ( coord_vector< T > const & a,
coord_vector< T > const & b ) [inline]
 

Definition at line 198 of file ixlib_geometry.hh.

template<class T>
template<class TP>
ixion::rectangle<T>::rectangle<T> ( rectangle< TP > const & src ) [inline]
 

Definition at line 202 of file ixlib_geometry.hh.


Member Function Documentation

template<class T>
T ixion::rectangle<T>::area ( ) const [inline]
 

Definition at line 219 of file ixlib_geometry.hh.

Referenced by getArea().

template<class T>
void ixion::rectangle<T>::clear ( ) [inline]
 

Definition at line 237 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::contains ( coord_vector< T > const & point ) const [inline]
 

Definition at line 225 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::contains ( T x,
T y ) const [inline]
 

Definition at line 222 of file ixlib_geometry.hh.

Referenced by doesContain().

template<class T>
bool ixion::rectangle<T>::doesContain ( coord_vector< T > const & point ) const [inline]
 

Deprecated:
use contains() instead.

Definition at line 326 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::doesContain ( T x,
T y ) const [inline]
 

Deprecated:
use contains() instead.

Definition at line 322 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::doesIntersect ( rectangle< T > const & rect ) const [inline]
 

Deprecated:
use intersects() instead.

Definition at line 330 of file ixlib_geometry.hh.

template<class T>
bool ixion::rectangle<T>::empty ( ) const [inline]
 

Definition at line 233 of file ixlib_geometry.hh.

Referenced by isEmpty().

template<class T>
T ixion::rectangle<T>::getArea ( ) const [inline]
 

Deprecated:
use area() instead.

Definition at line 318 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getHeight ( ) const [inline]
 

Deprecated:
use height() instead.

Definition at line 314 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getSizeX ( ) const [inline]
 

Deprecated:
use width() instead.

Definition at line 302 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getSizeY ( ) const [inline]
 

Deprecated:
use height() instead.

Definition at line 306 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::getWidth ( ) const [inline]
 

Deprecated:
use width() instead.

Definition at line 310 of file ixlib_geometry.hh.

template<class T>
T ixion::rectangle<T>::height ( ) const [inline]
 

Definition at line 216 of file ixlib_geometry.hh.

Referenced by area(), getHeight(), and getSizeY().

template<class T>
void ixion::rectangle<T>::intersect ( rectangle<T> const & rect )
 

template<class T>
bool ixion::rectangle<T>::intersects ( rectangle< T > const & rect ) const [inline]
 

Definition at line 229 of file ixlib_geometry.hh.

Referenced by doesIntersect().

template<class T>
bool ixion::rectangle<T>::isEmpty ( ) const [inline]
 

Deprecated:
use empty() instead.

Definition at line 334 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::move ( coord_vector< TP > const & p ) [inline]
 

Definition at line 271 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::move ( T dx,
T dy ) [inline]
 

Definition at line 266 of file ixlib_geometry.hh.

Referenced by operator+=(), and operator-=().

template<class T>
template<class TP>
rectangle<T> ixion::rectangle<T>::operator+ ( coord_vector< TP > const & p ) [inline]
 

Definition at line 284 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator+= ( coord_vector< TP > const & p ) [inline]
 

Definition at line 279 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> ixion::rectangle<T>::operator- ( coord_vector< TP > const & p ) [inline]
 

Definition at line 295 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator-= ( coord_vector< TP > const & p ) [inline]
 

Definition at line 290 of file ixlib_geometry.hh.

template<class T>
template<class TP>
rectangle<T> & ixion::rectangle<T>::operator= ( rectangle< TP > const & src ) [inline]
 

Definition at line 207 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::resize ( coord_vector< TP > const & p ) [inline]
 

Definition at line 262 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::resize ( T dx,
T dy ) [inline]
 

Definition at line 258 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::set ( coord_vector< TP > const & a,
coord_vector< TP > const & b ) [inline]
 

Definition at line 246 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::set ( T ax,
T ay,
T bx,
T by ) [inline]
 

Definition at line 241 of file ixlib_geometry.hh.

template<class T>
template<class TP>
void ixion::rectangle<T>::setSize ( coord_vector< TP > const & p ) [inline]
 

Definition at line 254 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::setSize ( T sizex,
T sizey ) [inline]
 

Definition at line 250 of file ixlib_geometry.hh.

template<class T>
void ixion::rectangle<T>::unite ( rectangle<T> const & rect )
 

template<class T>
T ixion::rectangle<T>::width ( ) const [inline]
 

Definition at line 213 of file ixlib_geometry.hh.

Referenced by area(), getSizeX(), and getWidth().


Member Data Documentation

template<class T>
coord_vector<T> ixion::rectangle<T>::A
 

Definition at line 191 of file ixlib_geometry.hh.

template<class T>
coord_vector<T> ixion::rectangle<T>::B
 

Definition at line 191 of file ixlib_geometry.hh.


The documentation for this struct was generated from the following file:
Generated at Fri Jul 6 21:05:14 2001 for ixlib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001