Panda3D
discEmitter.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 discEmitter.I
10  * @author charles
11  * @date 2000-06-22
12  */
13 
14 /**
15  * radius assignment
16  */
17 
18 INLINE void DiscEmitter::
19 set_radius(PN_stdfloat r) {
20  _radius = r;
21 }
22 
23 /**
24  * aoe assignement
25  */
26 
27 INLINE void DiscEmitter::
28 set_outer_angle(PN_stdfloat o_angle) {
29  _outer_aoe = o_angle;
30 }
31 
32 /**
33  * aoe assignment
34  */
35 
36 INLINE void DiscEmitter::
37 set_inner_angle(PN_stdfloat i_angle) {
38  _inner_aoe = i_angle;
39 }
40 
41 /**
42  * mag assignment
43  */
44 
45 INLINE void DiscEmitter::
46 set_outer_magnitude(PN_stdfloat o_mag) {
47  _outer_magnitude = o_mag;
48 }
49 
50 /**
51  * mag assignment
52  */
53 
54 INLINE void DiscEmitter::
55 set_inner_magnitude(PN_stdfloat i_mag) {
56  _inner_magnitude = i_mag;
57 }
58 
59 /**
60  * clerp flag
61  */
62 
63 INLINE void DiscEmitter::
64 set_cubic_lerping(bool clerp) {
65  _cubic_lerping = clerp;
66 }
67 
68 /**
69  * radius accessor
70  */
71 
72 INLINE PN_stdfloat DiscEmitter::
73 get_radius() const {
74  return _radius;
75 }
76 
77 /**
78  * aoe accessor
79  */
80 
81 INLINE PN_stdfloat DiscEmitter::
82 get_outer_angle() const {
83  return _outer_aoe;
84 }
85 
86 /**
87  * aoe accessor
88  */
89 
90 INLINE PN_stdfloat DiscEmitter::
91 get_inner_angle() const {
92  return _inner_aoe;
93 }
94 
95 /**
96  * mag accessor
97  */
98 
99 INLINE PN_stdfloat DiscEmitter::
101  return _outer_magnitude;
102 }
103 
104 /**
105  * mag accessor
106  */
107 
108 INLINE PN_stdfloat DiscEmitter::
110  return _inner_magnitude;
111 }
112 
113 /**
114  * clerp flag accessor
115  */
116 
117 INLINE bool DiscEmitter::
119  return _cubic_lerping;
120 }
bool get_cubic_lerping() const
clerp flag accessor
Definition: discEmitter.I:118
PN_stdfloat get_inner_magnitude() const
mag accessor
Definition: discEmitter.I:109
void set_outer_magnitude(PN_stdfloat o_mag)
mag assignment
Definition: discEmitter.I:46
void set_radius(PN_stdfloat r)
radius assignment
Definition: discEmitter.I:19
PN_stdfloat get_radius() const
radius accessor
Definition: discEmitter.I:73
void set_cubic_lerping(bool clerp)
clerp flag
Definition: discEmitter.I:64
void set_inner_angle(PN_stdfloat i_angle)
aoe assignment
Definition: discEmitter.I:37
PN_stdfloat get_outer_magnitude() const
mag accessor
Definition: discEmitter.I:100
PN_stdfloat get_outer_angle() const
aoe accessor
Definition: discEmitter.I:82
void set_outer_angle(PN_stdfloat o_angle)
aoe assignement
Definition: discEmitter.I:28
void set_inner_magnitude(PN_stdfloat i_mag)
mag assignment
Definition: discEmitter.I:55
PN_stdfloat get_inner_angle() const
aoe accessor
Definition: discEmitter.I:91