26 // ----------------------------------------------------------------------------- |
26 // ----------------------------------------------------------------------------- |
27 // NShwCurveFactory. |
27 // NShwCurveFactory. |
28 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
29 namespace NShwCurveFactory |
29 namespace NShwCurveFactory |
30 { |
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 // ------------------------------------------------------------------------- |
31 // ------------------------------------------------------------------------- |
36 // CreateEllipsisL. |
32 // CreateEllipsisL. |
37 // ------------------------------------------------------------------------- |
33 // ------------------------------------------------------------------------- |
38 CAlfCurvePath* CreateEllipsisL( TSize /*aSize*/, TInt /*aLength*/ ) |
34 CAlfCurvePath* CreateEllipsisL( TSize /*aSize*/, TInt /*aLength*/ ) |
39 { |
35 { |
40 //!Nasty Hack to supress compiler warnings |
36 //!Nasty Hack to supress compiler warnings |
41 //function no longer used |
37 //function no longer used |
42 //needs to be refactored/removed |
38 //needs to be refactored/removed |
43 CAlfCurvePath* curve =NULL; |
39 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; |
40 return curve; |
59 } |
41 } |
60 } |
42 } |