Panda3D
animChannelBase.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file animChannelBase.I
10  * @author drose
11  * @date 1999-02-19
12  */
13 
14 /**
15  * Don't use this constructor. It exists only so that AnimChannelFixed may
16  * define itself outside of the hierarchy. Normally, an AnimChannel must be
17  * created as part of a hierarchy.
18  */
19 INLINE AnimChannelBase::
20 AnimChannelBase(const std::string &name)
21  : AnimGroup(name)
22 {
23  _last_frame = -1;
24 }
25 
26 /**
27  * Creates a new AnimChannelBase, just like this one, without copying any
28  * children. The new copy is added to the indicated parent. Intended to be
29  * called by make_copy() only.
30  */
31 INLINE AnimChannelBase::
32 AnimChannelBase(AnimGroup *parent, const AnimChannelBase &copy) :
33  AnimGroup(parent, copy),
34  _last_frame(copy._last_frame)
35 {
36 }
37 
38 /**
39  * This is the normal constructor, which automatically places the AnimChannel
40  * in the previously-created hierarchy.
41  */
42 INLINE AnimChannelBase::
43 AnimChannelBase(AnimGroup *parent, const std::string &name)
44  : AnimGroup(parent, name)
45 {
46  _last_frame = -1;
47 }
Parent class for all animation channels.
This is the base class for AnimChannel and AnimBundle.
Definition: animGroup.h:33