Panda3D
arcEmitter.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file arcEmitter.h
10  * @author charles
11  * @date 2000-06-22
12  */
13 
14 #ifndef ARCEMITTER_H
15 #define ARCEMITTER_H
16 
17 #include "ringEmitter.h"
18 
19 /**
20  * Describes a planar ring region in which particles are generated.
21  */
22 class EXPCL_PANDA_PARTICLESYSTEM ArcEmitter : public RingEmitter {
23 PUBLISHED:
24  ArcEmitter();
25  ArcEmitter(const ArcEmitter &copy);
26  virtual ~ArcEmitter();
27 
28  virtual BaseParticleEmitter *make_copy();
29 
30  INLINE void set_start_angle(PN_stdfloat angle);
31  INLINE void set_end_angle(PN_stdfloat angle);
32  INLINE void set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle);
33 
34  INLINE PN_stdfloat get_start_angle();
35  INLINE PN_stdfloat get_end_angle();
36 
37  virtual void output(std::ostream &out) const;
38  virtual void write(std::ostream &out, int indent=0) const;
39 
40 private:
41  // our emitter limits
42  PN_stdfloat _start_theta;
43  PN_stdfloat _end_theta;
44 
45  virtual void assign_initial_position(LPoint3& pos);
46 };
47 
48 #include "arcEmitter.I"
49 
50 #endif // ARCEMITTER_H
Describes a planar ring region in which particles are generated.
Definition: arcEmitter.h:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Describes a planar ring region in which particles are generated.
Definition: ringEmitter.h:22
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual BaseParticleEmitter * make_copy()
copier
Definition: ringEmitter.cxx:52