14 #ifndef _BOARD_BOARD_H_ 
   15 #define _BOARD_BOARD_H_ 
   21 #include "Board/Point.h" 
   22 #include "Board/Path.h" 
   23 #include "Board/Shapes.h" 
   24 #include "Board/ShapeList.h" 
   26 #include "DGtal/io/Color.h" 
   35 class Board : 
public ShapeList {
 
   44   static const double Degree;
 
  104   void clear( 
unsigned char red, 
unsigned char green, 
unsigned char blue );
 
  148   void drawDot( 
double x, 
double y, 
int depthValue = -1 );
 
  159   void drawLine( 
double x1, 
double y1, 
double x2, 
double y2, 
 
  160      int depthValue = -1 );
 
  172   void drawArrow( 
double x1, 
double y1, 
double x2, 
double y2,
 
  174       int depthValue = -1 );
 
  188          double x2, 
double y2, 
 
  189          double x3, 
double y3, 
 
  190          int depthValue = -1 );
 
  203          int depthValue = -1 );
 
  217   void drawArc(
double x, 
double y, 
double radius, 
double angle1, 
double angle2, 
 
  218                bool neg, 
int depthValue = -1 );
 
  232          double x2, 
double y2, 
 
  233          double x3, 
double y3, 
 
  234          int depthValue = -1 );
 
  254           unsigned char divisions = 3,
 
  255           int depthValue = -1 );
 
  274           const double x2, 
const double y2, 
 
  276           const double x3, 
const double y3,
 
  278           unsigned char divisions = 3,
 
  279           int depthValue = -1 );
 
  294           const float brightness1,
 
  296           const float brightness2,
 
  298           const float brightness3,
 
  299           unsigned char divisions = 3,
 
  300           int depthValue = -1 );
 
  319           const float brightness1,
 
  320           const double x2, 
const double y2, 
 
  321           const float brightness2,
 
  322           const double x3, 
const double y3,
 
  323           const float brightness3,
 
  324           unsigned char divisions = 3,
 
  325           int depthValue = -1 );
 
  339          int depthValue = -1 );
 
  351           double width, 
double height,
 
  352           int depthValue = -1 );
 
  363   void drawImage( std::string filename, 
double x, 
double y, 
 
  364           double width, 
double height,
 
  365       int depthValue = -1, 
double alpha=1.0 );
 
  377           double width, 
double height,
 
  378           int depthValue = -1 );
 
  388   void drawCircle( 
double x, 
double y, 
double radius,
 
  389        int depthValue = -1 );
 
  399   void fillCircle( 
double x, 
double y, 
double radius,
 
  400        int depthValue = -1);
 
  411         double xRadius, 
double yRadius,
 
  412         int depthValue = -1);
 
  424         double xRadius, 
double yRadius,
 
  425         int depthValue = -1);
 
  434          int depthValue = -1 );
 
  443          int depthValue = -1 );
 
  452          int depthValue = -1 );
 
  462   void drawText( 
double x, 
double y, 
const char * text, 
 
  463      int depthValue = -1 );
 
  473   void drawText( 
double x, 
double y, 
const std::string & str, 
 
  474      int depthValue = -1 );
 
  504          unsigned char alpha = 255 );
 
  518           float alpha = 1.0f );
 
  542           unsigned char alpha = 255 );
 
  624             double width, 
double height );
 
  652           double dx, 
double dy, 
double scale = 1.0 );
 
  669           double dx, 
double dy,
 
  672           double angle = 0.0 );
 
  695   void save( 
const char * filename, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const; 
 
  728   void saveEPS( 
const char * filename, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const ;
 
  742   void saveEPS( std::ostream &out, 
double pageWidth, 
double pageHeight, 
double margin = 10.0) 
const ;
 
  754                 bool includeFIGHeader=
true) 
const;
 
  766                 bool includeFIGHeader=
true) 
const;
 
  779   void saveFIG( 
const char * filename, 
double pageWidth, 
double pageHeight, 
double margin = 10.0,
 
  780                 bool includeFIGHeader=
true) 
const ;
 
  795   void saveFIG( std::ostream &out, 
double pageWidth, 
double pageHeight, 
double margin = 10.0,
 
  796                 bool includeFIGHeader=
true ) 
const ;
 
  830   void saveSVG( 
const char * filename, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const ;
 
  842   void saveSVG( std::ostream &out, 
double pageWidth, 
double pageHeight, 
double margin = 10.0,
 
  843                 string filename=
"output.svg") 
const ;
 
  869   void saveCairo( 
const char * filename, 
CairoType type, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const ;
 
  905   void saveTikZ( 
const char * filename, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const ;
 
  919   void saveTikZ( std::ostream &out, 
double pageWidth, 
double pageHeight, 
double margin = 10.0 ) 
const ;