virtual void selfDraw(Board2D & aboard) const { aboard.setFillColorRGBi(150, 150, 160); aboard.setPenColorRGBi(150, 150, 160); aboard.setLineStyle(Board2D::Shape::DashStyle); aboard.setLineWidth( 1.0 ); }
virtual void selfDraw(Board2D & aboard) const { aboard.setFillColorRGBi(150, 150, 250); aboard.setPenColorRGBi(0, 0, 200); aboard.setLineStyle(Board2D::Shape::SolidStyle); aboard.setLineWidth( 1.5 ); }
virtual void selfDraw(Board2D & aboard) const { aboard.setFillColor( myColor ); aboard.setPenColorRGBi( 0, 0, 0 ); aboard.setLineStyle( LibBoard::Shape::SolidStyle ); aboard.setLineWidth( 1.0 ); }
virtual void selfDraw(Board2D & aboard) const { aboard.setFillColor( Color::Red); aboard.setPenColorRGBi(200,0,0); aboard.setLineStyle(LibBoard::Shape::SolidStyle); aboard.setLineWidth( 2 ); }
/** * Example of a test. To be completed. * */ bool testSimpleBoard() { unsigned int nbok = 0; unsigned int nb = 2; trace.beginBlock ( "Testing class SimpleBoard" ); Board2D board; board.setPenColorRGBi( 0, 0, 0); board.drawRectangle( -1, 1, 2.0, 2.0 ); board.setPenColorRGBi( 0, 0, 255 ); board.fillCircle( 2, 2, 1 ); board.saveSVG( "simpleboard.svg" ); board.saveFIG( "simpleboard.fig" ); board.saveEPS( "simpleboard.eps" ); board.saveTikZ( "simpleboard.tikz" ); nbok++; typedef PointVector<2,int> Point2D; Point2D apoint, p2; apoint[0] = 5; p2[0] = 1; apoint[1] = 8; p2[1] = 1; board.setPenColorRGBi( 255, 0, 255 ); board << apoint; board.setPenColorRGBi( 255, 0, 0 ); Display2DFactory::draw(board, apoint, p2); board.scale(10); board.saveSVG( "pointsimpleboard.svg" ); board.saveFIG( "pointsimpleboard.fig" ); board.saveEPS( "pointsimpleboard.eps" ); board.saveTikZ( "pointsimpleboard.tikz" ); nbok++; trace.endBlock(); return nbok == nb; }
void selfDraw(Board2D & aboard) const { aboard.setFillColorRGBi(255, 0, 0); aboard.setPenColorRGBi(0, 255, 0); }
virtual void setStyle(Board2D & aboard) const { aboard.setFillColorRGBi(255, 0, 0); aboard.setPenColorRGBi(0, 255, 0); }