boxEmitter.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Filename: boxEmitter.h
  2. // Created by: charles (22Jun00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef BOXEMITTER_H
  19. #define BOXEMITTER_H
  20. #include "baseParticleEmitter.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Class : BoxEmitter
  23. // Description : Describes a voluminous box region in which
  24. // particles are generated.
  25. ////////////////////////////////////////////////////////////////////
  26. class EXPCL_PANDAPHYSICS BoxEmitter : public BaseParticleEmitter {
  27. private:
  28. LPoint3f _vmin, _vmax;
  29. // CUSTOM EMISSION PARAMETERS
  30. // none
  31. virtual void assign_initial_position(LPoint3f& pos);
  32. virtual void assign_initial_velocity(LVector3f& vel);
  33. PUBLISHED:
  34. BoxEmitter(void);
  35. BoxEmitter(const BoxEmitter &copy);
  36. virtual ~BoxEmitter(void);
  37. virtual BaseParticleEmitter *make_copy(void);
  38. INLINE void set_min_bound(const LPoint3f& vmin);
  39. INLINE void set_max_bound(const LPoint3f& vmax);
  40. INLINE LPoint3f get_min_bound(void) const;
  41. INLINE LPoint3f get_max_bound(void) const;
  42. };
  43. #include "boxEmitter.I"
  44. #endif // BOXEMITTER_H