Panda3D
animChannelScalarTable.I
1 // Filename: animChannelScalarTable.I
2 // Created by: drose (22Feb99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: AnimChannelScalarTable::get_table
18 // Access: Public
19 // Description: Returns a pointer to the table's data,
20 // if it exists, or NULL if it does not.
21 ////////////////////////////////////////////////////////////////////
23 get_table() const {
24  return _table;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: AnimChannelScalarTable::has_table
29 // Access: Published
30 // Description: Returns true if the data table has been assigned.
31 ////////////////////////////////////////////////////////////////////
32 INLINE bool AnimChannelScalarTable::
33 has_table() const {
34  return _table != (const PN_stdfloat *)NULL;
35 }
36 
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: AnimChannelScalarTable::clear_table
40 // Access: Published
41 // Description: Empties the data table.
42 ////////////////////////////////////////////////////////////////////
43 INLINE void AnimChannelScalarTable::
45  _table = NULL;
46 }
47 
bool has_table() const
Returns true if the data table has been assigned.
void clear_table()
Empties the data table.
Similar to PointerToArray, except that its contents may not be modified.
CPTA_stdfloat get_table() const
Returns a pointer to the table's data, if it exists, or NULL if it does not.