summaryrefslogtreecommitdiff
path: root/svx/source/sdr/overlay/overlaytools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/sdr/overlay/overlaytools.cxx')
-rw-r--r--svx/source/sdr/overlay/overlaytools.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/svx/source/sdr/overlay/overlaytools.cxx b/svx/source/sdr/overlay/overlaytools.cxx
index 664c487c7e43..22b273a2a0e4 100644
--- a/svx/source/sdr/overlay/overlaytools.cxx
+++ b/svx/source/sdr/overlay/overlaytools.cxx
@@ -40,6 +40,7 @@
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
//////////////////////////////////////////////////////////////////////////////
@@ -59,7 +60,7 @@ namespace drawinglayer
mnCenterY(nCenterY)
{}
- Primitive2DSequence OverlayBitmapExPrimitive::createLocalDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
+ Primitive2DSequence OverlayBitmapExPrimitive::create2DDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
{
Primitive2DSequence aRetval;
const Size aBitmapSize(getBitmapEx().GetSizePixel());
@@ -129,7 +130,7 @@ namespace drawinglayer
mfDiscreteDashLength(fDiscreteDashLength)
{}
- Primitive2DSequence OverlayCrosshairPrimitive::createLocalDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
+ Primitive2DSequence OverlayCrosshairPrimitive::create2DDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
{
// use the prepared Viewport information accessible using getViewport()
Primitive2DSequence aRetval;
@@ -208,7 +209,7 @@ namespace drawinglayer
mfRotation(fRotation)
{}
- Primitive2DSequence OverlayHatchRectanglePrimitive::createLocalDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
+ Primitive2DSequence OverlayHatchRectanglePrimitive::create2DDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
{
Primitive2DSequence aRetval;
@@ -230,11 +231,8 @@ namespace drawinglayer
if(!basegfx::fTools::equalZero(getRotation()))
{
- basegfx::B2DHomMatrix aTransform;
-
- aTransform.translate(-getObjectRange().getMinX(), -getObjectRange().getMinY());
- aTransform.rotate(getRotation());
- aTransform.translate(getObjectRange().getMinX(), getObjectRange().getMinY());
+ const basegfx::B2DHomMatrix aTransform(basegfx::tools::createRotateAroundPoint(
+ getObjectRange().getMinX(), getObjectRange().getMinY(), getRotation()));
aHatchPolyPolygon.transform(aTransform);
}
@@ -301,7 +299,7 @@ namespace drawinglayer
mfDiscreteDashLength(fDiscreteDashLength)
{}
- Primitive2DSequence OverlayHelplineStripedPrimitive::createLocalDecomposition(const geometry::ViewInformation2D& rViewInformation) const
+ Primitive2DSequence OverlayHelplineStripedPrimitive::create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const
{
// use the prepared Viewport information accessible using getViewport()
Primitive2DSequence aRetval;
@@ -417,7 +415,7 @@ namespace drawinglayer
mfDiscreteDashLength(fDiscreteDashLength)
{}
- Primitive2DSequence OverlayRollingRectanglePrimitive::createLocalDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
+ Primitive2DSequence OverlayRollingRectanglePrimitive::create2DDecomposition(const geometry::ViewInformation2D& /*rViewInformation*/) const
{
// use the prepared Viewport information accessible using getViewport()
Primitive2DSequence aRetval;