uiaccelerator_plat/alf_visual_api/tsrc/src/testplatalfvisualblocksmesh.cpp
changeset 0 15bf7259bb7c
child 17 3ac8bf5c5014
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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:  test functions for alfvisual.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // [INCLUDE FILES]
       
    21 #include <e32svr.h>
       
    22 #include <stifparser.h>
       
    23 #include <stiftestinterface.h>
       
    24 
       
    25 #include "testplatalfvisual.h"
       
    26 
       
    27 
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // CTestPlatAlfVisual::TestAlfMeshSetAndGetL
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 TInt CTestPlatAlfVisual::TestAlfMeshSetAndGetL( CStifItemParser& /*aItem*/ )
       
    36     {
       
    37     _LIT( KTestPlatAlfVisual, "TestPlatAlfVisual" );
       
    38     _LIT( KTestAlfMeshSetAndGetL, "TestAlfMeshSetAndGetL" );
       
    39     TestModuleIf().Printf( 0, KTestPlatAlfVisual, KTestAlfMeshSetAndGetL );
       
    40     // Print to log file
       
    41     iLog->Log( KTestAlfMeshSetAndGetL );
       
    42     
       
    43     CAlfMeshVisual* vVisual = CAlfMeshVisual::AddNewL( *iAlfCtl );
       
    44     vVisual->CreateMeshL( EAlfMeshTypeM3G );
       
    45     CAlfMesh& vMesh = vVisual->Mesh();
       
    46     vMesh.MeshType();
       
    47     vMesh.StretchUniformly( 0, 0, 0, 0, 0, 0 );
       
    48     vMesh.ScaleUniformly( 0, 0, 0 );
       
    49     vMesh.AnimationControllerCount();
       
    50     vMesh.SetAnimationPosition( iAlfCtl->Id(), 0, 0 );
       
    51     vMesh.StartAnimationController( iAlfCtl->Id() );
       
    52     vMesh.StopAnimationController( iAlfCtl->Id() );
       
    53     vMesh.Reset();
       
    54     
       
    55     return KErrNone;
       
    56     }
       
    57 
       
    58 // End of file
       
    59