X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fpath.h;h=85213c534e5e0ff464072328c07f81dbddc097a5;hb=e08b7671a4592481aa73d68b30b7bd1d96e75002;hp=eb2b7b7f33d953a64cfca28f7eca015212910bff;hpb=ef0af5fd0129161a9e079bd3cd1298b53f1fe11a;p=ipdf%2Fcode.git diff --git a/src/path.h b/src/path.h index eb2b7b7..85213c5 100644 --- a/src/path.h +++ b/src/path.h @@ -1,22 +1,27 @@ #ifndef _PATH_H #define _PATH_H +#include "transformationtype.h" #include #include #include "rect.h" #include "real.h" -#ifdef QUADTREE_DISABLED - -#define TRANSFORM_BEZIERS_TO_PATH #ifdef TRANSFORM_BEZIERS_TO_PATH -#include "gmprat.h" -#endif + #include "gmprat.h" #endif + namespace IPDF { + #ifdef TRANSFORM_BEZIERS_TO_PATH + #pragma message "Path using Gmprat for bounds" + typedef Gmprat PReal; + #else + typedef Real PReal; + #endif + typedef TRect PRect; struct Colour { @@ -55,12 +60,8 @@ namespace IPDF std::vector m_fill_points; - #ifdef TRANSFORM_BEZIERS_TO_PATH - Gmprat x; - Gmprat y; - Gmprat w; - Gmprat h; - #endif + PRect m_bounds; + Colour m_fill; // colour to fill with Colour m_stroke; // colour to outline with