Panda3D

Loading...
Searching...
No Matches
cLerpAnimEffectInterval.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file cLerpAnimEffectInterval.I
10 * @author drose
11 * @date 2002-08-27
12 */
13
14/**
15 *
16 */
17INLINE CLerpAnimEffectInterval::
18CLerpAnimEffectInterval(const std::string &name, double duration,
19 CLerpInterval::BlendType blend_type) :
20 CLerpInterval(name, duration, blend_type)
21{
22}
23
24/**
25 * Adds another AnimControl to the list of AnimControls affected by the lerp.
26 * This control will be lerped from begin_effect to end_effect over the period
27 * of the lerp.
28 *
29 * The AnimControl name parameter is only used when formatting the interval
30 * for output.
31 */
32INLINE void CLerpAnimEffectInterval::
33 add_control(AnimControl *control, const std::string &name,
34 float begin_effect, float end_effect) {
35 _controls.push_back(ControlDef(control, name, begin_effect, end_effect));
36}
37
38/**
39 *
40 */
41INLINE CLerpAnimEffectInterval::ControlDef::
42ControlDef(AnimControl *control, const std::string &name,
43 float begin_effect, float end_effect) :
44 _control(control),
45 _name(name),
46 _begin_effect(begin_effect),
47 _end_effect(end_effect)
48{
49}
AnimControl
Controls the timing of a character animation.
Definition animControl.h:38
CLerpAnimEffectInterval::add_control
void add_control(AnimControl *control, const std::string &name, float begin_effect, float end_effect)
Adds another AnimControl to the list of AnimControls affected by the lerp.
Definition cLerpAnimEffectInterval.I:33
CLerpInterval
The base class for a family of intervals that linearly interpolate one or more numeric values over ti...
Definition cLerpInterval.h:24