// Filename: animChannelFixed.I // Created by: drose (24Feb99) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// template TypeHandle AnimChannelFixed::_type_handle; //////////////////////////////////////////////////////////////////// // Function: AnimChannelFixed::Copy Constructor // Access: Protected // Description: Creates a new AnimChannelFixed, just like this one, // without copying any children. The new copy is added // to the indicated parent. Intended to be called by // make_copy() only. //////////////////////////////////////////////////////////////////// template INLINE AnimChannelFixed:: AnimChannelFixed(AnimGroup *parent, const AnimChannelFixed ©) : AnimChannel(parent, copy), _value(copy._value) { } //////////////////////////////////////////////////////////////////// // Function: AnimChannelFixed::Constructor // Access: Public // Description: //////////////////////////////////////////////////////////////////// template INLINE AnimChannelFixed:: AnimChannelFixed(const string &name, const ValueType &value) : AnimChannel(name), _value(value) { } //////////////////////////////////////////////////////////////////// // Function: AnimChannelFixed::has_changed // Access: Public, Virtual // Description: //////////////////////////////////////////////////////////////////// template bool AnimChannelFixed:: has_changed(int, double, int, double) { return false; } //////////////////////////////////////////////////////////////////// // Function: AnimChannelFixed::get_value // Access: Public, Virtual // Description: //////////////////////////////////////////////////////////////////// template void AnimChannelFixed:: get_value(int, ValueType &value) { value = _value; } //////////////////////////////////////////////////////////////////// // Function: AnimChannelFixed::output // Access: Public, Virtual // Description: //////////////////////////////////////////////////////////////////// template void AnimChannelFixed:: output(ostream &out) const { AnimChannel::output(out); out << " = " << _value; }