Panda3D
 All Classes Functions Variables Enumerations
pointEmitter.h
1 // Filename: pointEmitter.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 POINTEMITTER_H
16 #define POINTEMITTER_H
17 
18 #include "baseParticleEmitter.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : PointEmitter
22 // Description : Describes a planar ring region in which
23 // particles are generated.
24 ////////////////////////////////////////////////////////////////////
25 class EXPCL_PANDAPHYSICS PointEmitter : public BaseParticleEmitter {
26 PUBLISHED:
27  PointEmitter();
28  PointEmitter(const PointEmitter &copy);
29  virtual ~PointEmitter();
30 
31  virtual BaseParticleEmitter *make_copy();
32 
33  INLINE void set_location(const LPoint3& p);
34  INLINE LPoint3 get_location() const;
35 
36  virtual void output(ostream &out) const;
37  virtual void write(ostream &out, int indent=0) const;
38 
39 private:
40  LPoint3 _location;
41 
42  // CUSTOM EMISSION PARAMETERS
43  // none
44 
45  virtual void assign_initial_position(LPoint3& pos);
46  virtual void assign_initial_velocity(LVector3& vel);
47 };
48 
49 #include "pointEmitter.I"
50 
51 #endif // POINTEMITTER_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 ring region in which particles are generated.
Definition: pointEmitter.h:25
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
Describes a physical region in space in which particles are randomly generated.