15 #include "cLerpAnimEffectInterval.h" 16 #include "lerp_helpers.h" 17 #include "partBundle.h" 19 TypeHandle CLerpAnimEffectInterval::_type_handle;
30 check_started(get_class_type(),
"priv_step");
32 double d = compute_delta(t);
34 Controls::iterator ci;
35 for (ci = _controls.begin(); ci != _controls.end(); ++ci) {
36 ControlDef &def = (*ci);
38 lerp_value(effect, d, def._begin_effect, def._end_effect);
39 def._control->get_part()->set_control_effect(def._control, effect);
50 void CLerpAnimEffectInterval::
51 output(ostream &out)
const {
54 if (_controls.empty()) {
55 out <<
"(no controls)";
57 Controls::const_iterator ci;
58 ci = _controls.begin();
61 while (ci != _controls.end()) {
62 out <<
", " << (*ci)._name;
const string & get_name() const
Returns the interval's name.
virtual void priv_step(double t)
Advances the time on the interval.
double get_duration() const
Returns the duration of the interval in seconds.
TypeHandle is the identifier used to differentiate C++ class types.