14 #ifndef ZSPINPARTICLEFACTORY_H 15 #define ZSPINPARTICLEFACTORY_H 28 INLINE
void set_initial_angle(PN_stdfloat angle);
29 INLINE
void set_final_angle(PN_stdfloat angle);
30 INLINE
void set_initial_angle_spread(PN_stdfloat spread);
31 INLINE
void set_final_angle_spread(PN_stdfloat spread);
33 INLINE PN_stdfloat get_initial_angle()
const;
34 INLINE PN_stdfloat get_final_angle()
const;
35 INLINE PN_stdfloat get_initial_angle_spread()
const;
36 INLINE PN_stdfloat get_final_angle_spread()
const;
38 INLINE
void set_angular_velocity(PN_stdfloat v);
39 INLINE PN_stdfloat get_angular_velocity()
const;
41 INLINE
void set_angular_velocity_spread(PN_stdfloat spread);
42 INLINE PN_stdfloat get_angular_velocity_spread()
const;
44 INLINE
void enable_angular_velocity(
bool bEnabled);
45 INLINE
bool get_angular_velocity_enabled()
const;
47 virtual void output(std::ostream &out)
const;
48 virtual void write(std::ostream &out,
int indent=0)
const;
51 PN_stdfloat _initial_angle;
52 PN_stdfloat _initial_angle_spread;
53 PN_stdfloat _final_angle;
54 PN_stdfloat _final_angle_spread;
55 PN_stdfloat _angular_velocity;
56 PN_stdfloat _angular_velocity_spread;
57 bool _bUseAngularVelocity;
59 virtual void populate_child_particle(
BaseParticle *bp)
const;
65 #endif // ZSPINPARTICLEFACTORY_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure Virtual base class for creating particles.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.