24 return get_table_index(table_id) >= 0;
35 int table_index = get_table_index(table_id);
36 if (table_index < 0) {
39 return _tables[table_index];
50 int table_index = get_table_index(table_id);
51 if (table_index < 0) {
54 return !(_tables[table_index] == (
const PN_stdfloat *)NULL);
64 int table_index = get_table_index(table_id);
65 if (table_index >= 0) {
66 _tables[table_index] = NULL;
78 INLINE
char AnimChannelMatrixXfmTable::
79 get_table_id(
int table_index) {
80 nassertr(table_index >= 0 && table_index < num_matrix_components,
'\0');
81 return matrix_component_letters[table_index];
91 INLINE PN_stdfloat AnimChannelMatrixXfmTable::
92 get_default_value(
int table_index) {
93 nassertr(table_index >= 0 && table_index < num_matrix_components, 0.0);
94 return matrix_component_defaults[table_index];
bool has_table(char table_id) const
Returns true if the indicated subtable has been assigned.
static bool is_valid_id(char table_id)
Returns true if the given letter is one of the nine valid table id's.
void clear_table(char table_id)
Removes the indicated table from the definition.
CPTA_stdfloat get_table(char table_id) const
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.