photosgallery/slideshow/engine/effectsrc/shwcurvefactory.cpp
author William Roberts <williamr@symbian.org>
Tue, 06 Apr 2010 17:25:48 +0100
branchCompilerCompatibility
changeset 16 0bc0ea26031e
parent 0 4e91876724a2
child 14 ce1c7ad1f18b
permissions -rw-r--r--
Fix pointer-to-member function syntax for RVCT4 and GCCE (Bug 1732 and Bug 1728)

/*
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Zoom and pan effect curve factory
 *
*/




//  Include Files
#include "shwcurvefactory.h"

#include <alf/alfcurvepath.h>

// -----------------------------------------------------------------------------
// NShwCurveFactory.
// -----------------------------------------------------------------------------
namespace NShwCurveFactory
	{
	// constant for arc angle
	//const TInt KStartAngle = 0;	// start at 0 degrees
	//const TInt KStopAngle = 360;	// end in in 360 degrees
	//const TInt KOrigo = 0;	// centre is in origo
	// -------------------------------------------------------------------------
	// CreateEllipsisL.
	// -------------------------------------------------------------------------
	CAlfCurvePath* CreateEllipsisL( TSize /*aSize*/, TInt /*aLength*/ )
		{
	//!Nasty Hack to supress compiler warnings
	//function no longer used
	//needs to be refactored/removed
		CAlfCurvePath* curve =NULL;
	/*	CAlfCurvePath* curve = CAlfCurvePath::NewL();
		CleanupStack::PushL( curve );
		// HUI creates a double sized ellipsis so need to halve the sides
		TSize realSize( aSize.iWidth / 2, aSize.iHeight / 2 );
		// create the arch for given length
		curve->AppendArcL( 
			TPoint( KOrigo, KOrigo ),	// centre point
			realSize,	// sides of the rect defining the ellipse
			KStartAngle,	// start angle
			KStopAngle, // end angle 
			aLength );	// the whole circle
		// enable loop
        CleanupStack::Pop( curve );
		curve->EnableLoop( ETrue );*/
		return curve;
		}
	}