Files
libreoffice/slideshow/source/engine/transitions/iriswipe.cxx
Rüdiger Timm ca80a9c885 INTEGRATION: CWS changefileheader (1.5.74); FILE MERGED
2008/03/31 14:00:25 rt 1.5.74.1: #i87441# Change license header to LPGL v3.
2008-04-11 00:08:47 +00:00

56 lines
1.8 KiB
C++

/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: iriswipe.cxx,v $
* $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_slideshow.hxx"
#include <canvas/debug.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include "iriswipe.hxx"
namespace slideshow {
namespace internal {
::basegfx::B2DPolyPolygon IrisWipe::operator () ( double t )
{
::basegfx::B2DHomMatrix aTransform;
aTransform.translate( -0.5, -0.5 );
const double d = ::basegfx::pruneScaleValue(t);
aTransform.scale( d, d );
aTransform.translate( 0.5, 0.5 );
::basegfx::B2DPolyPolygon res( m_unitRect );
res.transform( aTransform );
return res;
}
}
}