14 #ifndef BASEPARTICLEFACTORY_H 15 #define BASEPARTICLEFACTORY_H 32 INLINE
void set_lifespan_base(PN_stdfloat lb);
33 INLINE
void set_lifespan_spread(PN_stdfloat ls);
34 INLINE
void set_mass_base(PN_stdfloat mb);
35 INLINE
void set_mass_spread(PN_stdfloat ms);
36 INLINE
void set_terminal_velocity_base(PN_stdfloat tvb);
37 INLINE
void set_terminal_velocity_spread(PN_stdfloat tvs);
39 INLINE PN_stdfloat get_lifespan_base()
const;
40 INLINE PN_stdfloat get_lifespan_spread()
const;
41 INLINE PN_stdfloat get_mass_base()
const;
42 INLINE PN_stdfloat get_mass_spread()
const;
43 INLINE PN_stdfloat get_terminal_velocity_base()
const;
44 INLINE PN_stdfloat get_terminal_velocity_spread()
const;
50 virtual void output(std::ostream &out)
const;
51 virtual void write(std::ostream &out,
int indent=0)
const;
58 PN_stdfloat _lifespan_base;
59 PN_stdfloat _lifespan_spread;
61 PN_stdfloat _mass_base;
62 PN_stdfloat _mass_spread;
64 PN_stdfloat _terminal_velocity_base;
65 PN_stdfloat _terminal_velocity_spread;
67 virtual void populate_child_particle(
BaseParticle *bp)
const = 0;
72 #endif // BASEPARTICLEFACTORY_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure Virtual base class for creating particles.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
A base class for all things that want to be reference-counted.
An individual, physically-modelable particle abstract base class.