00001 // Filename: animChannelFixed.I 00002 // Created by: drose (24Feb99) 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 template<class SwitchType> 00016 TypeHandle AnimChannelFixed<SwitchType>::_type_handle; 00017 00018 //////////////////////////////////////////////////////////////////// 00019 // Function: AnimChannelFixed::Copy Constructor 00020 // Access: Protected 00021 // Description: Creates a new AnimChannelFixed, just like this one, 00022 // without copying any children. The new copy is added 00023 // to the indicated parent. Intended to be called by 00024 // make_copy() only. 00025 //////////////////////////////////////////////////////////////////// 00026 template<class SwitchType> 00027 INLINE AnimChannelFixed<SwitchType>:: 00028 AnimChannelFixed(AnimGroup *parent, const AnimChannelFixed<SwitchType> ©) : 00029 AnimChannel<SwitchType>(parent, copy), 00030 _value(copy._value) 00031 { 00032 } 00033 00034 //////////////////////////////////////////////////////////////////// 00035 // Function: AnimChannelFixed::Constructor 00036 // Access: Public 00037 // Description: 00038 //////////////////////////////////////////////////////////////////// 00039 template<class SwitchType> 00040 INLINE AnimChannelFixed<SwitchType>:: 00041 AnimChannelFixed(const string &name, const ValueType &value) 00042 : AnimChannel<SwitchType>(name), 00043 _value(value) { 00044 } 00045 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: AnimChannelFixed::has_changed 00049 // Access: Public, Virtual 00050 // Description: 00051 //////////////////////////////////////////////////////////////////// 00052 template<class SwitchType> 00053 bool AnimChannelFixed<SwitchType>:: 00054 has_changed(int, double, int, double) { 00055 return false; 00056 } 00057 00058 00059 //////////////////////////////////////////////////////////////////// 00060 // Function: AnimChannelFixed::get_value 00061 // Access: Public, Virtual 00062 // Description: 00063 //////////////////////////////////////////////////////////////////// 00064 template<class SwitchType> 00065 void AnimChannelFixed<SwitchType>:: 00066 get_value(int, ValueType &value) { 00067 value = _value; 00068 } 00069 00070 00071 //////////////////////////////////////////////////////////////////// 00072 // Function: AnimChannelFixed::output 00073 // Access: Public, Virtual 00074 // Description: 00075 //////////////////////////////////////////////////////////////////// 00076 template<class SwitchType> 00077 void AnimChannelFixed<SwitchType>:: 00078 output(ostream &out) const { 00079 AnimChannel<SwitchType>::output(out); 00080 out << " = " << _value; 00081 }