14 #ifndef BASEPARTICLEEMITTER_H 15 #define BASEPARTICLEEMITTER_H 36 void generate(LPoint3& pos, LVector3& vel);
38 INLINE
void set_emission_type(emissionType et);
39 INLINE
void set_amplitude(PN_stdfloat a);
40 INLINE
void set_amplitude_spread(PN_stdfloat as);
41 INLINE
void set_offset_force(
const LVector3& of);
42 INLINE
void set_explicit_launch_vector(
const LVector3& elv);
43 INLINE
void set_radiate_origin(
const LPoint3& ro);
45 INLINE emissionType get_emission_type()
const;
46 INLINE PN_stdfloat get_amplitude()
const;
47 INLINE PN_stdfloat get_amplitude_spread()
const;
48 INLINE LVector3 get_offset_force()
const;
49 INLINE LVector3 get_explicit_launch_vector()
const;
50 INLINE LPoint3 get_radiate_origin()
const;
52 virtual void output(std::ostream &out)
const;
53 virtual void write(std::ostream &out,
int indent=0)
const;
59 emissionType _emission_type;
60 LVector3 _explicit_launch_vector;
61 LPoint3 _radiate_origin;
63 PN_stdfloat _amplitude;
64 PN_stdfloat _amplitude_spread;
68 virtual void assign_initial_position(LPoint3& pos) = 0;
69 virtual void assign_initial_velocity(LVector3& vel) = 0;
71 LVector3 _offset_force;
76 #endif // BASEPARTICLEEMITTER_H 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.