Panda3D
 All Classes Functions Variables Enumerations
baseParticleEmitter.I
1 // Filename: baseParticleEmitter.I
2 // Created by: charles (26Jun00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function : set_emission_type
17 // Access : Public
18 // Description : emission type assignment
19 ////////////////////////////////////////////////////////////////////
20 INLINE void BaseParticleEmitter::
21 set_emission_type(emissionType et) {
22  _emission_type = et;
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function : get_emission_type
27 // Access : Public
28 // Description : emission type query
29 ////////////////////////////////////////////////////////////////////
30 INLINE BaseParticleEmitter::emissionType BaseParticleEmitter::
32  return _emission_type;
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function : set_explicit_launch_vector
37 // Access : Public
38 // Description : assignment of explicit emission launch vector
39 ////////////////////////////////////////////////////////////////////
40 INLINE void BaseParticleEmitter::
42  _explicit_launch_vector = elv;
43 }
44 
45 ////////////////////////////////////////////////////////////////////
46 // Function : get_explicit_launch_vector
47 // Access : Public
48 // Description : query for explicit emission launch vector
49 ////////////////////////////////////////////////////////////////////
52  return _explicit_launch_vector;
53 }
54 
55 ////////////////////////////////////////////////////////////////////
56 // Function : set_radiate_origin
57 // Access : Public
58 // Description : assignment of radiate emission origin point
59 ////////////////////////////////////////////////////////////////////
60 INLINE void BaseParticleEmitter::
62  _radiate_origin = ro;
63 }
64 
65 ////////////////////////////////////////////////////////////////////
66 // Function : get_radiate_origin
67 // Access : Public
68 // Description : query for explicit emission launch vector
69 ////////////////////////////////////////////////////////////////////
72  return _radiate_origin;
73 }
74 
75 ////////////////////////////////////////////////////////////////////
76 // Function : set_amplitude
77 // Access : Public
78 // Description : amplitude assignment
79 ////////////////////////////////////////////////////////////////////
80 INLINE void BaseParticleEmitter::
81 set_amplitude(PN_stdfloat a) {
82  _amplitude = a;
83 }
84 
85 ////////////////////////////////////////////////////////////////////
86 // Function : get_amplitude
87 // Access : Public
88 // Description : amplitude query
89 ////////////////////////////////////////////////////////////////////
90 INLINE PN_stdfloat BaseParticleEmitter::
91 get_amplitude() const {
92  return _amplitude;
93 }
94 
95 ////////////////////////////////////////////////////////////////////
96 // Function : set_amplitude_spread
97 // Access : Public
98 // Description : amplitude spread assignment
99 ////////////////////////////////////////////////////////////////////
100 INLINE void BaseParticleEmitter::
101 set_amplitude_spread(PN_stdfloat as) {
102  _amplitude_spread = as;
103 }
104 
105 ////////////////////////////////////////////////////////////////////
106 // Function : get_amplitude_spread
107 // Access : Public
108 // Description : amplitude spread query
109 ////////////////////////////////////////////////////////////////////
110 INLINE PN_stdfloat BaseParticleEmitter::
112  return _amplitude_spread;
113 }
114 
115 ////////////////////////////////////////////////////////////////////
116 // Function : set_offset_force
117 // Access : Public
118 // Description : user-defined force
119 ////////////////////////////////////////////////////////////////////
120 INLINE void BaseParticleEmitter::
122  _offset_force = of;
123 }
124 
125 ////////////////////////////////////////////////////////////////////
126 // Function : get_offset_force
127 // Access : Public
128 // Description : user-defined force
129 ////////////////////////////////////////////////////////////////////
132  return _offset_force;
133 }
void set_amplitude(PN_stdfloat a)
amplitude assignment
void set_explicit_launch_vector(const LVector3 &elv)
assignment of explicit emission launch vector
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
LVector3 get_explicit_launch_vector() const
query for explicit emission launch vector
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
LVector3 get_offset_force() const
user-defined force
void set_amplitude_spread(PN_stdfloat as)
amplitude spread assignment
void set_emission_type(emissionType et)
emission type assignment
PN_stdfloat get_amplitude() const
amplitude query
void set_offset_force(const LVector3 &of)
user-defined force
void set_radiate_origin(const LPoint3 &ro)
assignment of radiate emission origin point
LPoint3 get_radiate_origin() const
query for explicit emission launch vector
emissionType get_emission_type() const
emission type query
PN_stdfloat get_amplitude_spread() const
amplitude spread query