00001 // Filename: animChannelFixed.I 00002 // Created by: drose (24Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 template<class SwitchType> 00020 TypeHandle AnimChannelFixed<SwitchType>::_type_handle; 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Function: AnimChannelFixed::Constructor 00024 // Access: Public 00025 // Description: This is the flavor of AnimChannelFixed that puts it 00026 // in a hierarchy. 00027 //////////////////////////////////////////////////////////////////// 00028 template<class SwitchType> 00029 INLINE AnimChannelFixed<SwitchType>:: 00030 AnimChannelFixed(AnimGroup *parent, const string &name, 00031 const ValueType &value) 00032 : AnimChannel<SwitchType>(parent, name), 00033 _value(value) { 00034 } 00035 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: AnimChannelFixed::Constructor 00039 // Access: Public 00040 // Description: This flavor creates an AnimChannelFixed that is not 00041 // in a hierarchy. 00042 //////////////////////////////////////////////////////////////////// 00043 template<class SwitchType> 00044 INLINE AnimChannelFixed<SwitchType>:: 00045 AnimChannelFixed(const string &name, const ValueType &value) 00046 : AnimChannel<SwitchType>(name), 00047 _value(value) { 00048 } 00049 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function: AnimChannelFixed::has_changed 00053 // Access: Public, Virtual 00054 // Description: 00055 //////////////////////////////////////////////////////////////////// 00056 template<class SwitchType> 00057 bool AnimChannelFixed<SwitchType>:: 00058 has_changed(int, int) { 00059 return false; 00060 } 00061 00062 00063 //////////////////////////////////////////////////////////////////// 00064 // Function: AnimChannelFixed::get_value 00065 // Access: Public, Virtual 00066 // Description: 00067 //////////////////////////////////////////////////////////////////// 00068 template<class SwitchType> 00069 void AnimChannelFixed<SwitchType>:: 00070 get_value(int, ValueType &value) { 00071 value = _value; 00072 } 00073 00074 00075 //////////////////////////////////////////////////////////////////// 00076 // Function: AnimChannelFixed::output 00077 // Access: Public, Virtual 00078 // Description: 00079 //////////////////////////////////////////////////////////////////// 00080 template<class SwitchType> 00081 void AnimChannelFixed<SwitchType>:: 00082 output(ostream &out) const { 00083 AnimChannel<SwitchType>::output(out); 00084 out << " = " << _value; 00085 }