summaryrefslogtreecommitdiff
path: root/basegfx/source/range
diff options
context:
space:
mode:
authorthb <thb@openoffice.org>2009-10-16 00:57:35 +0200
committerthb <thb@openoffice.org>2009-10-16 00:57:35 +0200
commit7bae8837395d6f4ab80d01ee9525820ced425a51 (patch)
tree7ca2d26dc840c7d8ee2bcb1794e53837cd1cef08 /basegfx/source/range
parent8454c5ef5057d0d24e52fb9ed10483b598da98b0 (diff)
#i105939# Adds clip state handling class to basegfx; makes use of that also from slideshow
Diffstat (limited to 'basegfx/source/range')
-rw-r--r--basegfx/source/range/b2dpolyrange.cxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx
index c4969b38712c..d35af8f5dd0c 100644
--- a/basegfx/source/range/b2dpolyrange.cxx
+++ b/basegfx/source/range/b2dpolyrange.cxx
@@ -227,6 +227,26 @@ namespace basegfx
return tools::solveCrossovers(maRanges,maOrient);
}
+ const B2DRange* begin() const
+ {
+ return &maRanges.front();
+ }
+
+ const B2DRange* end() const
+ {
+ return &maRanges[maRanges.size()];
+ }
+
+ B2DRange* begin()
+ {
+ return &maRanges.front();
+ }
+
+ B2DRange* end()
+ {
+ return &maRanges[maRanges.size()];
+ }
+
private:
B2DRange maBounds;
std::vector<B2DRange> maRanges;
@@ -366,6 +386,26 @@ namespace basegfx
return mpImpl->solveCrossovers();
}
+ const B2DRange* B2DPolyRange::begin() const
+ {
+ return mpImpl->begin();
+ }
+
+ const B2DRange* B2DPolyRange::end() const
+ {
+ return mpImpl->end();
+ }
+
+ B2DRange* B2DPolyRange::begin()
+ {
+ return mpImpl->begin();
+ }
+
+ B2DRange* B2DPolyRange::end()
+ {
+ return mpImpl->end();
+ }
+
} // end of namespace basegfx
// eof