| 1 | /*************************************************************************** |
| 2 | lazy.h - description |
| 3 | ------------------- |
| 4 | begin : july 30th, 2006 |
| 5 | copyright : (C) 2006 by Frederic RODRIGO |
| 6 | email : f.rodrigo free.fr |
| 7 | |
| 8 | $Id: star.h 373 2008-10-11 21:32:54Z neoneurone $ |
| 9 | ***************************************************************************/ |
| 10 | |
| 11 | /*************************************************************************** |
| 12 | * * |
| 13 | * This program is free software; you can redistribute it and/or modify * |
| 14 | * it under the terms of the GNU General Public License as published by * |
| 15 | * the Free Software Foundation; either version 2 of the License, or * |
| 16 | * any later version. * |
| 17 | * * |
| 18 | ***************************************************************************/ |
| 19 | |
| 20 | #ifndef _OPENCITY_STAR_H_ |
| 21 | #define _OPENCITY_STAR_H_ 1 |
| 22 | |
| 23 | #include "triangulation.h" |
| 24 | |
| 25 | #include <iostream> |
| 26 | |
| 27 | namespace Triangulation |
| 28 | { |
| 29 | |
| 30 | /** Bad algorithm. We draw all the triangle with the first vertex unvariable |
| 31 | */ |
| 32 | class Star : public Triangulation { |
| 33 | |
| 34 | public: |
| 35 | Star() { std::cout << "ctor" << std::endl; } |
| 36 | virtual ~Star() { std::cout << "dtor" << std::endl; } |
| 37 | |
| 38 | virtual Triangle* |
| 39 | process( |
| 40 | const uint nVertex, |
| 41 | const Vertex* vertex ) const; |
| 42 | |
| 43 | }; |
| 44 | |
| 45 | } |
| 46 | |
| 47 | #endif |