git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Gmprat for Path bounds with TRANSFORM_BEZIERS_TO_PATH
[ipdf/code.git]
/
src
/
path.h
diff --git
a/src/path.h
b/src/path.h
index
7eb8dee
..
eb2b7b7
100644
(file)
--- a/
src/path.h
+++ b/
src/path.h
@@
-9,7
+9,9
@@
#ifdef QUADTREE_DISABLED
#define TRANSFORM_BEZIERS_TO_PATH
#ifdef QUADTREE_DISABLED
#define TRANSFORM_BEZIERS_TO_PATH
-
+#ifdef TRANSFORM_BEZIERS_TO_PATH
+#include "gmprat.h"
+#endif
#endif
#endif
@@
-35,7
+37,7
@@
namespace IPDF
{
Path(Objects & objects, unsigned _start, unsigned _end, const Colour & _fill = Colour(128,128,128,255), const Colour & _stroke = Colour(0,0,0,0));
{
Path(Objects & objects, unsigned _start, unsigned _end, const Colour & _fill = Colour(128,128,128,255), const Colour & _stroke = Colour(0,0,0,0));
- Rect SolveBounds(const Objects & objects)
const
;
+ Rect SolveBounds(const Objects & objects);
Rect & GetBounds(Objects & objects);
std::vector<Vec2> & FillPoints(const Objects & objects, const View & view);
Rect & GetBounds(Objects & objects);
std::vector<Vec2> & FillPoints(const Objects & objects, const View & view);
@@
-53,6
+55,13
@@
namespace IPDF
std::vector<Vec2> m_fill_points;
std::vector<Vec2> m_fill_points;
+ #ifdef TRANSFORM_BEZIERS_TO_PATH
+ Gmprat x;
+ Gmprat y;
+ Gmprat w;
+ Gmprat h;
+ #endif
+
Colour m_fill; // colour to fill with
Colour m_stroke; // colour to outline with
};
Colour m_fill; // colour to fill with
Colour m_stroke; // colour to outline with
};
UCC
git Repository :: git.ucc.asn.au