Panda3D
 All Classes Functions Variables Enumerations
cLerpAnimEffectInterval.I
00001 // Filename: cLerpAnimEffectInterval.I
00002 // Created by:  drose (27Aug02)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: CLerpAnimEffectInterval::Constructor
00018 //       Access: Published
00019 //  Description: 
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE CLerpAnimEffectInterval::
00022 CLerpAnimEffectInterval(const string &name, double duration, 
00023                         CLerpInterval::BlendType blend_type) :
00024   CLerpInterval(name, duration, blend_type)
00025 {
00026 }
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //     Function: CLerpAnimEffectInterval::add_control
00030 //       Access: Published
00031 //  Description: Adds another AnimControl to the list of AnimControls
00032 //               affected by the lerp.  This control will be lerped
00033 //               from begin_effect to end_effect over the period of
00034 //               the lerp.
00035 //
00036 //               The AnimControl name parameter is only used when
00037 //               formatting the interval for output.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE void CLerpAnimEffectInterval::
00040 add_control(AnimControl *control, const string &name,
00041             float begin_effect, float end_effect) {
00042   _controls.push_back(ControlDef(control, name, begin_effect, end_effect));
00043 }
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: CLerpAnimEffectInterval::ControlDef::Constructor
00047 //       Access: Public
00048 //  Description: 
00049 ////////////////////////////////////////////////////////////////////
00050 INLINE CLerpAnimEffectInterval::ControlDef::
00051 ControlDef(AnimControl *control, const string &name,
00052            float begin_effect, float end_effect) :
00053   _control(control),
00054   _name(name),
00055   _begin_effect(begin_effect),
00056   _end_effect(end_effect)
00057 {
00058 }
 All Classes Functions Variables Enumerations