18 TypeHandle CLerpAnimEffectInterval::_type_handle;
27 check_started(get_class_type(),
"priv_step");
29 double d = compute_delta(t);
31 Controls::iterator ci;
32 for (ci = _controls.begin(); ci != _controls.end(); ++ci) {
33 ControlDef &def = (*ci);
35 lerp_value(effect, d, def._begin_effect, def._end_effect);
36 def._control->get_part()->set_control_effect(def._control, effect);
45 void CLerpAnimEffectInterval::
46 output(std::ostream &out)
const {
47 out << get_name() <<
": ";
49 if (_controls.empty()) {
50 out <<
"(no controls)";
52 Controls::const_iterator ci;
53 ci = _controls.begin();
56 while (ci != _controls.end()) {
57 out <<
", " << (*ci)._name;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void lerp_value(NumericType ¤t_value, double d, const NumericType &starting_value, const NumericType &ending_value)
Applies the linear lerp computation for a single parameter.
virtual void priv_step(double t)
Advances the time on the interval.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_duration
Returns the duration of the interval in seconds.
TypeHandle is the identifier used to differentiate C++ class types.