~unity-team/compiz/plugins-main-trunk.fix_wrong_window_move_expo

« back to all changes in this revision

Viewing changes to animation/include/animation/transform.h

  • Committer: David Barth
  • Date: 2011-03-29 16:36:40 UTC
  • Revision ID: david.barth@canonical.com-20110329163640-fpen5qsoo0lbjode
initial import from compiz-plugins-main_0.9.4git20110322.orig.tar.gz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ANIMATION_TRANSFORM_H
 
2
#define ANIMATION_TRANSFORM_H
 
3
#include "animation.h"
 
4
class TransformAnim :
 
5
virtual public Animation
 
6
{
 
7
public:
 
8
    TransformAnim (CompWindow *w,
 
9
                   WindowEvent curWindowEvent,
 
10
                   float duration,
 
11
                   const AnimEffect info,
 
12
                   const CompRect &icon);
 
13
    void init ();
 
14
    void step ();
 
15
    void updateTransform (GLMatrix &wTransform);
 
16
    void updateBB (CompOutput &output);
 
17
    bool updateBBUsed () { return true; }
 
18
    
 
19
protected:
 
20
    GLMatrix mTransform;
 
21
    
 
22
    float mTransformStartProgress;
 
23
    float mTransformProgress;
 
24
    
 
25
    void perspectiveDistortAndResetZ (GLMatrix &transform);
 
26
    void applyPerspectiveSkew (CompOutput &output,
 
27
                               GLMatrix &transform,
 
28
                               Point &center);
 
29
    virtual void adjustDuration () {}
 
30
    virtual void applyTransform () {}
 
31
    virtual Point getCenter ();
 
32
    
 
33
};
 
34
#endif