diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-07-26 06:37:12 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-07-26 06:37:12 +0000 |
commit | db1fab21e2ff693400ae33d9e43110f1fa6a9e38 (patch) | |
tree | 2b3c8d1a9d35c461f4f9163ca02825cb9e67d7d0 /slideshow | |
parent | d341ddd8b33daa81d63fae0513b33f7262edde68 (diff) |
INTEGRATION: CWS presfixes10 (1.3.8); FILE MERGED
2005/11/18 12:40:44 dbo 1.3.8.1: #i47533# fanwipe fixes
Issue number:
Submitted by:
Reviewed by:
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/transitions/fanwipe.cxx | 64 |
1 files changed, 17 insertions, 47 deletions
diff --git a/slideshow/source/engine/transitions/fanwipe.cxx b/slideshow/source/engine/transitions/fanwipe.cxx index 9f70bb79b278..e74f1296a910 100644 --- a/slideshow/source/engine/transitions/fanwipe.cxx +++ b/slideshow/source/engine/transitions/fanwipe.cxx @@ -4,9 +4,9 @@ * * $RCSfile: fanwipe.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-09-07 20:52:32 $ + * last change: $Author: rt $ $Date: 2006-07-26 07:37:12 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -46,41 +46,29 @@ namespace internal { ::basegfx::B2DPolyPolygon FanWipe::operator () ( double t ) { ::basegfx::B2DPolyPolygon res; - if (m_center) { - ::basegfx::B2DPolygon poly( ClockWipe::calcCenteredClock( - t / (m_single ? 2.0 : 4.0) ) ); - res.append( poly ); - // flip on y-axis: - ::basegfx::B2DHomMatrix aTransform; - aTransform.scale( -1.0, 1.0 ); - poly.transform( aTransform ); - poly.flip(); - res.append( poly ); + ::basegfx::B2DPolygon poly( + ClockWipe::calcCenteredClock( + t / ((m_center && m_single) ? 2.0 : 4.0) ) ); + + res.append( poly ); + // flip on y-axis: + ::basegfx::B2DHomMatrix aTransform; + aTransform.scale( -1.0, 1.0 ); + poly.transform( aTransform ); + poly.flip(); + res.append( poly ); + aTransform.identity(); - aTransform.identity(); + if (m_center) { aTransform.scale( 0.5, 0.5 ); aTransform.translate( 0.5, 0.5 ); res.transform( aTransform ); - if (! m_single) { + if (! m_single) res.append( flipOnXAxis(res) ); - if (m_fanIn) { - // xxx todo - } - } } else { - OSL_ASSERT( !m_single && !m_fanIn ); - ::basegfx::B2DPolygon poly( ClockWipe::calcCenteredClock( t / 4.0 ) ); - res.append( poly ); - // flip on y-axis: - ::basegfx::B2DHomMatrix aTransform; - aTransform.scale( -1.0, 1.0 ); - poly.transform( aTransform ); - poly.flip(); - res.append( poly ); - - aTransform.identity(); + OSL_ASSERT( ! m_fanIn ); aTransform.scale( 0.5, 1.0 ); aTransform.translate( 0.5, 1.0 ); res.transform( aTransform ); @@ -91,21 +79,3 @@ namespace internal { } } -// xxx todo: tests -// switch (n % 4) { -// case 0: -// nType = DOUBLEFANWIPE; -// nSubType = FANOUTVERTICAL; -// break; -// case 1: -// nType = DOUBLEFANWIPE; -// nSubType = FANOUTHOR -// break; -// case 2: -// nType = DOUBLEFANWIPE; -// nSubType = FANINVERTICAL; -// break; -// case 3: -// nType = DOUBLEFANWIPE; -// nSubType = FANINHORIZONTAL; -// break; |