Panda3D
|
A base class for EggSAnimData and EggXfmAnimData, which contain rows and columns of numbers. More...
#include "eggAnimData.h"
Public Member Functions | |
EggAnimData (const string &name="") | |
EggAnimData (const EggAnimData ©) | |
void | add_data (double value) |
Adds a single element to the table. | |
void | clear_data () |
Removes all data and empties the table. | |
void | clear_fps () |
virtual TypeHandle | force_init_type () |
PTA_double | get_data () const |
Returns the entire table of data. | |
double | get_fps () const |
This is only valid if has_fps() returns true. | |
int | get_size () const |
Returns the number of elements in the table. | |
virtual TypeHandle | get_type () const |
bool | has_fps () const |
EggAnimData & | operator= (const EggAnimData ©) |
void | quantize (double quantum) |
Rounds each element of the table to the nearest multiple of quantum. | |
void | set_data (const PTA_double &data) |
Replaces the entire table of data. | |
void | set_fps (double type) |
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. | |
Protected Attributes | |
PTA_double | _data |
A base class for EggSAnimData and EggXfmAnimData, which contain rows and columns of numbers.
Definition at line 32 of file eggAnimData.h.
void EggAnimData::add_data | ( | double | value | ) | [inline] |
Adds a single element to the table.
Definition at line 116 of file eggAnimData.I.
Referenced by EggXfmSAnim::add_component_data(), EggXfmAnimData::EggXfmAnimData(), EggXfmSAnim::EggXfmSAnim(), SoftNodeDesc::make_linear_morph_table(), and SoftNodeDesc::make_weighted_morph_table().
void EggAnimData::clear_data | ( | ) | [inline] |
Removes all data and empties the table.
Definition at line 106 of file eggAnimData.I.
PTA_double EggAnimData::get_data | ( | ) | const [inline] |
Returns the entire table of data.
Definition at line 139 of file eggAnimData.I.
double EggAnimData::get_fps | ( | ) | const [inline] |
This is only valid if has_fps() returns true.
Definition at line 94 of file eggAnimData.I.
Referenced by EggXfmSAnim::EggXfmSAnim(), EggXfmAnimData::r_transform(), EggSAnimData::write(), and EggXfmAnimData::write().
int EggAnimData::get_size | ( | ) | const [inline] |
Returns the number of elements in the table.
Definition at line 128 of file eggAnimData.I.
Referenced by EggXfmAnimData::get_num_rows(), and EggSAnimData::get_num_rows().
static void EggAnimData::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 EggNode.
Reimplemented in EggSAnimData, and EggXfmAnimData.
Definition at line 69 of file eggAnimData.h.
References EggNode::init_type().
Referenced by EggXfmAnimData::init_type(), and EggSAnimData::init_type().
void EggAnimData::quantize | ( | double | quantum | ) |
Rounds each element of the table to the nearest multiple of quantum.
Definition at line 26 of file eggAnimData.cxx.
Referenced by EggMatrixTablePointer::quantize_channels().
void EggAnimData::set_data | ( | const PTA_double & | data | ) | [inline] |
Replaces the entire table of data.
Definition at line 150 of file eggAnimData.I.