Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PolygonPainter< Poly > Class Template Reference

#include <polygontriangulation.h>

Inheritance diagram for PolygonPainter< Poly >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool paintPolygon (const Poly &poly)

Protected Member Functions

virtual void sortpolygon (Poly &a)
virtual void painttriangle (typename Poly::Point p[])
virtual void painthorizline (int x1, int x2, int y)
virtual void paintline (int x1, int y1, int x2, int y2)
virtual void setpoint (int x, int y)=0
virtual int getpolydir (const Poly &a)
virtual double getsegmentdir (int dx, int dy)
virtual bool checkpolygon (const Poly &poly)
 returns true if polygon correct
virtual bool checkline (typename Poly::Point a, typename Poly::Point b, typename Poly::Point d, typename Poly::Point e)
 returns true if lines a-b and c-d don't intersect
virtual ~PolygonPainter ()

template<class Poly>
class PolygonPainter< Poly >


Constructor & Destructor Documentation

template<class Poly>
virtual PolygonPainter< Poly >::~PolygonPainter  )  [inline, protected, virtual]
 

Definition at line 55 of file polygontriangulation.h.


Member Function Documentation

template<class Poly>
bool PolygonPainter< Poly >::checkline typename Poly::Point  a,
typename Poly::Point  b,
typename Poly::Point  d,
typename Poly::Point  e
[protected, virtual]
 

returns true if lines a-b and c-d don't intersect

Definition at line 117 of file polygontriangulation.h.

template<class Poly>
bool PolygonPainter< Poly >::checkpolygon const Poly &  poly  )  [protected, virtual]
 

returns true if polygon correct

Definition at line 153 of file polygontriangulation.h.

template<class Poly>
int PolygonPainter< Poly >::getpolydir const Poly &  a  )  [protected, virtual]
 

Definition at line 207 of file polygontriangulation.h.

References PolygonPainter< Poly >::getsegmentdir().

Referenced by PolygonPainter< Poly >::sortpolygon().

template<class Poly>
double PolygonPainter< Poly >::getsegmentdir int  dx,
int  dy
[protected, virtual]
 

Definition at line 183 of file polygontriangulation.h.

Referenced by PolygonPainter< Poly >::getpolydir().

template<class Poly>
void PolygonPainter< Poly >::painthorizline int  x1,
int  x2,
int  y
[protected, virtual]
 

Definition at line 302 of file polygontriangulation.h.

References PolygonPainter< Poly >::setpoint().

Referenced by PolygonPainter< Poly >::painttriangle().

template<class Poly>
void PolygonPainter< Poly >::paintline int  x1,
int  y1,
int  x2,
int  y2
[protected, virtual]
 

Definition at line 326 of file polygontriangulation.h.

References PolygonPainter< Poly >::setpoint().

template<class Poly>
bool PolygonPainter< Poly >::paintPolygon const Poly &  poly  ) 
 

Reimplemented in ShowPolygonUsingTemps, and PolygonPainterSquareCoordinate.

Definition at line 59 of file polygontriangulation.h.

Referenced by PolygonPainterSquareCoordinate::paintPolygon().

template<class Poly>
void PolygonPainter< Poly >::painttriangle typename Poly::Point  p[]  )  [protected, virtual]
 

Definition at line 250 of file polygontriangulation.h.

References PolygonPainter< Poly >::painthorizline().

template<class Poly>
virtual void PolygonPainter< Poly >::setpoint int  x,
int  y
[protected, pure virtual]
 

Implemented in PolygonPainterSquareCoordinate.

Referenced by PolygonPainter< Poly >::painthorizline(), and PolygonPainter< Poly >::paintline().

template<class Poly>
void PolygonPainter< Poly >::sortpolygon Poly &  a  )  [protected, virtual]
 

Definition at line 236 of file polygontriangulation.h.

References PolygonPainter< Poly >::getpolydir().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:19:54 2008 for Advanced Strategic Command by  doxygen 1.4.2