Panda3D
|
This stores a pointer back to an EggSAnimData table (i.e. More...
#include "eggScalarTablePointer.h"
Public Member Functions | |
EggScalarTablePointer (EggObject *object) | |
virtual void | extend_to (int num_frames) |
Extends the table to the indicated number of frames. | |
virtual TypeHandle | force_init_type () |
virtual double | get_frame (int n) const |
Returns the value corresponding to this slider position in the nth frame. | |
virtual double | get_frame_rate () const |
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state. | |
virtual int | get_num_frames () const |
Returns the number of frames of animation for this particular slider. | |
virtual TypeHandle | get_type () const |
virtual void | set_name (const string &name) |
Applies the indicated name change to the egg file. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
This stores a pointer back to an EggSAnimData table (i.e.
an <S$Anim> entry in an egg file), corresponding to the animation data from a single bundle for this slider.
Definition at line 32 of file eggScalarTablePointer.h.
void EggScalarTablePointer::extend_to | ( | int | num_frames | ) | [virtual] |
Extends the table to the indicated number of frames.
Reimplemented from EggBackPointer.
Definition at line 67 of file eggScalarTablePointer.cxx.
double EggScalarTablePointer::get_frame | ( | int | n | ) | const [virtual] |
Returns the value corresponding to this slider position in the nth frame.
Implements EggSliderPointer.
Definition at line 90 of file eggScalarTablePointer.cxx.
References get_num_frames().
double EggScalarTablePointer::get_frame_rate | ( | ) | const [virtual] |
Returns the stated frame rate of this particular joint, or 0.0 if it doesn't state.
Reimplemented from EggBackPointer.
Definition at line 38 of file eggScalarTablePointer.cxx.
int EggScalarTablePointer::get_num_frames | ( | ) | const [virtual] |
Returns the number of frames of animation for this particular slider.
Implements EggSliderPointer.
Definition at line 53 of file eggScalarTablePointer.cxx.
Referenced by get_frame().
static void EggScalarTablePointer::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from EggSliderPointer.
Definition at line 50 of file eggScalarTablePointer.h.
void EggScalarTablePointer::set_name | ( | const string & | name | ) | [virtual] |
Applies the indicated name change to the egg file.
Reimplemented from EggBackPointer.
Definition at line 107 of file eggScalarTablePointer.cxx.