14#ifndef CLERPANIMEFFECTINTERVAL_H
15#define CLERPANIMEFFECTINTERVAL_H
32class EXPCL_DIRECT_INTERVAL CLerpAnimEffectInterval :
public CLerpInterval {
34 INLINE
explicit CLerpAnimEffectInterval(
const std::string &name,
double duration,
35 BlendType blend_type);
38 float begin_effect,
float end_effect);
42 virtual void output(std::ostream &out)
const;
47 INLINE ControlDef(
AnimControl *control,
const std::string &name,
48 float begin_effect,
float end_effect);
55 typedef pvector<ControlDef> Controls;
63 static void init_type() {
64 CLerpInterval::init_type();
66 CLerpInterval::get_class_type());
69 return get_class_type();
71 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Controls the timing of a character animation.
virtual void priv_step(double t)
Advances the time on the interval.
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.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...