Panda3D
rectangleEmitter.h
1 // Filename: rectangleEmitter.h
2 // Created by: charles (22Jun00)
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 #ifndef RECTANGLEEMITTER_H
16 #define RECTANGLEEMITTER_H
17 
18 #include "baseParticleEmitter.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : RectangleEmitter
22 // Description : Describes a planar square region in which
23 // particles are generated.
24 ////////////////////////////////////////////////////////////////////
25 class EXPCL_PANDAPHYSICS RectangleEmitter : public BaseParticleEmitter {
26 PUBLISHED:
29  virtual ~RectangleEmitter();
30 
31  virtual BaseParticleEmitter *make_copy();
32 
33  INLINE void set_min_bound(const LPoint2& vmin);
34  INLINE void set_max_bound(const LPoint2& vmax);
35 
36  INLINE LPoint2 get_min_bound() const;
37  INLINE LPoint2 get_max_bound() const;
38 
39  virtual void output(ostream &out) const;
40  virtual void write(ostream &out, int indent=0) const;
41 
42 private:
43  LPoint2 _vmin;
44  LPoint2 _vmax;
45 
46  // CUSTOM EMISSION PARAMETERS
47  // none
48 
49  virtual void assign_initial_position(LPoint3& pos);
50  virtual void assign_initial_velocity(LVector3& vel);
51 };
52 
53 #include "rectangleEmitter.I"
54 
55 #endif // RECTANGLEEMITTER_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
Describes a planar square region in which particles are generated.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
This is a two-component point in space.
Definition: lpoint2.h:92
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Describes a physical region in space in which particles are randomly generated.