00001 // Filename: discEmitter.I 00002 // Created by: charles (22Jun00) 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 //////////////////////////////////////////////////////////////////// 00020 // Function : set_radius 00021 // Access : Public 00022 // Description : radius assignment 00023 //////////////////////////////////////////////////////////////////// 00024 00025 INLINE void DiscEmitter:: 00026 set_radius(float r) { 00027 _radius = r; 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function : set_outer_angle 00032 // Access : Public 00033 // Description : aoe assignement 00034 //////////////////////////////////////////////////////////////////// 00035 00036 INLINE void DiscEmitter:: 00037 set_outer_angle(float o_angle) { 00038 _outer_aoe = o_angle; 00039 } 00040 00041 //////////////////////////////////////////////////////////////////// 00042 // Function : set_inner_angle 00043 // Access : Public 00044 // Description : aoe assignment 00045 //////////////////////////////////////////////////////////////////// 00046 00047 INLINE void DiscEmitter:: 00048 set_inner_angle(float i_angle) { 00049 _inner_aoe = i_angle; 00050 } 00051 00052 //////////////////////////////////////////////////////////////////// 00053 // Function : set_outer_magnitude 00054 // Access : public 00055 // Description : mag assignment 00056 //////////////////////////////////////////////////////////////////// 00057 00058 INLINE void DiscEmitter:: 00059 set_outer_magnitude(float o_mag) { 00060 _outer_magnitude = o_mag; 00061 } 00062 00063 //////////////////////////////////////////////////////////////////// 00064 // Function : set_inner_magnitude 00065 // Access : public 00066 // Description : mag assignment 00067 //////////////////////////////////////////////////////////////////// 00068 00069 INLINE void DiscEmitter:: 00070 set_inner_magnitude(float i_mag) { 00071 _inner_magnitude = i_mag; 00072 } 00073 00074 //////////////////////////////////////////////////////////////////// 00075 // Function : set_cubic_lerping 00076 // Access : public 00077 // Description : clerp flag 00078 //////////////////////////////////////////////////////////////////// 00079 00080 INLINE void DiscEmitter:: 00081 set_cubic_lerping(bool clerp) { 00082 _cubic_lerping = clerp; 00083 } 00084 00085 //////////////////////////////////////////////////////////////////// 00086 // Function : get_radius 00087 // Access : Public 00088 // Description : radius accessor 00089 //////////////////////////////////////////////////////////////////// 00090 00091 INLINE float DiscEmitter:: 00092 get_radius(void) const { 00093 return _radius; 00094 } 00095 00096 //////////////////////////////////////////////////////////////////// 00097 // Function : get_outer_angle 00098 // Access : Public 00099 // Description : aoe accessor 00100 //////////////////////////////////////////////////////////////////// 00101 00102 INLINE float DiscEmitter:: 00103 get_outer_angle(void) const { 00104 return _outer_aoe; 00105 } 00106 00107 //////////////////////////////////////////////////////////////////// 00108 // Function : get_inner_angle 00109 // Access : Public 00110 // Description : aoe accessor 00111 //////////////////////////////////////////////////////////////////// 00112 00113 INLINE float DiscEmitter:: 00114 get_inner_angle(void) const { 00115 return _inner_aoe; 00116 } 00117 00118 //////////////////////////////////////////////////////////////////// 00119 // Function : get_outer_magnitude 00120 // Access : public 00121 // Description : mag accessor 00122 //////////////////////////////////////////////////////////////////// 00123 00124 INLINE float DiscEmitter:: 00125 get_outer_magnitude(void) const { 00126 return _outer_magnitude; 00127 } 00128 00129 //////////////////////////////////////////////////////////////////// 00130 // Function : get_inner_magnitude 00131 // Access : public 00132 // Description : mag accessor 00133 //////////////////////////////////////////////////////////////////// 00134 00135 INLINE float DiscEmitter:: 00136 get_inner_magnitude(void) const { 00137 return _inner_magnitude; 00138 } 00139 00140 //////////////////////////////////////////////////////////////////// 00141 // Function : get_cubic_lerping 00142 // Access : public 00143 // Description : clerp flag accessor 00144 //////////////////////////////////////////////////////////////////// 00145 00146 INLINE bool DiscEmitter:: 00147 get_cubic_lerping(void) const { 00148 return _cubic_lerping; 00149 }