00001 // Filename: zSpinParticleFactory.I 00002 // Created by: charles (16Aug00) 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 //////////////////////////////////////////////////////////////////// 00017 // Function : set_initial_angle 00018 // Access : public 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE void ZSpinParticleFactory:: 00021 set_initial_angle(PN_stdfloat angle) { 00022 _initial_angle = angle; 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function : set_final_angle 00027 // Access : public 00028 //////////////////////////////////////////////////////////////////// 00029 INLINE void ZSpinParticleFactory:: 00030 set_final_angle(PN_stdfloat angle) { 00031 _final_angle = angle; 00032 } 00033 00034 //////////////////////////////////////////////////////////////////// 00035 // Function : set_initial_angle_spread 00036 // Access : public 00037 //////////////////////////////////////////////////////////////////// 00038 INLINE void ZSpinParticleFactory:: 00039 set_initial_angle_spread(PN_stdfloat spread) { 00040 _initial_angle_spread = spread; 00041 } 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function : set_final_angle_spread 00045 // Access : public 00046 //////////////////////////////////////////////////////////////////// 00047 INLINE void ZSpinParticleFactory:: 00048 set_final_angle_spread(PN_stdfloat spread) { 00049 _final_angle_spread = spread; 00050 } 00051 00052 //////////////////////////////////////////////////////////////////// 00053 // Function : get_initial_angle 00054 // Access : public 00055 //////////////////////////////////////////////////////////////////// 00056 INLINE PN_stdfloat ZSpinParticleFactory:: 00057 get_initial_angle() const { 00058 return _initial_angle; 00059 } 00060 00061 //////////////////////////////////////////////////////////////////// 00062 // Function : get_final_angle 00063 // Access : public 00064 //////////////////////////////////////////////////////////////////// 00065 INLINE PN_stdfloat ZSpinParticleFactory:: 00066 get_final_angle() const { 00067 return _final_angle; 00068 } 00069 00070 //////////////////////////////////////////////////////////////////// 00071 // Function : get_initial_angle_spread 00072 // Access : public 00073 //////////////////////////////////////////////////////////////////// 00074 INLINE PN_stdfloat ZSpinParticleFactory:: 00075 get_initial_angle_spread() const { 00076 return _initial_angle_spread; 00077 } 00078 00079 //////////////////////////////////////////////////////////////////// 00080 // Function : get_final_angle_spread 00081 // Access : public 00082 //////////////////////////////////////////////////////////////////// 00083 INLINE PN_stdfloat ZSpinParticleFactory:: 00084 get_final_angle_spread() const { 00085 return _final_angle_spread; 00086 } 00087 00088 //////////////////////////////////////////////////////////////////// 00089 // Function : get_angular_velocity 00090 // Access : public 00091 //////////////////////////////////////////////////////////////////// 00092 INLINE PN_stdfloat ZSpinParticleFactory:: 00093 get_angular_velocity() const { 00094 return _angular_velocity; 00095 } 00096 00097 INLINE void ZSpinParticleFactory:: 00098 set_angular_velocity(PN_stdfloat v) { 00099 _angular_velocity = v; 00100 } 00101 00102 INLINE PN_stdfloat ZSpinParticleFactory:: 00103 get_angular_velocity_spread() const { 00104 return _angular_velocity_spread; 00105 } 00106 00107 INLINE void ZSpinParticleFactory:: 00108 set_angular_velocity_spread(PN_stdfloat spread) { 00109 _angular_velocity_spread = spread; 00110 } 00111 00112 00113 INLINE void ZSpinParticleFactory:: 00114 enable_angular_velocity(bool bEnabled) { 00115 _bUseAngularVelocity = bEnabled; 00116 } 00117 00118 INLINE bool ZSpinParticleFactory:: 00119 get_angular_velocity_enabled() const { 00120 return _bUseAngularVelocity; 00121 } 00122