AnimChannelScalarTable

class AnimChannelScalarTable

Bases: AnimChannel< ACScalarSwitchType >

An animation channel that issues a scalar each frame, read from a table such as might have been read from an egg file.

Inheritance diagram

Inheritance diagram of AnimChannelScalarTable

AnimChannelScalarTable(AnimGroup *parent, std::string const &name)

Creates a new AnimChannelScalarTable, 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.

void clear_table(void)

Empties the data table.

static TypeHandle get_class_type(void)
CPTA_stdfloat get_table(void) const

Returns a pointer to the table’s data, if it exists, or NULL if it does not.

bool has_table(void) const

Returns true if the data table has been assigned.

void set_table(CPTA_stdfloat const &table)

Assigns the data table.