Panda3D
|
00001 // Filename: animChannelBase.I 00002 // Created by: drose (19Feb99) 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 // Function: AnimChannelBase::Protected constructor 00017 // Access: Protected 00018 // Description: Don't use this constructor. It exists only so that 00019 // AnimChannelFixed may define itself outside of the 00020 // hierarchy. Normally, an AnimChannel must be created 00021 // as part of a hierarchy. 00022 //////////////////////////////////////////////////////////////////// 00023 INLINE AnimChannelBase:: 00024 AnimChannelBase(const string &name) 00025 : AnimGroup(name) 00026 { 00027 _last_frame = -1; 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: AnimChannelBase::Copy Constructor 00032 // Access: Protected 00033 // Description: Creates a new AnimChannelBase, just like this one, 00034 // without copying any children. The new copy is added 00035 // to the indicated parent. Intended to be called by 00036 // make_copy() only. 00037 //////////////////////////////////////////////////////////////////// 00038 INLINE AnimChannelBase:: 00039 AnimChannelBase(AnimGroup *parent, const AnimChannelBase ©) : 00040 AnimGroup(parent, copy), 00041 _last_frame(copy._last_frame) 00042 { 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: AnimChannelBase::Constructor 00047 // Access: Public 00048 // Description: This is the normal constructor, which automatically 00049 // places the AnimChannel in the previously-created 00050 // hierarchy. 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE AnimChannelBase:: 00053 AnimChannelBase(AnimGroup *parent, const string &name) 00054 : AnimGroup(parent, name) 00055 { 00056 _last_frame = -1; 00057 } 00058 00059