1 /* -*- mode: c++ -*- */
4 * @author Sebastien Fourey <http://www.greyc.ensicaen.fr/~seb>
5 * @date Sat Aug 18 2007
7 * @brief Definition of inline methods of the Board class.
10 * \@copyright This File is part of the Board library which is
11 * licensed under the terms of the GNU Lesser General Public Licence.
12 * See the LICENCE file for further details.
19 Board::clear( unsigned char red, unsigned char green, unsigned char blue )
21 clear( DGtal::Color( red, green, blue ) );
26 Board::setLineStyle( Shape::LineStyle style )
28 _state.lineStyle = style;
34 Board::setLineCap( Shape::LineCap cap )
42 Board::setLineJoin( Shape::LineJoin join )
44 _state.lineJoin = join;
50 Board::fillGouraudTriangle( const double x1, const double y1,
51 const DGtal::Color & color1,
52 const double x2, const double y2,
53 const DGtal::Color & color2,
54 const double x3, const double y3,
55 const DGtal::Color & color3,
56 unsigned char divisions,
57 int depthValue /* = -1 */ )
59 fillGouraudTriangle( Point( x1, y1 ), color1,
60 Point( x2, y2 ), color2,
61 Point( x3, y3 ), color3,
62 divisions, depthValue );
67 Board::fillGouraudTriangle( const double x1, const double y1,
68 const float brightness1,
69 const double x2, const double y2,
70 const float brightness2,
71 const double x3, const double y3,
72 const float brightness3,
73 unsigned char divisions,
74 int depthValue /* = -1 */ )
76 fillGouraudTriangle( Point( x1, y1 ), brightness1,
77 Point( x2, y2 ), brightness2,
78 Point( x3, y3 ), brightness3,
79 divisions, depthValue );
82 } // namespace LibBoard