15#include "Board/Rect.h"
16#include "Board/Shapes.h"
17#include "Board/ShapeList.h"
18#include "Board/Transforms.h"
22 const float ppmm = 720.0f / 254.0f;
23 const float fig_ppmm = 1143 / 25.4f;
69 const double pageWidth,
70 const double pageHeight,
73 if ( pageWidth <= 0 || pageHeight <= 0 ) {
81 const double w = pageWidth - 2 * margin;
82 const double h = pageHeight - 2 * margin;
115 if ( width == 0.0 )
return 0;
116 int result =
static_cast<int>(
Transform::round( 160 * ( width / 72.0 ) ) );
117 return result>0?result:1;
122 const double pageWidth,
123 const double pageHeight,
124 const double margin )
126 if ( pageWidth <= 0 || pageHeight <= 0 ) {
136 const double w = pageWidth - 2 * margin;
137 const double h = pageHeight - 2 * margin;
145 _height = pageHeight * fig_ppmm;
196 const double pageWidth,
197 const double pageHeight,
198 const double margin )
200 if ( pageWidth <= 0 || pageHeight <= 0 ) {
209 const double w = pageWidth - 2 * margin;
210 const double h = pageHeight - 2 * margin;
248 const double pageWidth,
249 const double pageHeight,
250 const double margin )
252 if ( pageWidth <= 0 || pageHeight <= 0 ) {
261 const double w = pageWidth - 2 * margin;
262 const double h = pageHeight - 2 * margin;
Struct representing a rectangle on the plane.
virtual int minDepth() const
virtual int maxDepth() const