15 #ifndef ANIMCHANNELFIXED_H
16 #define ANIMCHANNELFIXED_H
18 #include "pandabase.h"
20 #include "animChannel.h"
32 template<
class SwitchType>
35 typedef TYPENAME AnimChannel<SwitchType>::ValueType ValueType;
41 INLINE AnimChannelFixed(
const string &name,
const ValueType &value);
43 virtual bool has_changed(
int last_frame,
double last_frac,
44 int this_frame,
double this_frac);
45 virtual void get_value(
int frame, ValueType &value);
47 virtual void output(ostream &out)
const;
53 return get_class_type();
55 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
59 static void init_type() {
61 register_type(_type_handle, SwitchType::get_fixed_channel_type_name(),
70 #include "animChannelFixed.I"
virtual void output(ostream &out) const
Writes a one-line description of the group.
This template class is the parent class for all kinds of AnimChannels that return different values...
This is the base class for AnimChannel and AnimBundle.
This template class is a special kind of AnimChannel that always returns just one fixed value...
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool has_changed(int last_frame, double last_frac, int this_frame, double this_frac)
Returns true if the value has changed since the last call to has_changed().