X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fpath.h;h=2aa7840450abcba370c0f7e2b48830257e0ee99d;hp=eb2b7b7f33d953a64cfca28f7eca015212910bff;hb=326f04a375ce3120f7e8957e3d7cd5f296f513e3;hpb=ef0af5fd0129161a9e079bd3cd1298b53f1fe11a diff --git a/src/path.h b/src/path.h index eb2b7b7..2aa7840 100644 --- a/src/path.h +++ b/src/path.h @@ -1,22 +1,26 @@ #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 + typedef Gmprat PReal; + #else + typedef Real PReal; + #endif + typedef TRect PRect; struct Colour { @@ -55,12 +59,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