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

ixion::polygon Class Template Reference

#include <ixlib_polygon.hh>

Inheritance diagram for ixion::polygon::

std::vector List of all members.

Public Types

typedef polygon_segment< T
>::vertex_2d 
vertex_2d

Public Methods

 polygon ()
 polygon (polygon const &src)
polygon & operator= (polygon const &src)
 ~polygon ()
void clear ()
bool isPointInside (T x, T y)
void smooth ()
void subdivide ()
void translate (T x, T y)
void unite (polygon &dest, polygon const &src) const
void intersect (polygon &dest, polygon const &src) const
void subtract (polygon &dest, polygon const &subtrahend) const
rectangle< T > getBoundingBox () const
vertex_2d getCenter () const
vertex_2d getWeightedCenter () const
template<class HLineRoutine> void drawScanlines (HLineRoutine const &hlr, T step=1) const

template<class T>
class ixion::polygon< T >


Member Typedef Documentation

template<class T>
typedef polygon_segment<T>::vertex_2d ixion::polygon::vertex_2d
 

Definition at line 67 of file ixlib_polygon.hh.


Constructor & Destructor Documentation

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

Definition at line 70 of file ixlib_polygon.hh.

template<class T>
ixion::polygon< T >::polygon (  polygon< T > const &    src ) 
 

template<class T>
ixion::polygon< T >::~polygon (    ) 
 


Member Function Documentation

template<class T>
void ixion::polygon< T >::clear (    ) 
 

template<class T>
template<class HLineRoutine>
void ixion::polygon< T >::drawScanlines (  HLineRoutine const &    hlr,
T    step = 1
)  const
 

template<class T>
rectangle<T> ixion::polygon< T >::getBoundingBox (    )  const
 

template<class T>
vertex_2d ixion::polygon< T >::getCenter (    )  const
 

template<class T>
vertex_2d ixion::polygon< T >::getWeightedCenter (    )  const
 

template<class T>
void ixion::polygon< T >::intersect (  polygon< T > &    dest,
polygon< T > const &    src
)  const
 

template<class T>
bool ixion::polygon< T >::isPointInside (  T    x,
T    y
) 
 

template<class T>
polygon& ixion::polygon< T >::operator= (  polygon< T > const &    src ) 
 

template<class T>
void ixion::polygon< T >::smooth (    ) 
 

template<class T>
void ixion::polygon< T >::subdivide (    ) 
 

template<class T>
void ixion::polygon< T >::subtract (  polygon< T > &    dest,
polygon< T > const &    subtrahend
)  const
 

template<class T>
void ixion::polygon< T >::translate (  T    x,
T    y
) 
 

template<class T>
void ixion::polygon< T >::unite (  polygon< T > &    dest,
polygon< T > const &    src
)  const
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 31 17:12:25 2001 for ixlib by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001