EggSAnimData

class EggSAnimData

Bases: EggAnimData

Corresponding to an <S$Anim> entry, this stores a single column of numbers, for instance for a morph target, or as one column in an EggXfmSAnim.

Inheritance diagram

Inheritance diagram of EggSAnimData

explicit EggSAnimData(std::string const &name = "")
EggSAnimData(EggSAnimData const &copy)
static TypeHandle get_class_type(void)
int get_num_rows(void) const

Returns the number of rows in the table. For an SAnim table, each row has one column.

double get_value(int row) const

Returns the value at the indicated row. Row must be in the range 0 <= row < get_num_rows().

void optimize(void)

Optimizes the data by collapsing a long table of duplicate values into a single value.

void set_value(int row, double value)

Changes the value at the indicated row. Row must be in the range 0 <= row < get_num_rows().