Panda3D
animChannelBase.I
1 // Filename: animChannelBase.I
2 // Created by: drose (19Feb99)
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 // Function: AnimChannelBase::Protected constructor
17 // Access: Protected
18 // Description: Don't use this constructor. It exists only so that
19 // AnimChannelFixed may define itself outside of the
20 // hierarchy. Normally, an AnimChannel must be created
21 // as part of a hierarchy.
22 ////////////////////////////////////////////////////////////////////
23 INLINE AnimChannelBase::
24 AnimChannelBase(const string &name)
25  : AnimGroup(name)
26 {
27  _last_frame = -1;
28 }
29 
30 ////////////////////////////////////////////////////////////////////
31 // Function: AnimChannelBase::Copy Constructor
32 // Access: Protected
33 // Description: Creates a new AnimChannelBase, just like this one,
34 // without copying any children. The new copy is added
35 // to the indicated parent. Intended to be called by
36 // make_copy() only.
37 ////////////////////////////////////////////////////////////////////
38 INLINE AnimChannelBase::
39 AnimChannelBase(AnimGroup *parent, const AnimChannelBase &copy) :
40  AnimGroup(parent, copy),
41  _last_frame(copy._last_frame)
42 {
43 }
44 
45 ////////////////////////////////////////////////////////////////////
46 // Function: AnimChannelBase::Constructor
47 // Access: Public
48 // Description: This is the normal constructor, which automatically
49 // places the AnimChannel in the previously-created
50 // hierarchy.
51 ////////////////////////////////////////////////////////////////////
52 INLINE AnimChannelBase::
53 AnimChannelBase(AnimGroup *parent, const string &name)
54  : AnimGroup(parent, name)
55 {
56  _last_frame = -1;
57 }
58 
59 
Parent class for all animation channels.
This is the base class for AnimChannel and AnimBundle.
Definition: animGroup.h:36