uifw/ganes/inc/HgVgConstants.h
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 0 2f259fa3e83a
child 16 71dd06cfe933
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
    26 
    26 
    27     // maximum velocity of the spring (max velocity of view movement)
    27     // maximum velocity of the spring (max velocity of view movement)
    28     const TReal KMaxSpringVelocity(300.0f);
    28     const TReal KMaxSpringVelocity(300.0f);
    29     
    29     
    30     //
    30     //
    31     const TReal KSpringVelocityToAnimationFactor(20.0f);
    31     const TReal KSpringVelocityToAnimationFactor(10.0f);
    32 
    32 
    33 
    33 
    34     // maximum quads in coverflow
    34     // maximum quads in coverflow
    35     const TInt KMaxCoversVisible(17);
    35     const TInt KMaxCoversVisible(17);
    36     
    36     
    38     const TInt KSelectedItemIndex(8);
    38     const TInt KSelectedItemIndex(8);
    39 
    39 
    40     // fi
    40     // fi
    41     const TReal KMinFlickSpeed(0.5f);
    41     const TReal KMinFlickSpeed(0.5f);
    42 
    42 
    43     const TInt KViewUpdateInterval( 16000 ); // > ~60 fps
    43     const TInt KViewUpdateInterval( 15000 ); // > ~60 fps
    44     
    44     
    45     // The amound of pixels one item (virtually) takes on the screen (if you think coverflow as uniform list)
    45     // The amound of pixels one item (virtually) takes on the screen (if you think coverflow as uniform list)
    46     const TReal KRowHeight(1.0f);
    46     const TReal KRowHeight(1.0f);
    47     const TInt KRowHeightStep(10);
    47     const TInt KRowHeightStep(10);
    48     
    48     
    49     // PI
    49     // PI
    50     const TReal PI(3.1415926535897932f);
    50     const TReal PI(3.1415926535897932f);
    51 
    51 
    52     // Spring constant
    52     // Spring constant
    53     const TReal KSpringK(35.0f);
    53     const TReal KSpringK(20.0f);
    54     
    54     
    55     // Spring damping
    55     // Spring damping
    56     const TReal KSpringDamping(11.0f);
    56     const TReal KSpringDamping(11.0f);
    57     
    57     
    58     // maximum distance from target to snap 
    58     // maximum distance from target to snap 
    59     const TReal KPositionSnap(0.02);
    59     const TReal KPositionSnap(0.01);
    60     
    60     
    61     // maximum speed where to snap to item
    61     // maximum speed where to snap to item
    62     const TReal KMinSpringVelocity(0.05);
    62     const TReal KMinSpringVelocity(0.01);
    63     
    63     
    64     // how far user must have dragged an item before 
    64     // how far user must have dragged an item before 
    65     // we move to next item when user has stopped dragging gesture.
    65     // we move to next item when user has stopped dragging gesture.
    66     const TReal KDragForwardThreshold(0.2f);
    66     const TReal KDragForwardThreshold(0.2f);
    67     
    67     
    68     // how many albums it is threoretically possible to go forward/backward
    68     // how many albums it is threoretically possible to go forward/backward
    69     // if the distance of a drag is fullscreen in length
    69     // if the distance of a drag is fullscreen in length
    70     const TReal KItemsToDragOnFullScreenDrag(5.0f);
    70     const TReal KItemsToDragOnFullScreenDrag(5.0f);
    71     
    71     
    72     // Physics update timestep
    72     // Physics update timestep
    73     const TReal KTimeStep(0.01f); // we update physics 100 fps
    73     const TReal KTimeStep(0.008333333333f); // we update physics 120 fps
    74     
    74     
    75     // Width of one quad in 3d space
    75     // Width of one quad in 3d space
    76     const TReal KWorldQuadWidth(1);
    76     const TReal KWorldQuadWidth(1);
    77     
    77     
    78     // size of default icon in pixels
    78     // size of default icon in pixels
    93     // how long a flick gesture can tage before it is interpreted as dragging only
    93     // how long a flick gesture can tage before it is interpreted as dragging only
    94     const TInt KMaxFlickDuration(200000); // 2 ms
    94     const TInt KMaxFlickDuration(200000); // 2 ms
    95     // how long it user must press to move one index further
    95     // how long it user must press to move one index further
    96     const TInt KKeyPressDuration(800000);
    96     const TInt KKeyPressDuration(800000);
    97     // factor used for converting swipe speed to view movement
    97     // factor used for converting swipe speed to view movement
    98     const TReal KSwipeSpeedFactor(0.4f);
    98     const TReal KSwipeSpeedFactor(0.5f);
    99     
    99     
   100     // Camera rotation factor to use in animation
   100     // Camera rotation factor to use in animation
   101     // when swiping
   101     // when swiping
   102     const TReal KCameraRotationFactor(PI/8.0f);
   102     const TReal KCameraRotationFactor(PI/12.0f);
   103     
   103     
   104     // zooming factor to use in animation
   104     // zooming factor to use in animation
   105     const TReal KCameraZoomFactor(0);
   105     const TReal KCameraZoomFactor(0);
   106         
   106         
   107     // maximum opacity of the letter popup (1.0 would be fully opaque)
   107     // maximum opacity of the letter popup (1.0 would be fully opaque)
   120     const TReal KSpaceBetweenGridItems(0.02f);
   120     const TReal KSpaceBetweenGridItems(0.02f);
   121     
   121     
   122     // blur deviation factor for blur in zoom animation
   122     // blur deviation factor for blur in zoom animation
   123     const TReal KDefaultBlurDeviation(4);
   123     const TReal KDefaultBlurDeviation(4);
   124 
   124 
       
   125     //
       
   126     const TReal KSpringVelocityToZAlpha(10.0f);
       
   127     
       
   128     const TInt KFramesToZeroVelocity(60);
       
   129     
       
   130     const TReal KHalfItemWidth(0.5);
       
   131     
   125     // Specific constants for full screen coverflow mediawall
   132     // Specific constants for full screen coverflow mediawall
   126     const TInt KMediaWallFullScreenItemsOnScreen(5);
   133     const TInt KMediaWallFullScreenItemsOnScreen(5);
   127     const TReal KMediaWallFullScreenCameraZoomFactor(1.5);
   134     const TReal KMediaWallFullScreenCameraZoomFactor(1.5);
   128     const TReal KMediaWallFullScreenCameraRotationFactor(PI/5.0);
   135     const TReal KMediaWallFullScreenCameraRotationFactor(PI/5.0);
   129     const TReal KMediaWallFullScreenSpringVelocityToAnimationFactor(10);
   136     const TReal KMediaWallFullScreenSpringVelocityToAnimationFactor(10);
   130     const TReal KMediaWallFullScreenZOffset(1);
   137     const TReal KMediaWallFullScreenZOffset(1);
   131     const TInt KMediaWallFullScreenRowCount(1);
   138     const TInt KMediaWallFullScreenRowCount(1);
   132     const TReal KMediaWallFullScreenSpringK(28);
   139     const TReal KMediaWallFullScreenSpringK(KSpringK);
   133     const TReal KMediaWallFullScreenSpringDamping(KSpringDamping);
   140     const TReal KMediaWallFullScreenSpringDamping(KSpringDamping);
   134     const TReal KMediaWallFullScreenSpringMaxVelocity(KMaxSpringVelocity);
   141     const TReal KMediaWallFullScreenSpringMaxVelocity(KMaxSpringVelocity);
   135     const TReal KMediaWallFullScreenItemsToMoveOnFullScreenDrag(5);
   142     const TReal KMediaWallFullScreenItemsToMoveOnFullScreenDrag(5);
   136 
   143 
   137     // distance to target item where titles get rendered in fullscreen mediawall
   144     // distance to target item where titles get rendered in fullscreen mediawall