#include <polygontriangulation.h>
Inheritance diagram for PolygonPainter< Poly >:

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 () |
Definition at line 40 of file polygontriangulation.h.
| virtual PolygonPainter< Poly >::~PolygonPainter | ( | ) | [inline, protected, virtual] |
Definition at line 55 of file polygontriangulation.h.
| bool PolygonPainter< Poly >::paintPolygon | ( | const Poly & | poly | ) |
Reimplemented in ShowPolygonUsingTemps, and PolygonPainterSquareCoordinate.
Definition at line 59 of file polygontriangulation.h.
Referenced by PolygonPainterSquareCoordinate::paintPolygon().
| void PolygonPainter< Poly >::sortpolygon | ( | Poly & | a | ) | [protected, virtual] |
Definition at line 236 of file polygontriangulation.h.
References PolygonPainter< Poly >::getpolydir().
| void PolygonPainter< Poly >::painttriangle | ( | typename Poly::Point | p[] | ) | [protected, virtual] |
Definition at line 250 of file polygontriangulation.h.
References PolygonPainter< Poly >::painthorizline().
| 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().
| 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().
| virtual void PolygonPainter< Poly >::setpoint | ( | int | x, | |
| int | y | |||
| ) | [protected, pure virtual] |
Implemented in PolygonPainterSquareCoordinate.
Referenced by PolygonPainter< Poly >::painthorizline(), and PolygonPainter< Poly >::paintline().
| 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().
| double PolygonPainter< Poly >::getsegmentdir | ( | int | dx, | |
| int | dy | |||
| ) | [protected, virtual] |
Definition at line 183 of file polygontriangulation.h.
Referenced by PolygonPainter< Poly >::getpolydir().
| bool PolygonPainter< Poly >::checkpolygon | ( | const Poly & | poly | ) | [protected, virtual] |
| 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.
1.5.1