Panda3D
baseParticleEmitter.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file baseParticleEmitter.I
10  * @author charles
11  * @date 2000-06-26
12  */
13 
14 /**
15  * emission type assignment
16  */
17 INLINE void BaseParticleEmitter::
18 set_emission_type(emissionType et) {
19  _emission_type = et;
20 }
21 
22 /**
23  * emission type query
24  */
25 INLINE BaseParticleEmitter::emissionType BaseParticleEmitter::
27  return _emission_type;
28 }
29 
30 /**
31  * assignment of explicit emission launch vector
32  */
33 INLINE void BaseParticleEmitter::
34 set_explicit_launch_vector(const LVector3& elv) {
35  _explicit_launch_vector = elv;
36 }
37 
38 /**
39  * query for explicit emission launch vector
40  */
41 INLINE LVector3 BaseParticleEmitter::
43  return _explicit_launch_vector;
44 }
45 
46 /**
47  * assignment of radiate emission origin point
48  */
49 INLINE void BaseParticleEmitter::
50 set_radiate_origin(const LPoint3& ro) {
51  _radiate_origin = ro;
52 }
53 
54 /**
55  * query for explicit emission launch vector
56  */
57 INLINE LPoint3 BaseParticleEmitter::
59  return _radiate_origin;
60 }
61 
62 /**
63  * amplitude assignment
64  */
65 INLINE void BaseParticleEmitter::
66 set_amplitude(PN_stdfloat a) {
67  _amplitude = a;
68 }
69 
70 /**
71  * amplitude query
72  */
73 INLINE PN_stdfloat BaseParticleEmitter::
74 get_amplitude() const {
75  return _amplitude;
76 }
77 
78 /**
79  * amplitude spread assignment
80  */
81 INLINE void BaseParticleEmitter::
82 set_amplitude_spread(PN_stdfloat as) {
83  _amplitude_spread = as;
84 }
85 
86 /**
87  * amplitude spread query
88  */
89 INLINE PN_stdfloat BaseParticleEmitter::
91  return _amplitude_spread;
92 }
93 
94 /**
95  * user-defined force
96  */
97 INLINE void BaseParticleEmitter::
98 set_offset_force(const LVector3& of) {
99  _offset_force = of;
100 }
101 
102 /**
103  * user-defined force
104  */
105 INLINE LVector3 BaseParticleEmitter::
107  return _offset_force;
108 }
LVector3 get_offset_force() const
user-defined force
void set_amplitude(PN_stdfloat a)
amplitude assignment
void set_explicit_launch_vector(const LVector3 &elv)
assignment of explicit emission launch vector
emissionType get_emission_type() const
emission type query
void set_amplitude_spread(PN_stdfloat as)
amplitude spread assignment
void set_emission_type(emissionType et)
emission type assignment
void set_offset_force(const LVector3 &of)
user-defined force
PN_stdfloat get_amplitude_spread() const
amplitude spread query
LVector3 get_explicit_launch_vector() const
query for explicit emission launch vector
void set_radiate_origin(const LPoint3 &ro)
assignment of radiate emission origin point
LPoint3 get_radiate_origin() const
query for explicit emission launch vector
PN_stdfloat get_amplitude() const
amplitude query