19 return get_table_index(table_id) >= 0;
28 int table_index = get_table_index(table_id);
29 if (table_index < 0) {
32 return _tables[table_index];
40 int table_index = get_table_index(table_id);
41 if (table_index < 0) {
44 return !(_tables[table_index] ==
nullptr);
52 int table_index = get_table_index(table_id);
53 if (table_index >= 0) {
54 _tables[table_index] =
nullptr;
64 INLINE
char AnimChannelMatrixXfmTable::
65 get_table_id(
int table_index) {
66 nassertr(table_index >= 0 && table_index < num_matrix_components,
'\0');
67 return matrix_component_letters[table_index];
75 INLINE PN_stdfloat AnimChannelMatrixXfmTable::
76 get_default_value(
int table_index) {
77 nassertr(table_index >= 0 && table_index < num_matrix_components, 0.0);
78 return matrix_component_defaults[table_index];
static bool is_valid_id(char table_id)
Returns true if the given letter is one of the nine valid table id's.
has_table
Returns true if the indicated subtable has been assigned.
clear_table
Removes the indicated table from the definition.
get_table
Returns a pointer to the indicated subtable's data, if it exists, or NULL if it does not.
Similar to PointerToArray, except that its contents may not be modified.