~ubuntu-branches/ubuntu/utopic/libavg/utopic

« back to all changes in this revision

Viewing changes to src/anim/LinearAnim.h

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-05-02 23:50:04 UTC
  • mfrom: (1.1.4 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100502235004-i6u38zelbi2k12ii
Tags: 1.0.1-1
* new upstream release (Closes: #565512)
* Remove patches that have been merged upstream.
* Add a patch that avoids building tests by default.
* Remove .py extension from two more scripts in /usr/bin .
* Add 2 example files to /usr/share/doc/python-libavg/examples/ .
* Describe a workaround for bug #579937 in README.Debian.
* Install debian/libavg.pth into /usr/share/pyshared/ .
  (Closes: #575551)
* Add get-orig-source target to debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//  libavg - Media Playback Engine. 
 
3
//  Copyright (C) 2003-2008 Ulrich von Zadow
 
4
//
 
5
//  This library is free software; you can redistribute it and/or
 
6
//  modify it under the terms of the GNU Lesser General Public
 
7
//  License as published by the Free Software Foundation; either
 
8
//  version 2 of the License, or (at your option) any later version.
 
9
//
 
10
//  This library is distributed in the hope that it will be useful,
 
11
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
//  Lesser General Public License for more details.
 
14
//
 
15
//  You should have received a copy of the GNU Lesser General Public
 
16
//  License along with this library; if not, write to the Free Software
 
17
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
//
 
19
//  Current versions can be found at www.libavg.de
 
20
//
 
21
 
 
22
#ifndef _LinearAnim_H_
 
23
#define _LinearAnim_H_
 
24
 
 
25
#include "../api.h"
 
26
 
 
27
#include "SimpleAnim.h"
 
28
 
 
29
namespace avg {
 
30
 
 
31
class AVG_API LinearAnim: public SimpleAnim {
 
32
public:
 
33
    virtual ~LinearAnim();
 
34
    
 
35
    static AnimPtr create(const boost::python::object& node, const std::string& sAttrName,
 
36
            long long duration,
 
37
            const boost::python::object& pStartValue, 
 
38
            const boost::python::object& pEndValue, 
 
39
            bool bUseInt=false, 
 
40
            const boost::python::object& startCallback=boost::python::object(), 
 
41
            const boost::python::object& stopCallback=boost::python::object());
 
42
 
 
43
protected:
 
44
    LinearAnim(const boost::python::object& node, const std::string& sAttrName, 
 
45
            long long duration,
 
46
            const boost::python::object& pStartValue, 
 
47
            const boost::python::object& pEndValue, 
 
48
            bool bUseInt, 
 
49
            const boost::python::object& startCallback, 
 
50
            const boost::python::object& stopCallback);
 
51
    virtual double interpolate(double t);
 
52
    
 
53
private:
 
54
    double getStartPart(double start, double end, double cur);
 
55
};
 
56
 
 
57
AnimPtr fadeIn(const boost::python::object& node, long long duration, double max=1.0,
 
58
        const boost::python::object& stopCallback=boost::python::object());
 
59
 
 
60
AnimPtr fadeOut(const boost::python::object& node, long long duration, 
 
61
        const boost::python::object& stopCallback=boost::python::object());
 
62
 
 
63
}
 
64
 
 
65
#endif 
 
66
 
 
67
 
 
68