summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2009-04-01 16:31:09 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2009-04-01 16:31:09 +0000
commit06b431efe124c62f416da758fd8678e07e77c2f7 (patch)
treef7a1a9c12c9dfb5f4df5b997fcf93a606322895d /basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
parent3a66464e2bfeda47c3005e1e752091d6568c8b18 (diff)
CWS-TOOLING: integrate CWS aw066_DEV300
2009-03-19 17:20:55 +0100 aw r269762 : #i99662# enhanced MetaFile paint by avoiding single pixel scalings due to MapMode errors 2009-03-19 17:20:18 +0100 aw r269761 : #i99662# enhanced 3D AA by using the SnapHorVerLinesToDiscrete options flag to unify the hor/ver hairlines
Diffstat (limited to 'basegfx/inc/basegfx/polygon/b3dpolygontools.hxx')
-rw-r--r--basegfx/inc/basegfx/polygon/b3dpolygontools.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
index 7b451970c565..a29204eadc3f 100644
--- a/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
+++ b/basegfx/inc/basegfx/polygon/b3dpolygontools.hxx
@@ -174,6 +174,20 @@ namespace basegfx
bool equal(const B3DPolygon& rCandidateA, const B3DPolygon& rCandidateB, const double& rfSmallValue);
bool equal(const B3DPolygon& rCandidateA, const B3DPolygon& rCandidateB);
+ /** snap some polygon coordinates to discrete coordinates
+
+ This method allows to snap some polygon points to discrete (integer) values
+ which equals e.g. a snap to discrete coordinates. It will snap points of
+ horizontal and vertical edges
+
+ @param rCandidate
+ The source polygon
+
+ @return
+ The modified version of the source polygon
+ */
+ B3DPolygon snapPointsOfHorizontalOrVerticalEdges(const B3DPolygon& rCandidate);
+
} // end of namespace tools
} // end of namespace basegfx