26 #ifndef _BOARD_TRANSFORMS_H_ 
   27 #define _BOARD_TRANSFORMS_H_ 
   48   virtual double mapX( 
double x ) 
const;
 
   49   virtual double mapY( 
double y ) 
const = 0;
 
   51   virtual void apply( 
double & x, 
double & y ) 
const;
 
   52   virtual double scale( 
double x ) 
const;
 
   53   virtual double rounded( 
double x ) 
const;
 
   54   virtual void setBoundingBox( 
const Rect & rect,
 
   55                                const double pageWidth,
 
   56                                const double pageHeight,
 
   57                                const double margin ) = 0;
 
   59   static inline double round( 
const double & x );
 
   75   double mapY( 
double y ) 
const;
 
   76   void setBoundingBox( 
const Rect & rect,
 
   77                        const double pageWidth,
 
   78                        const double pageHeight,
 
   79                        const double margin );
 
   90   double rounded( 
double x ) 
const;
 
   91   double mapY( 
double y ) 
const;
 
   92   int mapWidth( 
double width ) 
const;
 
   93   void setBoundingBox( 
const Rect & rect,
 
   94                        const double pageWidth,
 
   95                        const double pageHeight,
 
   96                        const double margin );
 
   97   void setDepthRange( 
const ShapeList & shapes );
 
   98   int mapDepth( 
int depth ) 
const;
 
  111   double rounded( 
double x ) 
const;
 
  112   double mapY( 
double y ) 
const;
 
  113   double mapWidth( 
double width ) 
const;
 
  114   void setBoundingBox( 
const Rect & rect,
 
  115                        const double pageWidth,
 
  116                        const double pageHeight,
 
  117                        const double margin );
 
  119   Point translation() 
const;
 
  120   double deltaX() 
const;
 
  121   double deltaY() 
const;
 
  134 #include "Transforms.ih" 
Struct representing a 2D point. 
Definition: Point.h:38
A group of shapes. 
Definition: ShapeList.h:41
Struct representing a rectangle on the plane. 
Definition: Rect.h:38