Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
PolygonPainter< Poly > Class Template Referenceabstract

#include <polygontriangulation.h>

Inheritance diagram for PolygonPainter< Poly >:
Inheritance graph
[legend]

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 More...
 
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 More...
 
virtual ~PolygonPainter ()
 

Detailed Description

template<class Poly>
class PolygonPainter< Poly >

Definition at line 40 of file polygontriangulation.h.

Constructor & Destructor Documentation

template<class Poly>
virtual PolygonPainter< Poly >::~PolygonPainter ( )
inlineprotectedvirtual

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 
)
protectedvirtual

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)
protectedvirtual

returns true if polygon correct

Definition at line 153 of file polygontriangulation.h.

template<class Poly>
int PolygonPainter< Poly >::getpolydir ( const Poly &  a)
protectedvirtual

Definition at line 207 of file polygontriangulation.h.

template<class Poly >
double PolygonPainter< Poly >::getsegmentdir ( int  dx,
int  dy 
)
protectedvirtual

Definition at line 183 of file polygontriangulation.h.

template<class Poly >
void PolygonPainter< Poly >::painthorizline ( int  x1,
int  x2,
int  y 
)
protectedvirtual

Definition at line 302 of file polygontriangulation.h.

template<class Poly >
void PolygonPainter< Poly >::paintline ( int  x1,
int  y1,
int  x2,
int  y2 
)
protectedvirtual

Definition at line 326 of file polygontriangulation.h.

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

Definition at line 59 of file polygontriangulation.h.

Referenced by PolygonPainterSquareCoordinate::paintPolygon().

template<class Poly>
void PolygonPainter< Poly >::painttriangle ( typename Poly::Point  p[])
protectedvirtual

Definition at line 250 of file polygontriangulation.h.

template<class Poly>
virtual void PolygonPainter< Poly >::setpoint ( int  x,
int  y 
)
protectedpure virtual
template<class Poly>
void PolygonPainter< Poly >::sortpolygon ( Poly &  a)
protectedvirtual

Definition at line 236 of file polygontriangulation.h.


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