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

ixion::region Class Template Reference

#include <ixlib_geometry.hh>

List of all members.

Public Types

typedef std::vector< rectangle<
T> >::iterator 
iterator
typedef std::vector< rectangle<
T> >::const_iterator 
const_iterator

Public Methods

TSize size () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
void add (rectangle< T > const &rect)
void intersect (rectangle< T > const &rect)
void subtract (rectangle< T > const &rect)
void operator+= (rectangle< T > const &rect)
void operator *= (rectangle< T > const &rect)
void operator-= (rectangle< T > const &rect)
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 ()
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.



Protected Methods

void deleteEmptyRectangles ()

Protected Attributes

std::vector< rectangle<T> > Rects

template<class T> class ixion::region


Member Typedef Documentation

template<class T>
typedef std::vector< rectangle<T> >::const_iterator ixion::region<T>::const_iterator
 

Definition at line 350 of file ixlib_geometry.hh.

template<class T>
typedef std::vector< rectangle<T> >::iterator ixion::region<T>::iterator
 

Definition at line 349 of file ixlib_geometry.hh.


Member Function Documentation

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

Referenced by operator+=().

template<class T>
const_iterator ixion::region<T>::begin ( ) const [inline]
 

Definition at line 358 of file ixlib_geometry.hh.

template<class T>
iterator ixion::region<T>::begin ( ) [inline]
 

Definition at line 355 of file ixlib_geometry.hh.

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

Definition at line 390 of file ixlib_geometry.hh.

template<class T>
bool ixion::region<T>::contains ( coord_vector< T > const & point ) const
 

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

Definition at line 381 of file ixlib_geometry.hh.

Referenced by doesContain().

template<class T>
void ixion::region<T>::deleteEmptyRectangles ( ) [protected]
 

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

Deprecated:
use contains() instead.

Definition at line 399 of file ixlib_geometry.hh.

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

Deprecated:
use contains() instead.

Definition at line 395 of file ixlib_geometry.hh.

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

Deprecated:
use intersects() instead.

Definition at line 403 of file ixlib_geometry.hh.

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

Definition at line 386 of file ixlib_geometry.hh.

Referenced by isEmpty().

template<class T>
const_iterator ixion::region<T>::end ( ) const [inline]
 

Definition at line 364 of file ixlib_geometry.hh.

template<class T>
iterator ixion::region<T>::end ( ) [inline]
 

Definition at line 361 of file ixlib_geometry.hh.

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

Referenced by operator *=().

template<class T>
bool ixion::region<T>::intersects ( rectangle< T > const & rect ) const
 

Referenced by doesIntersect().

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

Deprecated:
use empty() instead.

Definition at line 407 of file ixlib_geometry.hh.

template<class T>
void ixion::region<T>::operator *= ( rectangle< T > const & rect ) [inline]
 

Definition at line 374 of file ixlib_geometry.hh.

template<class T>
void ixion::region<T>::operator+= ( rectangle< T > const & rect ) [inline]
 

Definition at line 371 of file ixlib_geometry.hh.

template<class T>
void ixion::region<T>::operator-= ( rectangle< T > const & rect ) [inline]
 

Definition at line 377 of file ixlib_geometry.hh.

template<class T>
TSize ixion::region<T>::size ( ) const [inline]
 

Definition at line 352 of file ixlib_geometry.hh.

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

Referenced by operator-=().


Member Data Documentation

template<class T>
std::vector< rectangle<T> > ixion::region<T>::Rects [protected]
 

Definition at line 346 of file ixlib_geometry.hh.


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