Panda3D
|
This template class is a special kind of AnimChannel that always returns just one fixed value. More...
#include "animChannelFixed.h"
Public Types | |
typedef AnimChannel < SwitchType >::ValueType | ValueType |
Public Member Functions | |
AnimChannelFixed (const string &name, const ValueType &value) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual void | get_value (int frame, ValueType &value) |
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(). | |
virtual void | output (ostream &out) const |
Writes a one-line description of the group. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
ValueType | _value |
Protected Member Functions | |
AnimChannelFixed (AnimGroup *parent, const AnimChannelFixed< SwitchType > ©) | |
Creates a new AnimChannelFixed, just like this one, without copying any children. |
This template class is a special kind of AnimChannel that always returns just one fixed value.
It is a special channel, in that it need not be assigned within a hierarchy. It may stand alone, so that it may be created on-the-fly for parts that need default anims to bind against.
Definition at line 33 of file animChannelFixed.h.
AnimChannelFixed< SwitchType >::AnimChannelFixed | ( | AnimGroup * | parent, |
const AnimChannelFixed< SwitchType > & | copy | ||
) | [inline, protected] |
Creates a new AnimChannelFixed, just like this one, without copying any children.
The new copy is added to the indicated parent. Intended to be called by make_copy() only.
Definition at line 28 of file animChannelFixed.I.
bool AnimChannelFixed< SwitchType >::has_changed | ( | int | last_frame, |
double | last_frac, | ||
int | this_frame, | ||
double | this_frac | ||
) | [virtual] |
Returns true if the value has changed since the last call to has_changed().
last_frame is the frame number of the last call; this_frame is the current frame number. last_frac and this_frac are the fractional steps into those frames, which will be 0.0 unless we are running in frame_blend mode.
Reimplemented from AnimChannelBase.
Definition at line 54 of file animChannelFixed.I.
void AnimChannelFixed< SwitchType >::output | ( | ostream & | out | ) | const [virtual] |
Writes a one-line description of the group.
Reimplemented from AnimGroup.
Definition at line 78 of file animChannelFixed.I.
References AnimGroup::output().