Panda3D
|
00001 // Filename: baseParticleEmitter.I 00002 // Created by: charles (26Jun00) 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 // Function : set_emission_type 00017 // Access : Public 00018 // Description : emission type assignment 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE void BaseParticleEmitter:: 00021 set_emission_type(emissionType et) { 00022 _emission_type = et; 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function : get_emission_type 00027 // Access : Public 00028 // Description : emission type query 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE BaseParticleEmitter::emissionType BaseParticleEmitter:: 00031 get_emission_type() const { 00032 return _emission_type; 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function : set_explicit_launch_vector 00037 // Access : Public 00038 // Description : assignment of explicit emission launch vector 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE void BaseParticleEmitter:: 00041 set_explicit_launch_vector(const LVector3& elv) { 00042 _explicit_launch_vector = elv; 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function : get_explicit_launch_vector 00047 // Access : Public 00048 // Description : query for explicit emission launch vector 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE LVector3 BaseParticleEmitter:: 00051 get_explicit_launch_vector() const { 00052 return _explicit_launch_vector; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function : set_radiate_origin 00057 // Access : Public 00058 // Description : assignment of radiate emission origin point 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE void BaseParticleEmitter:: 00061 set_radiate_origin(const LPoint3& ro) { 00062 _radiate_origin = ro; 00063 } 00064 00065 //////////////////////////////////////////////////////////////////// 00066 // Function : get_radiate_origin 00067 // Access : Public 00068 // Description : query for explicit emission launch vector 00069 //////////////////////////////////////////////////////////////////// 00070 INLINE LPoint3 BaseParticleEmitter:: 00071 get_radiate_origin() const { 00072 return _radiate_origin; 00073 } 00074 00075 //////////////////////////////////////////////////////////////////// 00076 // Function : set_amplitude 00077 // Access : Public 00078 // Description : amplitude assignment 00079 //////////////////////////////////////////////////////////////////// 00080 INLINE void BaseParticleEmitter:: 00081 set_amplitude(PN_stdfloat a) { 00082 _amplitude = a; 00083 } 00084 00085 //////////////////////////////////////////////////////////////////// 00086 // Function : get_amplitude 00087 // Access : Public 00088 // Description : amplitude query 00089 //////////////////////////////////////////////////////////////////// 00090 INLINE PN_stdfloat BaseParticleEmitter:: 00091 get_amplitude() const { 00092 return _amplitude; 00093 } 00094 00095 //////////////////////////////////////////////////////////////////// 00096 // Function : set_amplitude_spread 00097 // Access : Public 00098 // Description : amplitude spread assignment 00099 //////////////////////////////////////////////////////////////////// 00100 INLINE void BaseParticleEmitter:: 00101 set_amplitude_spread(PN_stdfloat as) { 00102 _amplitude_spread = as; 00103 } 00104 00105 //////////////////////////////////////////////////////////////////// 00106 // Function : get_amplitude_spread 00107 // Access : Public 00108 // Description : amplitude spread query 00109 //////////////////////////////////////////////////////////////////// 00110 INLINE PN_stdfloat BaseParticleEmitter:: 00111 get_amplitude_spread() const { 00112 return _amplitude_spread; 00113 } 00114 00115 //////////////////////////////////////////////////////////////////// 00116 // Function : set_offset_force 00117 // Access : Public 00118 // Description : user-defined force 00119 //////////////////////////////////////////////////////////////////// 00120 INLINE void BaseParticleEmitter:: 00121 set_offset_force(const LVector3& of) { 00122 _offset_force = of; 00123 } 00124 00125 //////////////////////////////////////////////////////////////////// 00126 // Function : get_offset_force 00127 // Access : Public 00128 // Description : user-defined force 00129 //////////////////////////////////////////////////////////////////// 00130 INLINE LVector3 BaseParticleEmitter:: 00131 get_offset_force() const { 00132 return _offset_force; 00133 }