Panda3D
 All Classes Functions Variables Enumerations
zSpinParticleFactory.I
1 // Filename: zSpinParticleFactory.I
2 // Created by: charles (16Aug00)
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 ////////////////////////////////////////////////////////////////////
17 // Function : set_initial_angle
18 // Access : public
19 ////////////////////////////////////////////////////////////////////
20 INLINE void ZSpinParticleFactory::
21 set_initial_angle(PN_stdfloat angle) {
22  _initial_angle = angle;
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function : set_final_angle
27 // Access : public
28 ////////////////////////////////////////////////////////////////////
29 INLINE void ZSpinParticleFactory::
30 set_final_angle(PN_stdfloat angle) {
31  _final_angle = angle;
32 }
33 
34 ////////////////////////////////////////////////////////////////////
35 // Function : set_initial_angle_spread
36 // Access : public
37 ////////////////////////////////////////////////////////////////////
38 INLINE void ZSpinParticleFactory::
39 set_initial_angle_spread(PN_stdfloat spread) {
40  _initial_angle_spread = spread;
41 }
42 
43 ////////////////////////////////////////////////////////////////////
44 // Function : set_final_angle_spread
45 // Access : public
46 ////////////////////////////////////////////////////////////////////
47 INLINE void ZSpinParticleFactory::
48 set_final_angle_spread(PN_stdfloat spread) {
49  _final_angle_spread = spread;
50 }
51 
52 ////////////////////////////////////////////////////////////////////
53 // Function : get_initial_angle
54 // Access : public
55 ////////////////////////////////////////////////////////////////////
56 INLINE PN_stdfloat ZSpinParticleFactory::
57 get_initial_angle() const {
58  return _initial_angle;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function : get_final_angle
63 // Access : public
64 ////////////////////////////////////////////////////////////////////
65 INLINE PN_stdfloat ZSpinParticleFactory::
66 get_final_angle() const {
67  return _final_angle;
68 }
69 
70 ////////////////////////////////////////////////////////////////////
71 // Function : get_initial_angle_spread
72 // Access : public
73 ////////////////////////////////////////////////////////////////////
74 INLINE PN_stdfloat ZSpinParticleFactory::
75 get_initial_angle_spread() const {
76  return _initial_angle_spread;
77 }
78 
79 ////////////////////////////////////////////////////////////////////
80 // Function : get_final_angle_spread
81 // Access : public
82 ////////////////////////////////////////////////////////////////////
83 INLINE PN_stdfloat ZSpinParticleFactory::
84 get_final_angle_spread() const {
85  return _final_angle_spread;
86 }
87 
88 ////////////////////////////////////////////////////////////////////
89 // Function : get_angular_velocity
90 // Access : public
91 ////////////////////////////////////////////////////////////////////
92 INLINE PN_stdfloat ZSpinParticleFactory::
93 get_angular_velocity() const {
94  return _angular_velocity;
95 }
96 
97 INLINE void ZSpinParticleFactory::
98 set_angular_velocity(PN_stdfloat v) {
99  _angular_velocity = v;
100 }
101 
102 INLINE PN_stdfloat ZSpinParticleFactory::
103 get_angular_velocity_spread() const {
104  return _angular_velocity_spread;
105 }
106 
107 INLINE void ZSpinParticleFactory::
108 set_angular_velocity_spread(PN_stdfloat spread) {
109  _angular_velocity_spread = spread;
110 }
111 
112 
113 INLINE void ZSpinParticleFactory::
114 enable_angular_velocity(bool bEnabled) {
115  _bUseAngularVelocity = bEnabled;
116 }
117 
118 INLINE bool ZSpinParticleFactory::
119 get_angular_velocity_enabled() const {
120  return _bUseAngularVelocity;
121 }
122