photosgallery/slideshow/engine/effectsrc/shwcurvefactory.cpp
changeset 0 4e91876724a2
child 14 ce1c7ad1f18b
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Zoom and pan effect curve factory
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 //  Include Files
       
    22 #include "shwcurvefactory.h"
       
    23 
       
    24 #include <alf/alfcurvepath.h>
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // NShwCurveFactory.
       
    28 // -----------------------------------------------------------------------------
       
    29 namespace NShwCurveFactory
       
    30 	{
       
    31 	// constant for arc angle
       
    32 	//const TInt KStartAngle = 0;	// start at 0 degrees
       
    33 	//const TInt KStopAngle = 360;	// end in in 360 degrees
       
    34 	//const TInt KOrigo = 0;	// centre is in origo
       
    35 	// -------------------------------------------------------------------------
       
    36 	// CreateEllipsisL.
       
    37 	// -------------------------------------------------------------------------
       
    38 	CAlfCurvePath* CreateEllipsisL( TSize /*aSize*/, TInt /*aLength*/ )
       
    39 		{
       
    40 	//!Nasty Hack to supress compiler warnings
       
    41 	//function no longer used
       
    42 	//needs to be refactored/removed
       
    43 		CAlfCurvePath* curve =NULL;
       
    44 	/*	CAlfCurvePath* curve = CAlfCurvePath::NewL();
       
    45 		CleanupStack::PushL( curve );
       
    46 		// HUI creates a double sized ellipsis so need to halve the sides
       
    47 		TSize realSize( aSize.iWidth / 2, aSize.iHeight / 2 );
       
    48 		// create the arch for given length
       
    49 		curve->AppendArcL( 
       
    50 			TPoint( KOrigo, KOrigo ),	// centre point
       
    51 			realSize,	// sides of the rect defining the ellipse
       
    52 			KStartAngle,	// start angle
       
    53 			KStopAngle, // end angle 
       
    54 			aLength );	// the whole circle
       
    55 		// enable loop
       
    56         CleanupStack::Pop( curve );
       
    57 		curve->EnableLoop( ETrue );*/
       
    58 		return curve;
       
    59 		}
       
    60 	}