Panda3D
|
00001 // Filename: animChannelScalarTable.I 00002 // Created by: drose (22Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: AnimChannelScalarTable::get_table 00018 // Access: Public 00019 // Description: Returns a pointer to the table's data, 00020 // if it exists, or NULL if it does not. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE CPTA_stdfloat AnimChannelScalarTable:: 00023 get_table() const { 00024 return _table; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: AnimChannelScalarTable::has_table 00029 // Access: Published 00030 // Description: Returns true if the data table has been assigned. 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE bool AnimChannelScalarTable:: 00033 has_table() const { 00034 return _table != (const PN_stdfloat *)NULL; 00035 } 00036 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: AnimChannelScalarTable::clear_table 00040 // Access: Published 00041 // Description: Empties the data table. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE void AnimChannelScalarTable:: 00044 clear_table() { 00045 _table = NULL; 00046 } 00047